:root {
    --view-max-width: 1100px;
    --font-serif: "Literata", serif;
    --font-sanss: "Lato", sans-serif;
    --link-color: #1e90ff;
    --hover-color: #aa3311;
}

html {
    box-sizing: border-box;
    font-size: 62.5%;
    padding: 0;
    margin: 0;
}

body {
    font-family: var(--font-serif);
    font-size: 1.6em;
    font-weight: 400;
    line-height: 1.6;
    padding: 0 4rem;
    margin: 0;
}

*,
*:after,
*:before {
    box-sizing: inherit;
}

a {
    color: var(--link-color);
}

main {
    position: relative;
}

.main.likely {
    position: absolute;
    right: 0;
    bottom: 3rem;
    margin-bottom: -3rem;
}


header {
    margin: 0 auto;
    max-width: var(--view-max-width); 
    min-height: 10rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

header picture {
    font-size: 3rem;
    margin: 3rem 0;
}

header picture a {
    color: black;
}

header picture a:hover,
header picture a:active {
    color: rgba(0,0,0, 0.7);
}


header menu {
    margin: 0;
    padding: 0;
    list-style-type: none;
    display: flex;
    justify-content: space-around;
}

header menu li {
    margin: 0 1rem;
    font-size: 2rem;
}
header menu li a {
    color: #222;
    font-style: none;
    text-decoration: none;
}
header menu li a.active,
header menu li a:hover {
    border-bottom: 1px solid;
}

footer {
    font-family: sans-serif;
    max-width: var(--view-max-width); 
    margin: 1rem auto 0;
    padding: 2rem 0 1rem;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(0,0,0, 0.05);
    flex-wrap: wrap;
}

footer .disclaimer {
    font-size: 1.2rem;
    color: rgba(0, 0, 0, 0.5);
}


main {
    max-width: var(--view-max-width);
    margin: 0 auto;
}

main h2, 
main h3 {
    font-family: var(--font-sanss);
}

main h2 {
    font-size: 3rem;
    margin-bottom: 0;
}

main h3 {
    font-size: 2rem;
    margin: 2.25rem 0 0.75rem;
}

main.list {
    display: flex;

}
main.list aside {
    min-width: 30rem;
    padding-top: 2rem;
}

.double {
    display: flex;
    width: 100%;
}

.double .column {
    min-width: 50%;
}

.column ul {
    list-style-type: none;
    padding: 0;
    font-family: var(--font-sanss);
    font-weight: 400;
    max-width: 90%;
    margin: 0;
}

.column ul li {
    line-height: 2rem;
    font-size: 1.6rem;
    padding-bottom: 0.8rem;
    position: relative;
}

.column ul li span {
    display: none;
    position: absolute;
    right: 103%;
    color: #999;
    font-size: 1.4rem;
    line-height: 2.2rem;
}

.column ul li:hover span {
    display: block;
}

.column ul li a {
    color: var(--link-color);
    text-decoration: none;
}

.column ul li a:hover {
    color: var(--hover-color);
}

section:target {
    margin: 0 -7rem -1rem;
    padding: 0 7rem 1rem;
    background: rgba(200, 0, 0, 0.05);
    border-radius: 1rem;
}

article {
    font-size: 2rem;
    padding-top: 2.5rem;
}

article h1 {
    margin-top: 0;
    line-height: 1.2;
}

article h1,
article h2 {
    color: #333;
    font-size: 3rem;
    position: relative;
}
article h2 {
    font-size: 2.8rem;
}

article h1 span,
article h2 span {
    display: inline-block;
    margin-right: 0.6rem;
    color: var(--link-color);
    font-weight: 600;
}

article h1 span a,
article h2 span a {
    text-decoration: none;
    color: var(--link-color);
}

article h1 span a:hover,
article h2 span a:hover {
    color: var(--hover-color);
    border-bottom: 0;
}

article h1 > a {
    color: #333;
}
article h1 > a:hover {
    border-bottom: 0;
    text-decoration: none;
}

article ol,
article ul {
    padding-left: 2.5rem;
    margin: 1.5rem 0;
}

article ol li {
    margin: 2rem 0;
}

article ul li {
    margin: 0.8rem 0;
}

article ol li .likely {
    width: 100%;
    text-align: right;
}

article ol li .likely > a {
    background: hsla(0,0%,91%,.8);
    width: 22px;
    line-height: 20px;
    font-size: 14px;
    border-radius: 3px;
    height: 22px;
    margin: 0 5px 10px;
    text-align: center;
    font-weight: bold;
} 
article ol li .likely > a:hover {
    text-decoration: none;
    border-bottom: 0;
    background: rgba(30, 144, 255, 0.15);
}

article ol li div > p {
    margin: 0;
}

article ol li:target > div:first-child {
    margin: -1rem -4rem;
    padding: 1rem 4rem;
    border-radius: 4px;
    background-color: rgba(0,128,128, 0.10);
}

article strong,
article em {
    color: teal;
}

article blockquote {
    border-left: 2px solid darkred;
    padding-left: 2rem;
}
article blockquote * {
    color: darkred;
}

article aside {
    font-size: 1.4rem;
    color: #999;
}

article a {
    text-decoration: none;
}
article a:hover,
article a:active {
    border-bottom: 1px solid;
}

nav {
    display: flex;
    justify-content: space-between;
    font-size: 2rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

nav a {
    margin: 0.75rem 0;
    color: #222;
    text-decoration: none;
    max-width: 48%;
}

nav a span {
    font-size: 3rem;
    color: var(--link-color);
    line-height: 2rem;
    position: relative;
    top: 4px;
    margin: 0 1rem;
}
nav a.next span {
    margin-right: 0;
}

nav a.prev span {
    margin-left: 0;
}

nav a:hover,
nav a:hover span {
    color: var(--hover-color);
}


@media screen and (max-width: 900px) {
    body {
        padding: 0 1.6rem;
    }
    header {
        flex-direction: column;
        min-height: auto;
        padding: 0.6rem 0 0.8rem;
        margin-bottom: 0.6rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }
    header picture {
        font-size: 2.3rem;
        margin: 0.2rem 0 0.4rem;
        line-height: 1.2;
    }
    header .algolia-autocomplete {
        width: 100%;
        min-width: 100%;
        height: 3.6rem;
        margin: 0.4rem 0 0.6rem;
    }
    header .algolia-autocomplete .aa-input {
        height: 3.6rem;
        font-size: 1.5rem;
        line-height: 3.6rem;
        padding-left: 1rem;
    }
    header nav {
        margin: 0.2rem 0 0;
        font-size: 1.35rem;
        width: 100%;
        justify-content: center;
    }
    header menu {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 1.8rem;
        margin: 0;
        padding: 0;
        flex-wrap: nowrap;
    }
    header menu li {
        margin: 0;
        font-size: 1.35rem;
        white-space: nowrap;
    }
    main > h1 {
        font-size: 2.3rem;
        line-height: 1.25;
        margin: 0.8rem 0 0.4rem;
        font-weight: 700;
        color: #1e293b;
    }
    nav {
        margin: 1.5rem 0;
    }
    nav a {
        max-width: 100%;
    }
    section:target {
        margin: 0 -1.2rem -0.5rem;
        padding: 0.6rem 1.2rem;
        border-radius: 0.6rem;
    }
    article {
        font-size: 1.6rem;
        padding-top: 0.8rem;
    }
    article ol,
    article ul {
        padding-left: 2.2rem;
        margin: 1.2rem 0;
    }
    article ol li {
        margin: 1.4rem 0;
    }
    article ul li {
        margin: 0.6rem 0;
    }
    article ol li:target > div:first-child {
        margin: -0.6rem -1rem;
        padding: 0.6rem 1rem;
        border-radius: 4px;
    }
    article aside {
        font-size: 1.2rem;
        line-height: 1.35;
        color: #64748b;
        margin-bottom: 0.3rem;
    }
    article h1 {
        font-size: 2.1rem;
        line-height: 1.3;
        margin: 0.3rem 0 0.8rem;
        display: block;
    }
    article h1 > a {
        color: #1e293b;
        text-decoration: none;
    }
    article h1 > a:hover {
        color: var(--link-color);
    }
    article h1 span {
        position: initial;
        display: inline-block;
        margin-right: 0.5rem;
        color: var(--link-color);
        font-weight: 600;
    }
    article h1 span a {
        color: var(--link-color);
        text-decoration: none;
    }
    article h1 span a:hover {
        color: var(--hover-color);
    }
    .double {
        flex-wrap: wrap;
    }
    .column ul {
        max-width: 100%;
    }
    .column ul li {
        width: 100%;
        display: inline-flex;
        flex-direction: row-reverse;
        justify-content: space-between;
    }
    .column ul li a {
        margin-right: 1rem;
    }
    .column ul li span {
        display: inline;
        position: initial;
    }
    article blockquote {
        margin-left: 0;
    }
    .main.likely {
        position: initial;
        margin: 2rem 0 1rem;
    }
}

/* ========================================================
   Poll Banner (at-glass feedback)
   ======================================================== */

.poll-banner {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    margin: 0 -4rem;
    padding: 0.8rem 4rem;
    font-family: var(--font-sanss);
    font-size: 1.45rem;
    position: relative;
    z-index: 100;
}

.poll-wrapper {
    max-width: var(--view-max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.poll-message {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex: 1;
}

.poll-icon {
    font-size: 1.8rem;
    line-height: 1;
    flex-shrink: 0;
}

.poll-text {
    font-weight: 500;
    color: #1e293b;
    line-height: 1.4;
}

.poll-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-shrink: 0;
}

.poll-buttons {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.poll-btn {
    font-family: var(--font-sanss);
    font-size: 1.3rem;
    font-weight: 600;
    padding: 0.45rem 1.4rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.15s ease;
    outline: none;
    line-height: 1.4;
    white-space: nowrap;
}

.poll-btn-yes {
    background: #1e90ff;
    color: #ffffff;
    border: 1px solid #1e90ff;
}

.poll-btn-yes:hover {
    background: #1877d5;
    border-color: #1877d5;
    box-shadow: 0 2px 4px rgba(30, 144, 255, 0.25);
}

.poll-btn-no {
    background: #ffffff;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.poll-btn-no:hover {
    background: #f1f5f9;
    color: #1e293b;
    border-color: #94a3b8;
}

.poll-thanks {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #166534;
    font-size: 1.45rem;
    width: 100%;
    padding: 0.3rem 0;
}

.poll-close-btn {
    background: transparent;
    border: none;
    font-size: 2.2rem;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.poll-close-btn:hover {
    color: #1e293b;
    background: rgba(0, 0, 0, 0.05);
}

@media screen and (max-width: 900px) {
    .poll-banner {
        margin: 0 -1.6rem;
        padding: 0.8rem 1.6rem;
        border-bottom: 1px solid #e2e8f0;
    }
    .poll-wrapper {
        position: relative;
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
    }
    .poll-message {
        display: flex;
        align-items: flex-start;
        gap: 0.6rem;
        padding-right: 2.6rem;
        width: 100%;
    }
    .poll-icon {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    .poll-text {
        font-size: 1.3rem;
        line-height: 1.35;
    }
    .poll-actions {
        width: 100%;
        display: flex;
    }
    .poll-buttons {
        width: 100%;
        display: flex;
        gap: 0.8rem;
    }
    .poll-btn {
        flex: 1;
        text-align: center;
        padding: 0.45rem 0.6rem;
        font-size: 1.2rem;
        line-height: 1.25;
        white-space: normal;
    }
    .poll-close-btn {
        position: absolute;
        top: -0.2rem;
        right: -0.4rem;
        font-size: 2.2rem;
        line-height: 1;
        padding: 0.2rem 0.5rem;
    }
    .poll-thanks {
        font-size: 1.3rem;
    }
}
