html {
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: border-box;
}

a, a:link, a:visited, a:hover, a:focus, a:active {
    text-decoration: none;
}

body {
    background-color: ghostwhite;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 20px;
    margin: 0;
    padding: 0;
}

sup {
    font-size: small;
    font-weight: normal;
}

button {
    font-family: inherit;
    font-size: inherit;
    font-weight: bold;
    margin-top: 0.4em;
    padding: 0.2em 0.5em;
    width: unset;
}

footer {
    background-color: #258;
    border-top: 1px solid #ccc;
    color: #FAA;
    margin-top: 0.4em;
    padding: 0.2em 0;
}

/* footer h3 {
    display: inline;
} */

header {
    background-color: #258;
    color: #FAA;
    padding-bottom: 0.2em;
}

header a, header a:link, header a:visited, header a:hover, header a:focus, header a:active {
    background-color: #258;
    color: #FAA;
    text-decoration: none;
}

footer section span a, footer section span a:link, footer section span a:visited, footer section span a:hover, footer section span a:focus, footer section span a:active {
    background-color: #258;
    color: #FAA;
}

h2 {
    color: #258;
    font-size: 1.27em;
    margin: 0.4em 0 1rem 0;
}

h3 {
    color: #258;
    font-size: 1.1em;
    margin: 0.4em 0 0 0;
    /* margin-bottom: 0.4em; */
}

h3>a {
    text-decoration: none;
}

input {
    font-family: inherit;
    font-size: inherit;
    width: 16em;
}

input[type="checkbox"] {
    width: unset;
}

input[type="checkbox"] + label {
    font-weight: unset;
    display: inline;
}

input[readonly] {
    background-color: #ccc;
}

label {
    font-weight: bold;
    display: block;
}

li, p {
    padding: 4px 0;
}

/* ol.posting-list {
    margin-bottom: 0;
    margin-top: 0.4em;
    padding-left: 30px;
} */

p:first-of-type {
    margin: 0;
}

section {
    margin: auto;
    max-width: 860px;
    padding: 0 0.3em;
}

section#merge-map-content {
    max-width: 1260px;
}

select {
    font-family: inherit;
    font-size: inherit;
}

table {
    border-bottom: 2px solid #ccc;
    border-collapse: collapse;
    width: 100%;
}

table+table {
    margin-top: 1.5rem;
}

tbody {
    /* white-space: nowrap; */
    vertical-align: top;
}

thead {
    border-bottom: 2px solid #ccc;
    vertical-align: bottom;
}

th, td {
    padding: 0.25rem;
    text-align: left;
}

td.col-half {
    width: 50%;
}

td.col-thin {
    width: 10%;
}

td.col-medium {
    width: 12%;
}

tr:last-child td {
    padding-bottom: 0.5rem;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover td {
    background-color: aliceblue;
}

ul {
    margin-bottom: 0;
    margin-top: 0.4em;
    padding-left: 18px;
}

.button-delete {
    background-color: rgba(136, 34, 34, 0.001);
    border-color: rgba(136, 34, 34, 0.7);
    border-radius: .2rem;
    box-shadow: 1px 1px rgb(136, 34, 34), 2px 2px rgb(136, 34, 34);
    color: rgb(136, 34, 34);
}
.button-delete:hover {
    background-color: rgb(136, 34, 34, 0.1);
}

.button-update {
    background-color: rgba(34, 136, 51, 0.001);
    border-color: rgba(34, 136, 51, 0.7);
    border-radius: .2rem;
    box-shadow: 1px 1px rgb(34, 136, 51), 2px 2px rgb(34, 136, 51);
    color: rgb(34, 136, 51);
}
.button-update:hover {
    background-color: rgb(34, 136, 51, 0.1);
}

.feedback-link {
    display: inline-block;
    font-size: smaller;
    padding: 0.2rem 1rem;
}

.found-list {
    padding-left: 1rem;
}

.found-grid {
    display: grid;
    grid-template-columns: 8fr 1fr 1fr;
    list-style-type: none;
    padding-bottom: 1rem;
}
.found-grid-item-parent {
    display: inline-block;
    grid-column-start: 1;
    grid-column-end: 8;
}
.found-grid-item-child {
    grid-column-start: 1;
    grid-column-end: 10;
}
.found-grid-item-child-yep {
    grid-column-start: 8;
    grid-column-end: 9;
    justify-self: end;
}
.found-grid-item-child-nope {
    grid-column-start: 9;
    grid-column-end: 10;
    justify-self: end;
}

.host, .posting-list li {
    color: #555;
    font-weight: normal;
}

.inline-form {
    display: inline;
}
.inline-form button {
    background-color: unset;
    border: unset;
    color: rgb(0, 0, 238);
    cursor: pointer;
    font-weight: unset;
}

.link-list {
    list-style-type: none;
    padding-left: 5px;
}

.num-postings {
    color: #258;
    /* border: 1px solid #258;
    border-radius: 25px; */
    /* font-size: 85%; */
    font-weight: bold;
    /* padding: 0 0.4em 0.1em 0.4em; */
    /* text-shadow: 0.5px 0.5px 0 #FAA; */
}

.plain-link {
    text-decoration: none;
}

.posting-list {
    margin-top: 0.2em;
    padding-left: 20px;
}
.posting-list li {
    margin-bottom: unset;
}

.prev-next {
    font-size: 90%;
    margin-right: 1em;
}

.submit-button {
    background-color: rgb(34, 85, 136, 0.001);
    border-color: rgb(34, 85, 136, 0.7);
    border-radius: .2rem;
    box-shadow: 1px 1px rgb(34, 85, 136), 2px 2px rgb(34, 85, 136);
    color: rgb(34, 85, 136);
}
.submit-button:hover {
    background-color: rgb(34, 85, 136, 0.1);
}

#add-posting {
    padding-left: 30px;
}

