/* Field guide (/rehber/), media (/medya/), the home bands and the lightbox.
   Same palette and fonts as the theme; card colour matches the booklet illustrations. */
:root {
    --his-forest: #154343;
    --his-deep: #0b2a2a;
    --his-hover: #286362;
    --his-mint: #18d790;
    --his-yellow: #ffcf26;
    --his-orange: #ff6033;
    --his-cream: #f6f5f0;
    --his-paper: #f3edd9;
    --his-line: #e3dcc6;
    --his-muted: #4c615e;
}

html.his-lock { overflow: hidden; }

/* The theme gives every li, a, span and p width:100%. Inline pieces need their own width back. */
.his-chips li, .his-chips a, .his-chips span, .his-motto li, .his-pager span, .his-pager strong { width: auto; }
.his-actions .button.button__cta { width: auto; }

/* Card and chip lists are not bulleted lists, whatever the article styles say. */
.his-chips, .his-chips li, .his-motto, .his-motto li, .his-species, .his-species > li, .his-rules, .his-rules > li,
.his-timeline, .his-timeline > li, .his-gallery, .his-gallery > li, .his-more, .his-more > li, .his-pages__list,
.his-pages__list > li, .his-places ul, .his-places li, .his-partners ul, .his-partners li { list-style: none; }
.his-chips li::marker, .his-motto li::marker, .his-species > li::marker, .his-rules > li::marker, .his-timeline > li::marker,
.his-gallery > li::marker, .his-more > li::marker, .his-pages__list > li::marker, .his-places li::marker, .his-partners li::marker { content: none; }
.his-boxes__item ul, .his-note ul { list-style: disc; }
.his-note ol { list-style: decimal; }

/* The simple cover is a fixed 190px box aligned to the bottom; with a lead line it must grow downward. */
section#hero-simple.his-hero-lead .hero-simple__container {
    height: auto;
    min-height: 190px;
    padding-top: 118px;
    padding-bottom: 38px;
}

.his-hero-simple__lead {
    max-width: 780px;
    margin: 14px 0 0;
    color: var(--his-cream);
    font: clamp(17px, 1.5vw, 21px)/1.45 RP_Semi_Bold, sans-serif;
}

.his-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.his-actions .button.button__cta { margin: 0; }

.his-g .eyebrow, .his-guide-intro .eyebrow, .his-feature .eyebrow, .his-guide-band .eyebrow {
    margin: 0 0 8px;
    color: var(--his-hover);
    font: 14px/1.3 RP_Semi_Bold, sans-serif;
    letter-spacing: .08em;
}

/* ---- Guide hub ---- */
section#archive-posts .his-guide-intro {
    display: grid;
    grid-template-columns: minmax(200px, 320px) minmax(0, 1fr);
    gap: clamp(22px, 4vw, 56px);
    align-items: center;
    margin: 10px 0 56px;
    padding: clamp(18px, 3vw, 34px);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(21, 67, 67, .10);
}

.his-guide-intro__cover {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .22);
    transform: rotate(-2deg);
    transition: transform .25s ease;
}

.his-guide-intro__cover:hover { transform: rotate(0deg) scale(1.01); }
.his-guide-intro__cover img { display: block; width: 100%; height: auto; }

.his-guide-intro__text h2 {
    margin: 0 0 6px;
    color: var(--his-forest);
    font-size: clamp(28px, 3.2vw, 46px);
}

.his-guide-intro__text p {
    color: var(--his-deep);
    font: clamp(16px, 1.25vw, 18px)/1.55 RP_Regular, sans-serif;
}

.his-guide-intro__text .his-guide-intro__places {
    margin: 0 0 12px;
    color: var(--his-hover);
    font-family: RP_Semi_Bold, sans-serif;
}

.his-motto {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.his-motto li {
    color: var(--his-orange);
    font: clamp(19px, 1.8vw, 26px)/1.2 BDS_Bold, sans-serif;
}

.his-guide-intro__text .his-guide-intro__partner {
    margin: 18px 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--his-line);
    color: var(--his-muted);
    font-size: 14px;
}

section#archive-posts .his-guide-contents {
    margin: 0 0 8px;
    color: var(--his-forest);
    text-align: center;
    font-size: clamp(28px, 3vw, 44px);
}

