/* Fonts */
@font-face{
    font-family: 'Source Serif VF';
    font-weight: 200 900;
    font-style: normal;
    font-stretch: normal;
    font-display: swap;
    src: url('/font/WOFF2/VAR/SourceSerif4Variable-Roman.otf.woff2') format('woff2'),
         url('/font/WOFF/VAR/SourceSerif4Variable-Roman.otf.woff') format('woff'),
         url('/font/VAR/SourceSerif4Variable-Roman.otf') format('truetype');
}

@font-face{
    font-family: 'Source Serif VF';
    font-weight: 200 900;
    font-style: italic;
    font-stretch: normal;
    font-display: swap;
    src: url('/font/WOFF2/VAR/SourceSerif4Variable-Italic.otf.woff2') format('woff2'),
         url('/font/WOFF/VAR/SourceSerif4Variable-Italic.otf.woff') format('woff'),
         url('/font/VAR/SourceSerif4Variable-Italic.otf') format('truetype');
}

*,
*::before,
*::after {
    font-family: inherit;
    background-color: inherit;
    color: inherit;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    font-size: calc(1em + 0.33vw);
    font-family: 'Source Serif VF', Georgia, 'Times New Roman', Times, serif;
    font-variant-numeric: oldstyle-nums;
    font-variant-ligatures: common-ligatures;
    font-optical-sizing: auto;
    line-height: 1.4;
    color: #333;
    background-color: #FFF;
}
template {
  display: none !important;
}
* + * {
    margin-top: 1.25rem;
}
br,
dt,
dd,
th,
td,
option,
[hidden] + *,
li + li,
body,
.main-and-footer {
    margin-top: 0;
}
p + p {
    margin-top: 0.75rem;
}
.priority {
  margin-top: 0;
}
p a,
.bib a,
.card h3 a,
.content li a
{
    background: linear-gradient(180deg,rgba(255,255,255,0) 50%, #e2f2fb 50%);
}
p a:after,
.bib a:after,
.content li a:after{
    position: relative;
    content: "\FEFF*";
    margin-left: 0.10em;
    color: #006494;
    font-feature-settings: "caps";
    font-variant-numeric: normal;
    font-style: normal;
}
a {
    border-bottom: none;
    outline-offset: 0px;
    text-decoration: none;
}
abbr {
    text-decoration: none;
    cursor: help;
    border-bottom: 1px dashed;
}
img {
    max-width: 100%;
    max-height: 50vh;
}
.img-link {
    border-bottom: none;
}
p img {
    margin: 0.75rem 0;
}
figure p img {
    margin: 0;
}

.main-and-footer :focus:not([tabindex="-1"]),
.main-and-footer [data-expands]:focus svg,
.main-and-footer .patterns a:focus .text,
[for="themer"] :focus + [aria-hidden] {
    outline: 1px solid #c5e5f8;
}

h3 a:hover,
a:hover {
    background: #e2f2fb;
    transition-property: background;
    transition-duration: 0.2s;
    border-radius: 0px;
}

/* Fix for IE :( */
[tabindex="-1"]:focus,
div:not([tabindex]):focus {
    outline: none;
}
[hidden] {
  display: none;
}

/* Skip link */
[href="#main"] {
    display: block;
    width: 100%;
    padding: 0.75rem;
    color: #fff;
    background: #000;
    position: absolute;
    top: -3rem;
    text-align: center;
    z-index: 1;
}
[href="#main"]:focus {
    top: 0;
    outline: none;
}

/* Text styles */
main p {
    text-rendering: optimizeLegibility;
    text-indent: 1.4em;
    hyphens: auto;
}

@supports (text-justify: inter-word) {
    main p {
        text-align: justify;
        text-justify: inter-word;
    }
}

#indexsubtitle {
    font-weight: 900;
    font-variant: small-caps;
}

h1,
h2,
h3,
h4 {
    line-height: 1.125;
    hyphens: none;
}
@media screen and (min-width: 45em) {
    #indextitle {
        font-size: 3.5rem;
        margin: 0;
    }
    #indexsubtitle {
        font-size: 0.85rem;
        margin-top: -0.5rem;
    }
}