#add-posting-form {
    display: grid;
}

#add-posting-button {
    justify-items: end;
    margin-top: 1rem;
    padding: 0.3rem 1.8rem;
}

#add-button-row {
    display: grid;
    justify-items: end;
}

#merge-map-content tbody td {
    border-bottom: 1px #ccc solid;
}

#posted-on-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 1rem;
}

#days-list {
    display: grid;
    list-style-type: none;
    padding-left: 0;
    grid-template-columns: repeat(7, 1fr);
}

#days-list li {
    /* justify-self: center; */
    font-weight: bold;
    margin-bottom: 0.4em;
}

#days-list sup, .no-links {
    color: #777;
}

#delete-link {
    color: #ee2222;
    font-weight: bold;
    margin-left: 1em;
}

#edit-postings {
    margin-bottom: 0.8em;
}

#edit-postings ol {
    margin: 0.4em 0 0 0;
    padding-left: 30px;
}

#edit-section, #login-section {
    padding: 1em;
    max-width: unset;
}

#edit-section input {
    margin-bottom: 0.5rem;
    width: 100%;
}
#edit-section input[type="checkbox"] {
    width: unset;
}

#edit-section label {
    padding-top: 4px;
}

#edit-section p {
    font-size: unset;
    margin: 0;
}

#edit-section>div>p:first-child {
    padding-top: 0;
}

#footer-section {
    align-items: baseline;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

#footer-section form {
    display: inline;
    text-align: right;
}

#footer-section button {
    margin-bottom: 0.2em;
}

#footer-section span {
    color: #FAA;
    font-size: 1.3em;
}

#footer-section input {
    width: 10em;
}

#form-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

#form-buttons button {
    width: 8rem;
}

#form-buttons .right {
    justify-self: end;
}

#header-section {
    align-items: baseline;
    display: grid;
    grid-template-columns: 3fr 1fr;
}

#header-title {
    font-size: 1.8em;
    font-weight: bold;
    margin: 0;
    text-align: left;
}

#header-title>a {
    text-shadow: 3px 3px 0 #fc5f5f;
}

#header-sub-title {
    font-size: 1.3em;
    margin: 0;
    text-align: right;
}

#login-section div:not(:first-child) {
    margin-top: 0.4em;
}

#merge-link {
    /* color: #ee2222; */
    font-weight: bold;
    margin-left: 1em;
}

#month-list {
    list-style-type: none;
    padding: 0;
}

#search-button {
    background-color: #FAA;
    border: 2px solid #FAA;
    border-radius: 3px;
    box-shadow: 0.5px 0.5px 0 #fc5f5f, 1px 1px 0 #fc5f5f, 1.5px 1.5px 0 #fc5f5f, 2px 2px 0 #fc5f5f;
    color: #258;
}
#search-button:focus {
    outline: 1px dotted #FAA;
    outline-offset: 2px;
}
#search-button:hover {
    background-color: hsl(10, 100%, 83%);
}

#search-form {
    padding: 5px;
}

#search-query {
    border: 2px solid #FAA;
    border-radius: 3px;
    padding: 0.3rem;
}
#search-query:focus {
    /* border-radius: 0; */
    outline: 1px dotted #FAA;
    outline-offset: 2px;
}

#search-result-count {
    color: #777;
    font-size: smaller;
    font-style: italic;
    padding: 5px;
}

#search-result-list {
    list-style-type: none;
    margin-top: 5px;
    padding-left: 5px;
}
#search-result-list > li {
    margin-bottom: 1rem;
}


#year-list {
    list-style-type: none;
    padding: 0;
}

@media (min-width:476px) {
    body {
        font-size: 18px;
    }
    header {
        padding-bottom: 0.4em;
    }
    #header-title>a {
        text-shadow: 0.5px 0.5px 0 #fc5f5f, 1px 1px 0 #fc5f5f, 1.5px 1.5px 0 #fc5f5f, 2px 2px 0 #fc5f5f;
    }
    input {
        width: 20em;
    }
    ol.posting-list {
        margin-top: 0.4em;
        padding-left: 30px;
    }
    ul {
        padding-left: 36px;
    }
    .host, .posting-list li {
        font-size: 84%;
    }
    .latest-list {
        padding-left: 30px;
    }
    #edit-section {
        border: 1px solid #ccc;
        border-radius: 4px;
        margin: 1em auto;
        max-width: 860px;
    }
    #login-section {
        border: 1px solid #ccc;
        border-radius: 4px;
        margin: 1em auto;
        max-width: 860px;
    }
    #days-list, #month-list {
        padding-left: 18px;
    }

    #footer-section {
        grid-template-columns: 1fr 2fr;
    }
}

@media (min-width:676px) {
    #footer-section input {
        width: 20rem;
    }
}