/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Ultra&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@100..900&display=swap');

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1.125em;
  font-weight: 350;
  line-height: 1.4;
  /* CSS variables (define also on html to avoid selector issues) */
  --red: #e01e2e;
  --green: #177a3c;
  --navy: #1e2a52;
  --ink: #1F1744;
  --muted: #6b7280;
  --paper: #ffffff;
  --line: #e5e7eb;
  --container: 1120px;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* CSS reset-ish */
* {
  box-sizing: border-box;
}

:root {
  --red: #e01e2e;
  --green: #177a3c;
  --navy: #1e2a52;
  --ink: #1F1744;
  --muted: #6b7280;
  --paper: #ffffff;
  --line: #e5e7eb;
  --container: 880px;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--ink);
  background: var(--paper);
}

.container {
  max-width: var(--container);
  margin-inline: auto;
}

/* Header */

.header-inner {
  display: flex;
  /*align-items: flex-end;*/
  gap: 3.55rem;
  padding-block: 1.25rem;
  padding-left: 50px;
  padding-top: 60px;
  border-top: 20px solid var(--red);
}

body.index{
  background-image: url(../img/homebg.jpg);
  background-position-x: center;
  background-size: 100vw;
  background-repeat: no-repeat;
}
@media only screen and (max-width: 1120px) {
  body.index{
    background-size: 1120px;
  }
  /* Style adjustments for viewports that meet the condition */
}


/*.index-bg {*/
/*  background-image: url(../img/homebg.jpg);*/
/*  background-position-x: center;*/
/*  background-size: var(--container);*/
/*  background-repeat: no-repeat;*/
/*  position: absolute;*/
/*  min-height: var(--container);*/
/*  overflow: hidden;*/
/*  width: 100%;*/
/*  z-index: -1;*/
/*}*/

.brand {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
}

.site-nav {
  flex-grow: 1;
}

.site-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-nav li {
  margin: .35rem 0;
  &:nth-child(2) {
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--red);
    padding-bottom: 0.75rem;
  }
}

.site-nav a {
  color: #0b1a3a;
  text-decoration: none;
  font-family: "Ultra", serif;
  font-size: 1.33rem;
  display: inline-flex;
  align-items: center;
  /*gap: .5rem;*/
  background: url("../img/megafone.svg") no-repeat;
  background-position-y: 3px;
  background-size: 32px;
  padding-left: 48px;
}

.site-nav a:hover{
  color: var(--red);
}
.site-nav .is-active a {
  color: var(--red);
  background: url("../img/megafone-on.svg") no-repeat;
}



/* Home */
.home-grid {
  display: grid;
  grid-template-columns: 1fr min(50%, 50%);
  gap: 1.55rem;
  /*padding-block: 2rem 3rem;*/
  padding-top: 24px;
}

.section-title {
  margin: 0 0 .5rem;
  font-size: 1.5rem;
  color: var(--navy);
}
.intro{
  border-top: 1px solid var(--navy);
  width: 426px;
}
.intro p {
  justify-content: left;
  font-size: 18px;
  width: 426px;
}

.sub-title {
  margin-top: 1.0rem;
  color: var(--red);
  font-size: 1.0rem;
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  padding-top: 1.0rem;
  border-top: 1px solid var(--navy);
  margin-bottom: -15px;
}

.team {
  padding-left: 1rem;
}

.team li {
  margin: .2rem 0;
}

.today-card {
  border: 1px solid var(--red);
  overflow: hidden;
  align-self: start;
  background: #fff;
  width: 426px;

}

.today-head {
  background: var(--red);
  color: #fff;
  padding: .9rem 1rem;
  font-family: "Ultra", serif;
  font-size: 3.75rem;
  text-align: center;
}

.today-date {
  margin: 0;
  font-weight: 900;
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  letter-spacing: .5px;
}

.today-body {
  padding: .5rem 0.1rem;
}

.today-year {
  padding: .5rem .75rem;
  padding-block-end: 0px;
}

.today-year h3 {
  margin: 0 0 .25rem;
  color: var(--red);
  font-size: 1.0rem;
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  border-bottom: 1px solid var(--red);
  padding-bottom: 4px;
}

.today-year ul {
  margin-top: 6px;
  /*padding-left: 1.1rem;*/
  padding:0;
  list-style: none;
  margin-block-end: 0px;
}
.today-year li{
  border-bottom: 1px solid var(--red);
  padding-bottom: 4px;
  margin-bottom: 5px;
}
.today-year li:last-child{
  border-bottom: none;

}
.today-year .src {
  font-style: italic;
}

.button {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  padding: .5rem .75rem;
  border-radius: 4px;
  font-weight: 700;
}