.his-guide-cat { margin: 34px 0 10px; }

.his-guide-cat__head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 16px;
    align-items: baseline;
    margin-bottom: 18px;
}

.his-guide-cat__num {
    grid-row: span 2;
    color: var(--his-mint);
    font: 44px/1 BDS_Bold, sans-serif;
}

.his-guide-cat__head h3 {
    margin: 0;
    color: var(--his-forest);
    font-size: clamp(24px, 2.3vw, 32px);
}

.his-guide-cat__head p {
    margin: 2px 0 0;
    color: var(--his-muted);
    font: 16px/1.45 RP_Regular, sans-serif;
}

section#archive-posts .archive-posts__card--image { background-color: var(--his-paper); background-size: cover; background-position: center; }

.his-pages { margin: 60px 0 10px; text-align: center; }
.his-pages h3 { margin: 0 0 6px; color: var(--his-forest); font-size: clamp(24px, 2.3vw, 32px); }
.his-pages > p { margin: 0 auto 22px; color: var(--his-muted); font: 16px/1.45 RP_Regular, sans-serif; }

.his-pages__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.his-pages__list a {
    display: block;
    color: var(--his-forest);
    text-decoration: none;
    font: 14px/1.3 RP_Semi_Bold, sans-serif;
}

.his-pages__list img {
    display: block;
    width: 100%;
    aspect-ratio: 420 / 595;
    object-fit: cover;
    margin-bottom: 8px;
    border-radius: 6px;
    background: var(--his-paper);
    box-shadow: 0 4px 14px rgba(21, 67, 67, .16);
    transition: transform .2s ease, box-shadow .2s ease;
}

.his-pages__list a:hover img { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(21, 67, 67, .22); }

/* ---- Guide chapters and media posts: blocks below the article text ---- */
.his-g {
    position: relative;
    left: 50%;
    width: min(1180px, calc(100vw - 32px));
    margin: 28px 0 44px;
    transform: translateX(-50%);
}

.his-g__inner { width: 100%; }

.his-g__title {
    margin: 0 0 14px;
    color: var(--his-forest);
    font: clamp(22px, 2vw, 30px)/1.2 BDS_Bold, sans-serif;
}

.his-g__intro { margin: -6px 0 20px; color: var(--his-muted); font: 17px/1.5 RP_Regular, sans-serif; }
.his-g__hint { margin: 10px 0 0; color: var(--his-muted); font: 14px/1.4 RP_Regular, sans-serif; }

main .date p.his-g-source {
    padding: 8px 0 0;
    border: 0;
    color: var(--his-muted);
    font: 14px/1.4 RP_Semi_Bold, sans-serif;
}

section#flexible_wysiwyg .flexible_wysiwyg__text p.his-g-lead {
    color: var(--his-deep);
    font: clamp(18px, 1.5vw, 21px)/1.6 RP_Regular, sans-serif;
}

body.single-post section#flexible_wysiwyg .flexible_wysiwyg__text p {
    margin-bottom: .9em;
}

.his-zoom { display: block; cursor: zoom-in; }

/* Species, sites and rocks */
.his-species {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.his-species__item {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--his-line);
    border-radius: 14px;
    background: var(--his-paper);
    box-shadow: 0 4px 14px rgba(21, 67, 67, .07);
}

.his-species__media { margin: 0; background: var(--his-paper); overflow: hidden; }

.his-species__media img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: contain;
    transition: transform .3s ease;
}

.his-species__item:hover .his-species__media img { transform: scale(1.03); }

.his-species__body {
    position: relative;
    flex: 1;
    padding: 18px 20px 20px 66px;
    border-top: 1px solid var(--his-line);
    background: #fffdf6;
}

.his-species__num, .his-rules__num, .his-timeline__num {
    position: absolute;
    top: 16px;
    left: 18px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--his-forest);
    color: var(--his-cream);
    font: 16px/1 BDS_Bold, sans-serif;
}

.his-g h3.his-species__name {
    margin: 0;
    color: var(--his-forest);
    font: clamp(21px, 1.7vw, 25px)/1.2 BDS_Bold, sans-serif;
}

