*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: #111;
    /* Change background colour if wanting to add a border to the content */
    background: #fff;
}

main {
    width: 780px;
    max-width: 100%;
    margin: 0 auto;
    padding: 10px;
    background: #fff;
}

.page-header {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 12px;
}

.site-logo {
    width: 220px;
    height: auto;
    flex: 0 0 auto;
    display: block;
}

.header-title {
    flex: 1 1 auto;
    min-width: 0;
}

h1#title,
.v3-trip-heading {
    margin: 0 0 6px;
    font-size: 34px;
    font-weight: 500;
    color: #008400;
}

.header-controls {
    margin: 0 0 10px;
}

.header-controls .header-links-row {
    margin: 0;
}

.header-controls>div+div {
    margin-top: 2px;
}

.header-controls #navLinks {
    margin: 0;
}

.header-controls a,
.trips-intro a,
.v3-trip-link,
#navLinks a {
    color: #0b57d0;
    text-decoration: none;
}

.header-controls a:hover,
.trips-intro a:hover,
.v3-trip-link:hover,
#navLinks a:hover {
    text-decoration: underline;
}

#messages {
    margin: 8px 0 12px;
    color: #b00020;
}

.list-summary-block {
    margin: 2px 0 4px;
    padding-bottom: 10px;
    border-bottom: 2px solid #cfe4c4;
}

.list-summary-block .list-summary-line {
    font-weight: 400;
    font-size: 16px;
    line-height: 1.15;
}

.list-summary-block .list-summary-line+.list-summary-line {
    margin-top: 2px;
}

.list-tree {
    border-top: 1px solid #e6e6e6;
    border-bottom: 1px solid #e6e6e6;
}

.list-tree.hide-unseen .list-row.not-seen {
    display: none;
}

.list-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: baseline;
    padding: 6px 10px;
    border-top: 1px solid #f0f0f0;
    user-select: none;
}

.list-row:first-child {
    border-top: none;
}

.list-row .cell.scientific {
    font-style: italic;
    color: inherit;
    text-align: left;
    white-space: nowrap;
}

.list-row.not-seen {
    color: #8f8f8f;
}

.list-row.seen {
    color: #000000;
}

.list-row.level-0 {
    font-weight: 600;
}

.list-row.level-0 .cell.scientific {
    font-weight: 500;
}

.list-row.level-1 .cell.english {
    padding-left: 22px;
}

.list-row.level-2 .cell.english {
    padding-left: 44px;
}

.list-row.clickable {
    cursor: pointer;
}

.list-row.leaf {
    cursor: default;
}

.list-row.clickable:hover {
    background: #ffff93;
}


.list-row.leaf:hover {
    background: #ffffb7;
}

.otd-layout {
    display: flex;
    align-items: stretch;
    gap: 18px;
    margin-top: 12px;
}

.otd-panel {
    min-height: 200px;
}

.otd-selector {
    flex: 1 1 auto;
    min-width: 0;
}

.otd-content {
    flex: 0 0 510px;
    width: 510px;
}

.trip-content {
    width: 800px;
    max-width: 100%;
    margin: 0 auto;
}

.trip-subheader {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 400;
    color: #666;
    text-transform: uppercase;
    letter-spacing: .18em;
}

.trip-intro {
    margin: 8px 0 18px;
}

.otd-day {
    margin-bottom: 10px;
}

.otd-separator {
    border: none;
    margin: 15px 0;
}

.otd-date {
    font-size: 11px;
    font-weight: 400;
    color: #999;
    text-transform: uppercase;
    letter-spacing: .2em;
}

.otd-site {
    font-size: 120%;
    color: #2D8930;
    margin-top: .5em;
}

.otd-site a {
    color: #2D8930;
    text-decoration: none;
}

.otd-site a:hover {
    color: #333;
}

.otd-small-text {
    font-size: 12px;
    color: #888;
}

.otd-highlight {
    background-color: #f3e16b;
}

.otd-content img {
    max-width: 100%;
    height: auto;
}

.otd-content iframe {
    max-width: 100%;
}

.trip-content img {
    max-width: 100%;
    height: auto;
}

.trip-content iframe {
    max-width: 100%;
}

.otd-post-body a {
    color: #78B749;
    text-decoration: none;
}

.otd-post-body a:hover {
    color: #2D8930;
    text-decoration: underline;
}

.otd-ticks {
    font-weight: 600;
    color: #008400;
    margin-top: 20px;
}

.otd-ticks-location {
    font-weight: 600;
    color: #666;
    margin-top: 10px;
}

.otd-taxon {
    font-size: .9em;
    color: #333;
}

.trips-intro {
    margin-top: 2em;
    margin-bottom: 2.5em;
}

.trips-intro-image {
    margin-top: 10px;
}