@media screen and (max-width: 45em) {
    #indextitle {
        font-size: 3rem;
        margin: 0;
    }
    #indexsubtitle {
        font-size: 0.8rem;
        margin-top: -0.2rem;
    }
}

h1 {
    font-size: 1.66rem;
}
h2 {
    font-size: 1.25rem;
}
h3 {
    font-size: 1rem;
}
h4,
h5 {
    font-size: 0.85rem;
    font-variant: small-caps;
}
h5 {
    font-size: 0.85rem;
}

h2 + p,
h3 + p,
h4 + p, 
h5 + p{
    margin-top: 0.5em;
}

/* Lists */
main ul,
main ol {
    margin-left: 2.25rem;
}
main li + li {
    margin-top: 0.5rem;
}
main ul ul, main ol ol, main li ul, main li ol {
    margin-top: 0.5rem;
}
ol ol {
  list-style: lower-latin;
}
ol ol ol {
  list-style: lower-roman;
}
main dt {
    font-weight: bold;
}
main dd {
  padding-left: 2rem;
}
dd ul {
  margin-left: 0;
}
dd li + li {
  margin: 0;
}

/* Buttons */
button {
    font-size: 1.25rem;
    border-radius: 0em;
    font-family: inherit;
    background:#006494;
    color: #fff;
    padding: 0.75rem;
    border: 0;
}
[data-launch] {
  font-size: 0.66rem !important;
  padding: 0.5rem !important;
  margin-top: 0 !important;
  border-radius: 0 !important;
  border-top-left-radius: 0 !important;
  box-shadow: none !important;
  background: #1B98E0 !important;
  color: #fff !important;
  position: absolute !important;
  right: 0 !important;
  bottom: 0 !important;
}

/* Blockquotes */
blockquote {
  border-left: 0.15rem solid;
  margin-left: 1.4rem;
  padding-left: 1.25rem;
  border-color: #1B98E0;
}
blockquote p {
    text-indent: 0rem;
}
blockquote .author {
  font-size: 0.85rem;
}

/* Forms */
label {
  display: inline-block;
  font-style: italic;
  font-size: 0.75rem;
  font-weight: 200;
}

[for="themer"] {
  background: #006494;
  border-radius: 0;
  color: #fff;
  padding: 0.25em 0.75em;
  margin: 0.5rem;
}
[for="themer"] [aria-hidden]::before {
  content: 'off';
}
[for="themer"] :checked + [aria-hidden]::before {
  content: 'on';
}
/* Tables */
table {
    text-align: left;
    table-layout: fixed;
    width: 100%;
    border-collapse: collapse;
}
th,
td {
    border: 2px solid;
    padding: 0.5rem;
    line-height: 1.25;
    margin: 0;
}
th {
    font-weight: bold;
}
th:empty {
    border: 0;
}

/* Page structure */
.wrapper {
    position: relative;
    margin-top: 0;
    overflow-x: hidden;
}
.intro-and-nav {
    font-size: 0.8rem;
    width: 15rem;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
}
.intro-and-nav > div {
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.intro {
  flex: 0 0 auto;
}
.patterns {
  flex: 1 1 auto;
}
.logo {
    border: 0;
}
.logo img {
    width: 100%;
    max-width: 12rem;
}
.library-desc {
    margin-top: 0.5rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 25rem;
}
.main-and-footer {
    margin-left: 15rem;
}
.main-and-footer > div {
    max-width: 40rem;
    margin: 0 auto;
    padding: 2.25rem;
}
[role="contentinfo"] {
    font-size: 0.85rem;
    margin-top: 4rem;
    text-align: center;
}

/* Patterns navigation */
.patterns {
    overflow: auto;
    margin-top: 1.5rem;
    min-width: max-content;
}
.patterns * {
    margin-top: 0;
}
.patterns h3 {
    font-size: 1rem;
}
.patterns h3 + ul {
    margin-top: 0.75rem;
}
.patterns li {
    line-height: 1.125;
    list-style: none;
}
.patterns li + li {
}
.patterns ul ul {
    margin-left: 0.75rem;
}
.pattern a {
    border: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: baseline;
    font-weight: bold;
    padding: 0 1rem;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
}
.pattern a:focus {
    outline: none;
}
.pattern span {
    margin-left: 0.125rem;
}

/* After */
.pattern [aria-current] {
  background-color: #006494;
  clip-path: polygon(0% 0%, 90% 0%, 100% 50%, 90% 100%, 0% 100%);
  color: #fff;
}

@media screen and (min-width: 45em) {
    nav a:hover {
    clip-path: polygon(0% 0%, 90% 0%, 100% 50%, 90% 100%, 0% 100%);
    }
}

/* Menu button */
#menu-button {
    margin: auto;
    display: none;
    width: 100%;
    text-align: center;
    background-color:  #006494;
}
#menu-button:focus {
    outline: none;
    box-shadow: inset 0 0 0 0.25rem #c5e5f8;
}