.his-species__latin {
    margin: 3px 0 0;
    color: #5b6d5f;
    font: italic 16px/1.4 Georgia, "Times New Roman", serif;
}

.his-species__text {
    margin: 10px 0 0;
    color: var(--his-deep);
    font: 16px/1.5 RP_Regular, sans-serif;
}

.his-species__item.is-warn { border-color: #f2b9a3; }
.his-species__item.is-warn .his-species__body { background: #fff4ee; }
.his-species__item.is-warn .his-species__num { background: var(--his-orange); color: var(--his-deep); }

.his-species__item.is-wide { grid-column: 1 / -1; flex-direction: row; }
.his-species__item.is-wide .his-species__media { flex: 0 0 55%; }
.his-species__item.is-wide .his-species__media img { height: 100%; min-height: 260px; object-fit: cover; }
.his-species__item.is-wide .his-species__body { display: flex; flex-direction: column; justify-content: center; padding: 24px 28px; border-top: 0; border-left: 1px solid var(--his-line); }
.his-species__item.is-wide .his-species__num { position: static; margin-bottom: 12px; }

/* Rules */
.his-rules {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.his-rules__item {
    display: flex;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--his-line);
    border-radius: 14px;
    background: var(--his-paper);
}

.his-rules__item > img { flex: 0 0 150px; width: 150px; height: 104px; object-fit: contain; }
.his-rules__body { position: relative; padding-left: 48px; }
.his-rules__body .his-rules__num { top: 0; left: 0; }
.his-g .his-rules__body h3 { margin: 0 0 6px; color: var(--his-forest); font: 20px/1.25 BDS_Bold, sans-serif; }
.his-rules__body p { margin: 0; color: var(--his-deep); font: 16px/1.5 RP_Regular, sans-serif; }

/* Region boxes */
.his-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: 18px;
}

.his-boxes__item {
    padding: 0 0 18px;
    overflow: hidden;
    border: 1px solid var(--his-line);
    border-radius: 14px;
    background: var(--his-paper);
}

.his-boxes__item > img { display: block; width: 100%; height: 180px; object-fit: contain; background: var(--his-paper); }
.his-g .his-boxes__item h3 { margin: 12px 18px 8px; color: var(--his-forest); font: 21px/1.2 BDS_Bold, sans-serif; }
.his-boxes__item ul { margin: 0; padding: 0 18px 0 38px; color: var(--his-deep); font: 16px/1.6 RP_Regular, sans-serif; }

.his-g-figure {
    max-width: 460px;
    margin: 0 auto;
    padding: 12px;
    border: 1px solid var(--his-line);
    border-radius: 14px;
    background: var(--his-paper);
    text-align: center;
}

.his-g-figure img { display: block; width: 100%; height: auto; border-radius: 8px; }
.his-g-figure figcaption { margin-top: 10px; color: var(--his-muted); font: 14px/1.4 RP_Semi_Bold, sans-serif; }

/* Chips */
.his-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.his-chips a, .his-chips span {
    display: inline-block;
    padding: 9px 16px;
    border: 2px solid var(--his-forest);
    border-radius: 2em;
    color: var(--his-forest);
    font: 15px/1.2 RP_Semi_Bold, sans-serif;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

.his-chips span { border-style: dashed; }
.his-chips a:hover, .his-chips a:focus-visible { background: var(--his-forest); color: var(--his-yellow); }
.his-chips a[aria-current="page"] { background: var(--his-forest); color: var(--his-cream); }

/* Icon rows */
.his-icons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 18px;
    padding: 22px;
    border-radius: 16px;
    background: #e7f0e3;
}

.his-icons__item { text-align: center; }
.his-icons__item img { display: block; width: auto; max-width: 100%; height: 110px; margin: 0 auto 10px; object-fit: contain; mix-blend-mode: multiply; }
.his-icons__item p { margin: 0; color: var(--his-deep); font: 16px/1.45 RP_Regular, sans-serif; }
.his-icons__item .his-icons__title { margin-bottom: 4px; color: var(--his-forest); font: 18px/1.3 BDS_Bold, sans-serif; }

/* Notes */
.his-note {
    padding: 20px 24px;
    border-left: 6px solid var(--his-mint);
    border-radius: 12px;
    background: #e6f4ee;
    color: var(--his-deep);
}

.his-note p, .his-note li { margin: 0; font: 17px/1.5 RP_Regular, sans-serif; }
.his-note ol, .his-note ul { margin: 0; padding-left: 22px; }
.his-note li + li { margin-top: 4px; }
.his-note p.his-note__title { margin-bottom: 6px; color: var(--his-forest); font: 18px/1.3 BDS_Bold, sans-serif; letter-spacing: .02em; }
.his-note--warn { border-color: var(--his-orange); background: #fff1e8; }
.his-note--warn .his-note__title::before { content: "⚠ "; color: var(--his-orange); }
.his-note--calm { border-color: var(--his-yellow); background: var(--his-forest); }
.his-note--calm p, .his-note--calm li { color: var(--his-cream); }
.his-note--calm p.his-note__title { color: var(--his-yellow); }

/* Timeline */
.his-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.his-timeline__item {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--his-line);
    border-radius: 14px;
    background: var(--his-paper);
}

.his-timeline__item img { display: block; width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.his-timeline__body { position: relative; flex: 1; padding: 16px 18px 18px 62px; background: #fffdf6; border-top: 4px solid var(--his-mint); }
.his-g .his-timeline__body h3 { margin: 0 0 8px; color: var(--his-forest); font: 20px/1.25 BDS_Bold, sans-serif; }
.his-timeline__body p { margin: 0; color: var(--his-deep); font: 15.5px/1.55 RP_Regular, sans-serif; }

/* Age groups */
.his-ages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 18px;
}

.his-ages__item {
    padding: 22px 24px;
    border-radius: 14px;
    background: #e7f0e3;
    color: var(--his-deep);
}

.his-ages__item--2 { background: #e2f1f1; }
.his-ages__item--3 { background: var(--his-paper); }
.his-ages__item--4 { background: var(--his-forest); color: var(--his-cream); }
.his-g .his-ages__item h3 { display: grid; gap: 2px; margin: 0 0 12px; }
.his-ages__level { color: var(--his-hover); font: 14px/1.2 RP_Semi_Bold, sans-serif; letter-spacing: .08em; }
.his-ages__theme { color: var(--his-forest); font: clamp(22px, 1.9vw, 27px)/1.15 BDS_Bold, sans-serif; }
.his-ages__item--4 .his-ages__level { color: var(--his-mint); }
.his-ages__item--4 .his-ages__theme { color: var(--his-yellow); }
.his-ages__item p { margin: 0 0 8px; color: inherit; font: 17px/1.5 RP_Regular, sans-serif; }
.his-ages__item p.his-ages__question { margin-top: 12px; padding-top: 12px; border-top: 1px dashed rgba(21, 67, 67, .35); font-family: RP_Semi_Bold, sans-serif; }

/* Places */
.his-places {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    gap: 18px;
}

.his-places__group { padding: 20px 22px; border: 1px solid var(--his-line); border-radius: 14px; background: var(--his-paper); }
.his-g .his-places__group h3 { margin: 0 0 12px; color: var(--his-forest); font: 17px/1.3 BDS_Bold, sans-serif; letter-spacing: .04em; }
.his-places__group ul { margin: 0; padding: 0; list-style: none; }
.his-places__group li { padding: 9px 0; border-top: 1px solid var(--his-line); }
.his-places__group li:first-child { padding-top: 0; border-top: 0; }
.his-places__group strong { display: block; color: var(--his-deep); font: 17px/1.35 RP_Semi_Bold, sans-serif; }
.his-places__group span { color: var(--his-muted); font: 15px/1.4 RP_Regular, sans-serif; }

/* Field journal */
.his-journal {
    display: grid;
    gap: 16px;
    padding: clamp(18px, 3vw, 32px);
    border: 1px solid var(--his-line);
    border-radius: 16px;
    background: var(--his-paper);
}

.his-journal__top { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }

.his-journal label { display: block; color: var(--his-forest); font: 17px/1.3 RP_Semi_Bold, sans-serif; }

.his-journal input, .his-journal textarea {
    box-sizing: border-box;
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 0 12px;
    border: 0;
    border-bottom: 2px dotted #9fb3a9;
    border-radius: 6px 6px 0 0;
    background: #fffdf6;
    color: var(--his-deep);
    font: 17px/32px RP_Regular, sans-serif;
}

.his-journal input { height: 42px; }

.his-journal textarea {
    min-height: 104px;
    padding-top: 4px;
    resize: vertical;
    background: #fffdf6 repeating-linear-gradient(180deg, transparent 0 35px, #d9d2bc 35px 36px);
    background-attachment: local;
    line-height: 36px;
}

.his-journal__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.his-journal__actions button {
    min-height: 46px;
    padding: 10px 22px;
    border: 0;
    border-radius: 2em;
    background: var(--his-forest);
    color: var(--his-yellow);
    font: 16px/1.2 BDS_Bold, sans-serif;
    text-transform: uppercase;
    cursor: pointer;
}

.his-journal__actions .his-journal__clear { background: #e3ebe6; color: var(--his-forest); }

/* Chapter pager */
.his-pager {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.his-pager a {
    display: grid;
    gap: 4px;
    padding: 16px 20px;
    border-radius: 12px;
    background: var(--his-forest);
    color: var(--his-cream);
    text-decoration: none;
    transition: background .2s ease;
}

.his-pager a:hover { background: var(--his-hover); }
.his-pager span { color: var(--his-mint); font: 14px/1.2 RP_Semi_Bold, sans-serif; }
.his-pager strong { color: var(--his-cream); font: 20px/1.2 BDS_Bold, sans-serif; }
.his-pager__prev span::before { content: "← "; }
.his-pager__next { text-align: right; }
.his-pager__next span::after { content: " →"; }
.his-g--nav p.his-g__title { font-size: 20px; }

/* ---- Media ---- */
section#archive-posts .his-feature {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    overflow: hidden;
    margin: 10px 0 34px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(21, 67, 67, .12);
}

.his-feature__media img { display: block; width: 100%; height: 100%; min-height: 300px; object-fit: cover; }
.his-feature__text { padding: clamp(20px, 3vw, 40px); }
.his-feature__text h2 { margin: 0 0 6px; color: var(--his-forest); font-size: clamp(26px, 2.6vw, 38px); }
.his-feature__text p { color: var(--his-deep); font: 17px/1.55 RP_Regular, sans-serif; }
.his-feature__text p.his-feature__date { margin: 0 0 12px; color: var(--his-muted); font: 15px/1.3 RP_Semi_Bold, sans-serif; }

.his-partners {
    margin: 0 0 34px;
    padding: clamp(20px, 3vw, 34px);
    border-radius: 16px;
    background: var(--his-forest);
    color: var(--his-cream);
}

.his-partners h2 { margin: 0 0 8px; color: var(--his-mint); font-size: clamp(24px, 2.4vw, 34px); }
.his-partners > p { max-width: 760px; margin: 0 0 18px; color: var(--his-cream); font: 17px/1.55 RP_Regular, sans-serif; }
.his-partners ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.his-partners li { padding: 16px 18px; border-left: 4px solid var(--his-yellow); border-radius: 8px; background: rgba(246, 245, 240, .08); }
.his-partners strong { display: block; color: var(--his-cream); font: 19px/1.3 BDS_Bold, sans-serif; }
.his-partners span { color: #cfe3dc; font: 16px/1.4 RP_Regular, sans-serif; }

.his-filter { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; }

.his-filter button {
    padding: 9px 18px;
    border: 2px solid var(--his-forest);
    border-radius: 2em;
    background: transparent;
    color: var(--his-forest);
    font: 15px/1.2 RP_Semi_Bold, sans-serif;
    cursor: pointer;
}

.his-filter button[aria-pressed="true"] { background: var(--his-forest); color: var(--his-yellow); }
section#archive-posts .archive-posts__card[hidden] { display: none !important; }

.his-empty {
    margin: 20px 0 0;
    padding: 18px 22px;
    border: 2px dashed #b8c8bf;
    border-radius: 12px;
    color: #3d5551;
    text-align: center;
    font: 17px/1.5 RP_Semi_Bold, sans-serif;
}

.his-empty[hidden] { display: none; }

.flexible_wysiwyg__text p.his-post-summary { color: var(--his-forest); font-size: clamp(19px, 1.6vw, 23px); line-height: 1.45; }

.his-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.his-gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: var(--his-paper); transition: transform .25s ease; }
.his-gallery a:hover img { transform: scale(1.02); }
.his-post-video { display: block; width: 100%; max-height: 72vh; border-radius: 12px; background: #000; }

.his-more {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.his-more a {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    color: var(--his-forest);
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(21, 67, 67, .1);
    transition: transform .2s ease, box-shadow .2s ease;
}

.his-more a:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(21, 67, 67, .16); }
.his-more img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--his-paper); }
.his-more strong { padding: 14px 16px 4px; font: 19px/1.25 BDS_Bold, sans-serif; }
.his-more span { padding: 0 16px 16px; color: var(--his-muted); font: 15px/1.4 RP_Regular, sans-serif; }

/* Activity pages: guide links under the field notes, inside the content column. */
section#activity-notes + .his-g--related {
    left: auto;
    width: auto;
    margin: 24px clamp(16px, 4vw, 60px) 44px;
    padding: clamp(20px, 3vw, 32px);
    border-radius: 16px;
    background: var(--his-paper);
    transform: none;
}

/* ---- Home: first project band ---- */
section.his-first {
    position: relative;
    left: 50%;
    z-index: 1;
    box-sizing: border-box;
    width: 100vw;
    overflow: hidden;
    padding: clamp(64px, 8vw, 120px) 16px clamp(72px, 9vw, 130px);
    background: var(--his-forest);
    color: var(--his-cream);
    transform: translateX(-50%);
    isolation: isolate;
}

.his-first__bg {
    position: absolute;
    inset: -4% 0;
    z-index: -3;
    background-position: 70% 40%;
    background-size: cover;
    transform: scale(1.06);
    animation: his-first-drift 26s ease-in-out infinite alternate;
}

.his-first__shade {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(10, 38, 38, .94) 0%, rgba(10, 38, 38, .82) 38%, rgba(10, 38, 38, .45) 70%, rgba(10, 38, 38, .25) 100%),
        linear-gradient(180deg, rgba(10, 38, 38, .55) 0%, rgba(10, 38, 38, 0) 30%, rgba(10, 38, 38, 0) 70%, rgba(10, 38, 38, .7) 100%);
}

.his-first__route {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
}

.his-first__route--b { opacity: .7; }

/* The mask draws each route in (like the theme's flourishes); the dots then keep walking along it. */
.his-first.his-anim .his-first__draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.his-first.his-anim.is-in .his-first__route--a .his-first__draw { animation: his-first-draw 7s ease-out .2s forwards; }
.his-first.his-anim.is-in .his-first__route--b .his-first__draw { animation: his-first-draw 6s ease-out 1.4s forwards; }
.his-first__dots { animation: his-first-march 2.4s linear infinite; }
.his-first__route--b .his-first__dots { animation-duration: 3.2s; animation-direction: reverse; }

@keyframes his-first-draw { to { stroke-dashoffset: 0; } }
@keyframes his-first-march { to { stroke-dashoffset: -14.08; } }
@keyframes his-first-drift { from { transform: scale(1.06) translateX(-1%); } to { transform: scale(1.1) translateX(1%); } }
@keyframes his-first-float { 0%, 100% { transform: translateY(0) rotate(var(--tilt)); } 50% { transform: translateY(-8px) rotate(var(--tilt)); } }
@keyframes his-first-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.his-first__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: center;
    width: min(1180px, 100%);
    margin: 0 auto;
}