/* Pages */
.page-title {
  /*color: var(--navy);*/
  /*margin: 1rem 0;*/
  /*display: none;*/
}

.two-col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  padding-block: 1rem 2rem;
}

/* About */
.about {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.about .container {
  max-width: 940px;
  padding-inline: 0;
}

.about .header-inner {
  flex: none;
}

.about .brand img {
  width: 380px;
}

.about .header-inner {
  padding-top: 70px;
}

.about-main {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding-block: 18px 2rem;
}

.about-column {
  border-top: 1px solid var(--navy);
  color: var(--navy);
  &.about-details {
    font-size: 18px;
  }
  &.about-summary {
    font-size: 16px;
  }
}

.about-list {
  display: grid;
  margin: 0;
  padding: 14px 0 18px;
}

.about-list-secondary {
  border-top: 1px solid var(--navy);
  padding-top: 17px;
  font-size: 18px;
}

.about-list dt,
.about-summary h1 {
  margin: 0;
  color: var(--red);
  font-family: "Roboto Slab", serif;
  font-size: 1.0rem;
  font-weight: 700;
  &.runtext {
    display: inline;
  }
}

.about-list dd {
  margin: 0 0 7px;
  line-height: 1.35;
  &.runtext {
    display: inline;
  }
}

.divruntext {
  margin-bottom: 7px;
}

.about-list a {
  color: var(--navy);
  text-decoration: none;
}

.about-summary h1 {
  padding-top: 14px;
}

.about-summary p {
  margin-top: 0;
  line-height: 1.4;
  margin-bottom: 0px;
}

.about-summary ol {
  padding-left: 0;
  list-style-position: inside;
  margin-top: 0px;
  line-height: 1.4;
}

.about-summary li {
  padding-left: 0;
}

.about .site-footer {
  flex: none;
  margin-top: 2rem;
}

.about .site-footer img {
  display: block;
  width: 100%;
  height: auto;
}

.image.fct {
  width: 116px;
  height: 37px;
}

.image.com {    
  width: 89px;
  height: 65px;
}

.image.ulisboa {
    width: 281px;
    height: 40px;
}

.image.teatro {
  width: 244px;
  height: 35px;
}
.images-footer {
  display: flex;
  align-items: center;
  border-top: 1px solid navy;
  padding-top:18px;
  padding-bottom: 8px;
}
.first-footer {
  display: flex;
  margin-left: 30px;
}

.image.ulisboa {
  margin-left: 30px;
}

.second-footer{
  display: flex;
  width: 100%;
  justify-content: space-evenly;
  align-items: center;
}
.def-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: .4rem 1rem;
}

.def-list dt {
  color: var(--navy);
  font-weight: 800;
}

.def-list dd {
  margin: 0;
}

/* Publications */
td p {
  display: none;
}

.pub-page {
  padding-left: 0;
  padding-right: 0;
}

.pub-section {
  border-top: 1px solid var(--navy);
  margin-top: 18px;
  padding-top: 0;
  margin-bottom: 42px;
}

.pub-heading {
  margin: 8px 0 0;
  padding: 0 0 0 108px;
  color: var(--red);
  font-size: 1.0rem;
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  text-transform: uppercase;
}

.pub-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}

.pub-list li {
  display: grid;
  grid-template-columns: 84px 1fr;
  align-items: baseline;
  gap: 0 24px;
  padding: 6px 0;
  border-top: 1px solid var(--red);
}


.pub-list li.noFullBorder {
  border: none;
  padding: 0;
}

.pub-list li.noFullBorder .year {
  padding: 6px 0;
}

.pub-list li.noFullBorder .ref {
  padding: 6px 0;
  border-top: 1px solid var(--red);
}

tr.noFullBorderDiario td.col-date{
  border: none;
}

.pub-list .year {
  color: var(--navy);
  font-weight: 700;
  font-family: 'Roboto', sans-serif;
}

.pub-list .ref {
  line-height: 1.45;
}

.pub-list a {
  color: var(--navy);
  text-decoration: underline;
}

.pub-list a:hover {
  color: var(--red);
}

/* Diário table */
.table-wrap {
  overflow-x: auto;
  margin-top: 18px;
}

.diario-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.975rem;
}

.diario-table th, .diario-table td {
  border-top: 1px solid var(--red);
  padding: .6rem .6rem;
  vertical-align: top;
}

.diario-table thead th {
  border-top: 1px solid var(--navy);
  border-bottom: 1px solid var(--red);
  text-align: left;
  font-family: 'Roboto Slab', serif;
  color: var(--red);
}

.diario-table .col-date {
  white-space: nowrap;
  font-weight: 700;
  color: var(--navy);
  font-family: 'Roboto Slab', serif;
}