/* Tables of contents */
.toc {
    font-size: 0.85rem;
    border-top: 1px solid #1b98e0;
    border-bottom: 1px solid #1b98e0;
    padding: 1.5rem;
}
.toc h2 {
    font-variant: small-caps;
}
.toc ol {
    margin-left: 0.75rem;
    margin-top: 0.5rem;
}

/* Disqus Comments */
#disqus-container {
  text-align: center;
}
#disqus-button {
  width: 100%;
  padding: 0.25em 0.75em;
}
#disqus-comments {
  display: none; 
}

/* Tags */
.tags {
    padding-top: 1rem;
    border-top: 1px solid #1B98E0;
    font-size: 0.85rem;
}
.tags * {
    display: inline;
    margin: 0;
}
.tags li {
    white-space: nowrap;
    margin: 0 0 0 0.35rem;
}

.tags h2 {
    font-variant: small-caps;
}

/* Date */
.date {
    margin-top: 0;
    font-size: 0.85rem;
}

/* Notes and warnings */
.note {
    border-left: 0.5rem solid;
    font-size: 0.85rem;
}
.note .sign {
    height: 2.25rem;
    width: 2.25rem;
}
.note > div {
    margin-left: 0.75rem;
}
.note > div > img:first-child {
    height: 1.5rem;
}
.note > div >:first-child + * {
    margin-top: 0;
}
.note.warning {
    border-left: 0;
    background-image: url(https://fotolente.it/css/images/stripe.svg);
    background-size: 0.5rem auto;
    background-repeat: repeat-y;
}
.note.warning > div {
    margin-left: 1.25rem;
}

/* Figures */
figure {
    text-align: center;
    font-weight: 300;
    font-variant: small-caps;
    font-size: 0.75rem;
}
figcaption {
    margin-top: 0.5rem;
    text-align: center;
}
main {
    display: block;
    counter-reset: fig;
    min-height: 100vh;
}
figcaption::before {
    counter-increment: fig;
    content: 'Figura ' counter(fig) ':\0020';
}

/* Site errors */
.site-error {
    padding: 1.5rem;
    background: #efefef;
}
.site-error strong {
    color: #C83737;
}

/* SVG icons */
a svg,
button svg,
h1 svg,
th svg,
li > svg {
    height: 0.75em;
    width: 0.75em;
    margin-right: 0.25em;
}
h1 svg {
  margin-right: 0;
  width: 0.85em;
  height: 0.85em;
}
.bookmark-icon {
  vertical-align: middle;
}
.link-icon {
  width: 0.75em;
  height: 0.75em;
}
.tags svg, .link-icon {
  vertical-align: middle;
}
.balloon-icon {
  width: 0.75em;
  margin-right: 0;
}
.print {
    white-space: nowrap;
    font-style: normal;
}

/* Cross references */
.pattern-link {
    font-weight: bold;
}

/* Section links */
.h2-container {
    position: relative;
    font-size: 1.66rem;
}
.h2-container a {
    position: absolute;
    margin-top: 0;
    top: 0;
    line-height: 1;
    left: -1em;
    border: 0;
}

/* Single page layout */
.wrapper.print-version .main-and-footer {
    margin-left: 0;
}
.wrapper.print-version .intro-and-nav {
    position: static;
    border: 0;
    width: auto;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wrapper.print-version main {
    min-height: 0;
}
.wrapper.print-version .library-desc {
    font-size: 1rem;
}
.wrapper.print-version .intro-and-nav > div {
    height: auto;
}
.wrapper.print-version #patterns-list {
    margin-left: 0;
    margin-top: 1.5rem;
    display: block;
}
.wrapper.print-version .toc {
    font-size: 1rem;
}
.wrapper.print-version .toc h2 {
    font-size: 1.66rem;
}
.wrapper.print-version #patterns-list h3 {
    font-size: 1.25rem;
}
.wrapper.print-version .patterns {
  margin-top: 0;
}
.pattern-section:not(:last-child) {
    padding-bottom: 2.25rem;
    border-bottom: 2px solid;
}
.pattern-section h1 {
    padding: 0 !important;
}

