/* Pin the banner to the top, under the navbar when there is one, and push the page down by its height */
body {
    padding-top: var(--install-height, 0px);
}

.install {
    position: fixed;
    z-index: 2;
    top: 0;
    left: 0;
    right: 0;
    background-color: #f4f8fc;
    border-bottom: 1px solid #cfe0ef;
    text-align: left;
    font-size: 13px;
    color: #333;
}

.navbar ~ .install {
    top: calc(65px + env(safe-area-inset-top));
}

.install-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
}

.install-header img {
    width: 36px;
    border-radius: 8px;
}

/* The retrospective banner opens it on a tap anywhere: Safari iOS only fires clicks on what looks clickable */
#retro {
    cursor: pointer;
}

.retro-year {
    flex: none;
    width: 36px;
    height: 36px;
    line-height: 36px;
    border-radius: 8px;
    background-color: #6caee0;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
}

.install-text {
    flex: 1;
    line-height: 1.3;
}

.install-text span {
    display: block;
    font-size: 12px;
    color: #777;
}

.install button {
    font: 13px Trebuchet MS, sans-serif;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
}

.install-close {
    color: #999;
}

.install .install-how {
    color: #fff;
    background-color: #6caee0;
    border-radius: 14px;
    padding: 6px 14px;
}

/* Show the steps only once "How?" is tapped */
.install:not(.open) ol {
    display: none;
}

.install ol {
    margin: 0;
    padding: 0 16px 12px 34px;
    line-height: 1.5;
}

.install li {
    margin: 6px 0;
}

.install .key {
    white-space: nowrap;
    background-color: #e3eef8;
    border-radius: 5px;
    padding: 2px 6px;
}

.install svg {
    width: 15px;
    height: 15px;
    margin-right: 3px;
    vertical-align: -3px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Keep the icon definitions out of the layout */
.install > svg {
    display: none;
}

.install .key svg:only-child {
    margin-right: 0;
}