.diario-table .col-source {
  color: var(--navy);
  width: 20%;
  word-wrap: break-word;
}

.diario-table td:first-child,.diario-table th:first-child{
  padding-left: 0;
}
.diario-table td:last-child{
  padding-right: 0;
}
  /* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0rem 1.73rem;
  padding-block: 1rem 2rem;
}

/*.cards > * {*/
/*  min-width: 160px;*/
/*}*/
.card {
  border-top: 1px solid var(--navy);
}

.card h3 {
  margin: .7rem 0 .7rem;
  color: var(--red);
  font-size: 1.0rem;
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
}

.thumb.placeholder,
.video-thumbnail,
.video-frame {
  display: block;
  width: 100%;
  background: #231f3c;
  height: 240px;
  margin-bottom: .75rem;
}

.video-thumbnail {
  position: relative;
  padding: 0;
  border: 0;
  overflow: hidden;
  cursor: pointer;
}

.video-frame {
  border: 0;
}

.video-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-button {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 0;
  height: 0;
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  border-left: 28px solid #fff;
  transform: translate(-35%, -50%);
  filter: drop-shadow(0 1px 2px rgb(0 0 0 / 45%));
}

.video-thumbnail:hover {
  opacity: .88;
}

.meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0rem .75rem;
  font-size: 0.875rem;
}

.meta dt {
  color: var(--red);
  /*font-weight: 600;*/
  display: inline;
}

.meta dd {
  margin: 0;
  display: inline;
}

.meta a {
  color: var(--navy);
  text-decoration: underline;
}

.meta a:hover {
  color: var(--red);
}

/* Footer */
.site-footer img {
  width: 100%;
}
.site-footer {
  margin-top: 2rem;
}

.funding-note {
  color: #1F1744;
  text-align: center;
  font-size: .5675rem;
  padding-bottom: 2rem;

}


@media (max-width: 900px) {

  .brand {
    margin-inline: auto;
  }
  
  .home-grid {
    grid-template-columns: 1fr;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .about .container {
    padding-inline: 1rem;
  }

  .about .header-inner {
    padding-left: 1rem;
  }

  .about .brand img {
    width: min(340px, 48vw);
  }

  .about-main {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-block: 24px 2rem;
  }

  .header-inner {
    align-items: center;
  }

  .intro {
    width: calc(100% - 40px);
    margin: 0 20px;
  }

  .intro p {
    width: 100%
  }

  .intro h3 {
    width: 100%;
  }

  .today-card {
    width: calc(100% - 40px);
    margin: 0 20px;
  }

  .today-head {
    width: 100%
  }

  .today-body {
    width: 100%;
  }

  .pub-section{
    width: calc(100% - 40px);
    margin: 0 20px;
  }

  .pub-heading {
    width: 100%;
  }

  .pub-list {
    width: 100%;
  }

  .about-column {
    width: calc(100% - 40px);
    margin: 0 20px;
  }

  .about-list{
    width: 100%;
  }

  .about-list h1 {
    width: 100%;
  }

  .about-list p {
    width: 100%;
  }

  th:nth-child(3){
    display: none;
  }

  td:nth-child(3){
    display: none;
  }

  col:nth-child(3) {
    display: none;
  }

  .diario-table {
    width: calc(100% - 40px);
    margin: 0 20px;
  }

  td p {
    margin: 0;
    font-style: italic;
    font-size: 14px;
    display: block;
  }

  .cards.interviews {
    display: grid;
    grid-template-columns: 1fr;
    width: calc(100% - 40px);
    margin: 0 20px; 
  }

  .card.interview {
    width: 100%;
  }

  .header-inner {
    padding-left: 0;
  }

  .images-footer{
    display: grid;
    grid-template-columns: 1fr;
    width: calc(100% - 40px);
    margin: 0 20px; 
  }
  
  .first-footer{
    gap: 30px;
    justify-content: center;
    padding-bottom: 10px;
    margin-left: 0;
  }

  .second-footer{
    gap: 30px;
    justify-content: center;
    padding-bottom: 10px;
  }

  .site-nav {
    width: 340px;
  }

  .site-nav a {
    font-size: 20px;
    background-position-y: 0;
    background-size: contain;
  }

  .header-inner {
    flex-direction: column;
    gap: 24px;
  }

  .table-wrap {
    margin-top: 24px;
  }

  .cards {
    padding-block: 24px 2rem;
  }

  .pub-page {
    padding-top: 24px;
  }
}


@media (max-width: 630px) {
  .first-footer {
    flex-direction: column;
    align-items: center;
  }
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
(-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 1.25dppx),
(min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}
