/**
 * @file
 * Visual styles for nodes.
 */

.node--unpublished {
  background-color: #fbf1d5;
}

/*
Node Header
*/
.node-header {
  padding: 0;
}
.node-header .container {
  margin: 0 auto;
  max-width: var(--layout--width--container);
}
.node-header-content {
  --content-padding: var(--layout--global--padding-sides);
  padding: var(--content-padding);
  padding-right: 0;
}
.node-header .event-info-list {
  padding: var(--layout--spacing--40);
  border: 1px solid var(--color--accent--medium);
  border-radius: var(--layout--spacing--20);
  margin: var(--layout--spacing--40) 0 0;
  width: fit-content;
}
.node-header p {
  font-size: var(--font-size--medium-large);
  margin: var(--layout--spacing--20) 0 0;
}

/* Node - portrait / publication */
.node--type-publication .node-header .container,
.node--type-portrait .node-header .container {
  max-width: var(--layout--width--wide);
}
.node--type-publication .node-header figure,
.node--type-portrait .node-header figure {
  max-width: 22.5rem;
  margin-left: auto;
  margin-right: auto;
}
.node--type-publication .node-header img {
  box-shadow: 0.125em 0.25em 0.5em #66666633;
}
.node--type-publication .node-header h1,
.node--type-portrait .node-header h1 {
  font-family: var(--font-family--serif);
  font-style: italic;
  font-weight: 400;
}
.publi-ressources {
  display: flex;
  flex-wrap: wrap;
  gap: var(--layout--spacing--20) var(--layout--spacing--40);
  margin-top: var(--layout--spacing--30);
}

@media (min-width: 22.5rem) {
  .node--type-publication .node-header img,
  .node--type-portrait .node-header img {
    border-radius: var(--layout--spacing--30);
  }
}
@media (min-width: 50rem) {
  .node-header {
    padding: 0 var(--layout--global--padding-sides);
  }
  .node-header .container {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
  }
  .node-header .container > * {
    flex: 0 1 50%;
  }

  .node-header img {
    border-radius: var(--layout--spacing--30);
  }
  .node-header-content {
    --content-padding: var(--layout--spacing--50);
  }

  /* Node - portrait / publication */
  .node--type-publication .node-header figure,
  .node--type-portrait .node-header figure {
    flex: 0 0 22.5rem;
    max-width: none;
  }
  .node--type-publication .node-header-content,
  .node--type-portrait .node-header-content {
    flex: 0 1
      calc(100% - 22.5rem + var(--content-padding) + var(--layout--spacing--20));
    margin-left: calc(
      -1 * (var(--content-padding) + var(--layout--spacing--20))
    );
    border-left: var(--layout--spacing--20) solid var(--color--accent--medium);
    background-color: #ffffffeb;
  }
}
@media (min-width: 64rem) {
  .node-header-content {
    --content-padding: var(--layout--spacing--70);
  }
}