.his-first.his-anim .his-first__text > *,
.his-first.his-anim .his-first__media { opacity: 0; }
.his-first.his-anim.is-in .his-first__text > * { animation: his-first-rise .8s cubic-bezier(.2, .7, .2, 1) forwards; }
.his-first.his-anim.is-in .his-first__text > :nth-child(2) { animation-delay: .1s; }
.his-first.his-anim.is-in .his-first__text > :nth-child(3) { animation-delay: .2s; }
.his-first.his-anim.is-in .his-first__text > :nth-child(4) { animation-delay: .3s; }
.his-first.his-anim.is-in .his-first__text > :nth-child(5) { animation-delay: .4s; }
.his-first.his-anim.is-in .his-first__media { animation: his-first-rise 1s cubic-bezier(.2, .7, .2, 1) .25s forwards; }

section.his-first p.his-first__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: auto;
    margin: 0 0 18px;
    padding: 7px 16px 7px 12px;
    border-radius: 2em;
    background: var(--his-yellow);
    color: var(--his-deep);
    font: 14px/1.2 RP_Semi_Bold, sans-serif;
    letter-spacing: .08em;
}

section.his-first p.his-first__eyebrow::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--his-orange);
    box-shadow: 0 0 0 4px rgba(255, 96, 51, .25);
}