/* Custom 404 */
.custom-404 {
  text-align: center;
}
.custom-404 * {
  margin: 0;
}
.custom-404 svg {
  max-width: 100%;
}

/* Utilities */
.vh {
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}
.gallery {
  display: flex;
  justify-content: center;
}

/* Media queries */
@media screen and (max-width: 45em) {
    body a {
      hyphens: auto;
    }
    [role="banner"] {
        position: static;
        width: auto;
        height: auto;
    }
    .intro {
        text-align: center;
    }
    .intro-and-nav {
        border-right: none;
    }
    .intro-and-nav > div {
        padding: 1.5rem;
    }
    .main-and-footer {
        margin: 0;
    }
    main {
      min-height: auto;
    }
    #patterns-list {
      list-style: none;
      margin-top: 0.5rem;
      border: 1px solid;
      border-color: #333;
    }
    .patterns h3 {
        font-size: 1.5rem;
        padding: 1.5rem 1rem 0.75rem;
    }
    .patterns li:not(.pattern) {
        margin-top: 0;
    }
    .patterns ul ul {
        margin: 0;
    }
    .patterns li {
        margin-top: 0;
    }
    .pattern {
        font-size: 1rem;
    }
    .pattern a {
        padding: 1rem;
    }
    .pattern [aria-current] {
        clip-path: none;
        padding: 1rem;
    }
    .pattern + .pattern {
        border-top: 1px solid;
        margin-top: 0;
    }
    #menu-button {
        display: block;
    }
    #patterns-list {
        display: none;
    }
    .toc-link {
      display: none;
    }
    [aria-expanded="true"] + #patterns-list {
        display: block;
    }
    code {
      word-break: break-all;
    }
}
@media print {
    .wrapper:not(.print-version) .intro-and-nav,
    .wrapper:not(.print-version) [role="contentinfo"] {
        display: none;
    }
    .main-and-footer {
        margin-left: 0;
    }
    a {
        border: 0;
    }
    main a::after {
        content: " (" attr(href) ")";
        word-break: break-word;
    }
    main nav a::after {
        content: '';
    }
    [id^="js-expandable-"] {
        display: block;
    }
    [data-expands] svg {
        display: none;
    }
    main *:not(.with-desc) {
        page-break-inside: avoid;
    }
    .note.warning {
        border-left: 0.5rem solid;
        background: none;
    }
}
@media (-ms-high-contrast: active) {
  img[src*=".svg"] {
    background: #fff;
    padding: 0.5rem;
  }
  .note.warning {
      border-left: 0.5rem solid;
      background: none;
  }
}

::-moz-selection { /* Code for Firefox */
    background: rgba(0,0,0,.8);
    color: #fff;
}
  
::selection {
  background: rgba(0,0,0,.8);
  color: #fff;
}

/* Book cards */

.card {
    display: flex;
    margin-top: 1rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    align-items: center;
}

.card img {
    max-width: 25vw;
    max-height: 25vh;
}