section.his-first h2.his-first__title {
    margin: 0 0 16px;
    color: #fff;
    font: clamp(40px, 5.2vw, 76px)/1.02 BDS_Bold, sans-serif;
    text-transform: uppercase;
    text-shadow: 0 4px 24px rgba(0, 0, 0, .35);
    overflow-wrap: anywhere;
}

section.his-first p.his-first__partner {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 0 0 18px;
    padding: 14px 18px;
    border-left: 4px solid var(--his-mint);
    border-radius: 0 10px 10px 0;
    background: rgba(246, 245, 240, .08);
    color: #fff;
    font: clamp(16px, 1.3vw, 19px)/1.4 RP_Semi_Bold, sans-serif;
}

section.his-first p.his-first__body {
    max-width: 560px;
    margin: 0;
    color: #e3efe9;
    font: clamp(16px, 1.25vw, 18px)/1.6 RP_Regular, sans-serif;
}

section.his-first .his-actions { margin-top: 28px; }
section.his-first .button__cta.bg--teal a { color: var(--his-deep); }

.his-first__media {
    position: relative;
    min-height: clamp(300px, 34vw, 470px);
}

.his-first__photo {
    position: absolute;
    margin: 0;
    padding: 12px 12px 14px;
    border-radius: 6px;
    background: #fbfaf5;
    box-shadow: 0 22px 50px rgba(0, 0, 0, .45);
    transition: transform .35s ease;
}

.his-first__photo img { display: block; width: 100%; height: auto; border-radius: 3px; }

.his-first__photo figcaption {
    margin-top: 10px;
    color: var(--his-forest);
    text-align: center;
    font: 15px/1.2 BDS_Bold, sans-serif;
    letter-spacing: .02em;
}

.his-first__photo--main {
    --tilt: -3deg;
    top: 0;
    right: 4%;
    z-index: 2;
    width: 78%;
    transform: rotate(var(--tilt));
    animation: his-first-float 7s ease-in-out infinite;
}

.his-first__photo--second {
    --tilt: 5deg;
    bottom: 0;
    left: 0;
    z-index: 1;
    width: 46%;
    padding-bottom: 12px;
    transform: rotate(var(--tilt));
    animation: his-first-float 8s ease-in-out 1.2s infinite;
}

.his-first__media:hover .his-first__photo--main { animation-play-state: paused; }

.his-first__stamp {
    position: absolute;
    right: 0;
    bottom: 8%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 128px;
    height: 128px;
    padding: 18px;
    box-sizing: border-box;
    border: 3px dashed var(--his-deep);
    border-radius: 50%;
    background: var(--his-mint);
    color: var(--his-deep);
    text-align: center;
    font: 15px/1.15 BDS_Bold, sans-serif;
    text-transform: uppercase;
    box-shadow: 0 0 0 6px var(--his-mint), 0 16px 30px rgba(0, 0, 0, .35);
    transform: rotate(12deg);
}