@media screen and (max-width: 45em) {
    .card img {
        display: none;
        margin: 0;
        padding: 0;
    }
}

@media screen and (min-width: 45em) {

.card text.odd{
    margin-top: 0;
    padding-left: 1rem;
}

.card text.even{
    margin-top: 0;
    padding-right: 1rem;
}

}

/* Footnotes */

hr {
    color: white;
    border-top: 1px solid #1B98E0;
}

section.footnotes p {
    text-indent: 0;
}

p a.footnote-ref,
p a.footnote-backref{
    color: #006494;
}

p a.footnote-ref::after,
p a.footnote-backref::after{
    content: none;
}

/* Bibliography */

.bib bibauthor {
    font-variant: small-caps;
}

.bib bibtitle {
    font-style: italic;
}

.bib {
    border-top: 1px solid #1B98E0;
    padding-top: 1em;
}

.bib h2 {
    font-variant: small-caps;
}

.bib li {
    list-style-type: none;
}

.bib ul {
    margin-left: 1.4rem;
}


/* Index template */

.article-number {
    color:#1B98E0;
    font-weight: bold;
}

ul.index-list + h2.index-topic,
h2.index-topic + h2.index-topic {
  margin-top: 1.25rem;
}

ul.index-list {
    border: none;
    font-size: 110%;
    margin-left: 0.5rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
  }
  
ul.index-list li {
    line-height: 1.4;
    list-style-type: none;
    border-bottom: none;
    display: block;
}

@media screen and (min-width: 45em) {
    ul.index-list {
        column-count: 2;
        column-gap: 2em;
    }
    main, footer, #disqus-container {
        padding-right: 3rem;
    }
}

.patterns-list li + li {
    border-top: none;
    margin-top: 0em;
}

ul.index-list + h2.index-topic {
    margin-top: 0em;
}

/* Podicons */
@media screen and (max-width: 45em) {
#podicons {
    margin-left: auto;
    margin-right: auto;
}
}

/* Contact form */
input[type=text],
input[type=email] {
    border: none;
    border-bottom: 1px solid #1B98E0;
    font-size: 0.75rem;
}

input[type=text]:focus,
input[type=email]:focus {
    background-color: #e2f2fb;
}

#send {
    font-size: 0.75rem;
    padding: 0.25rem;
    font-weight: bold;
    font-variant: small-caps;
}

textarea {
    margin-top: 1.25rem;
    width: 100%;
    padding: 1rem 1.25rem;
    box-sizing: border-box;
    border: 1px solid #1b98e0;
    resize: vertical;
    font-size: 0.9em;
}

/* Plug */
.plug{
    border: 1px solid #1B98E0;
    padding: 1.4rem;
    font-size:90%;
    background-color: #ffffff;
    opacity: 1;
    background-size: 4px 4px;
    background-image: repeating-linear-gradient(45deg, #e2f2fb 0, #e2f2fb 0.4px, #ffffff 0, #ffffff 50%);
}

.plug * {
   background-color: transparent;
}

.plug h2 {
    font-variant: small-caps;

}

.plug p {
    text-indent: 0;
    font-style: italic;
}

/* typomark */

/* To be fixed */

.summary {
    margin: 0 2rem 1.25rem 2rem;
    font-size: 0.95rem;
    font-style: italic;
}
.patterns-list {
    list-style: none;
}

.surtitle {
    font-style: italic;
    text-align: right;
    font-size: 90%;
    margin: 0;
}
  
.listdate {
    margin: 0 0 0.7em 2em;
    font-style: italic;
    font-size: 80%;
    text-align: left;
}

.title {
    margin-top: 1em;
}

.subtitle {
    font-variant: small-caps;
    font-weight: bold;
    margin: 0 0 2em 1.4em;
}


.social {
    margin-top: 0;
    line-height: 0;
}

#spreaker {
    margin-bottom: 2em;
    text-align: center;
}

frac {
    font-variant-numeric: diagonal-fractions;
}

img.mark {
    display: block;
    object-fit: contain;
    width:50%;
    margin-left: auto;
    margin-right: auto;
}