@media (max-width: 900px) {
    .his-first__inner { grid-template-columns: 1fr; }
    .his-first__route { opacity: .5; }
    .his-first__route--b { display: none; }
    .his-first__shade {
        background: linear-gradient(180deg, rgba(10, 38, 38, .9) 0%, rgba(10, 38, 38, .82) 55%, rgba(10, 38, 38, .6) 100%);
    }
    .his-first__media { min-height: 0; aspect-ratio: 5 / 4; max-width: 560px; width: 100%; margin: 0 auto; }
    .his-first__stamp { width: 104px; height: 104px; font-size: 13px; }
}

@media (max-width: 520px) {
    .his-first__media { aspect-ratio: 1 / 1; }
    .his-first__photo--main { width: 88%; right: 0; }
    .his-first__photo--second { width: 54%; }
    .his-first__stamp { right: -4px; bottom: 2%; width: 92px; height: 92px; padding: 12px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .his-first__bg, .his-first__dots, .his-first__photo { animation: none !important; }
    .his-first.his-anim .his-first__draw { stroke-dashoffset: 0; animation: none !important; }
    .his-first.his-anim .his-first__text > *, .his-first.his-anim .his-first__media { opacity: 1; animation: none !important; }
}

.his-guide-band {
    position: relative;
    z-index: 1;
    left: 50%;
    box-sizing: border-box;
    width: 100vw;
    padding: clamp(40px, 6vw, 90px) 16px;
    background: var(--his-paper);
    transform: translateX(-50%);
}

.his-guide-band__inner {
    display: grid;
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
    gap: clamp(24px, 5vw, 70px);
    align-items: center;
    width: min(1180px, 100%);
    margin: 0 auto;
}

.his-guide-band__media { display: block; overflow: hidden; border-radius: 12px; box-shadow: 0 14px 34px rgba(0, 0, 0, .22); transform: rotate(-2.5deg); transition: transform .25s ease; }
.his-guide-band__media:hover { transform: rotate(0); }
.his-guide-band__media img { display: block; width: 100%; height: auto; }
.his-guide-band__text h2 { margin: 0 0 12px; color: var(--his-forest); font-size: clamp(30px, 3.6vw, 52px); }
.his-guide-band__text > p { max-width: 640px; color: var(--his-deep); font: clamp(17px, 1.3vw, 19px)/1.55 RP_Regular, sans-serif; }
.his-guide-band .his-chips { margin: 20px 0 26px; }
.his-guide-band .his-chips a { padding: 7px 13px; background: rgba(255, 255, 255, .55); font-size: 14px; }

/* ---- Lightbox ---- */
.his-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    align-content: center;
    padding: 56px 16px 24px;
    background: rgba(8, 26, 26, .92);
}

.his-lightbox[hidden] { display: none; }
.his-lightbox img { max-width: min(1200px, 100%); max-height: calc(100vh - 120px); object-fit: contain; border-radius: 6px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.his-lightbox__caption { margin: 10px 0 0; color: var(--his-cream); text-align: center; font: 15px/1.4 RP_Semi_Bold, sans-serif; }

.his-lightbox__close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--his-cream);
    color: var(--his-forest);
    font: 28px/1 sans-serif;
    cursor: pointer;
}

/* ---- Small screens ---- */
@media (max-width: 900px) {
    section#archive-posts .his-guide-intro,
    section#archive-posts .his-feature,
    .his-guide-band__inner { grid-template-columns: 1fr; }
    .his-guide-intro__cover, .his-guide-band__media { max-width: 300px; margin: 0 auto; }
    .his-species__item.is-wide { flex-direction: column; }
    .his-species__item.is-wide .his-species__media img { height: 240px; min-height: 0; }
    .his-species__item.is-wide .his-species__body { border-top: 1px solid var(--his-line); border-left: 0; }
}

@media (max-width: 600px) {
    .his-rules__item { flex-direction: column; align-items: flex-start; }
    .his-rules__item > img { flex-basis: auto; width: 100%; height: 150px; }
    .his-pager { grid-template-columns: 1fr; }
    .his-pager__next { text-align: left; }
    .his-species__media img { height: 190px; }
}

/* ---- Printing the field journal ---- */
@media print {
    body.his-print-journal header#header-global,
    body.his-print-journal footer#footer-global,
    body.his-print-journal .his-write-us,
    body.his-print-journal #hero-post,
    body.his-print-journal .his-g--nav,
    body.his-print-journal .his-journal__actions,
    body.his-print-journal #cmplz-cookiebanner-container,
    body.his-print-journal .cmplz-manage-consent { display: none !important; }
    body.his-print-journal .his-g { left: 0; width: 100%; transform: none; }
    body.his-print-journal .his-journal { border: 0; background: #fff; }
    body.his-print-journal .his-journal input,
    body.his-print-journal .his-journal textarea { background-color: #fff; }
}
