/* themes/PaperMod/assets/css/core/license.css */
/*
  PaperMod v8+
  License: MIT https://github.com/adityatelange/hugo-PaperMod/blob/master/LICENSE
  Copyright (c) 2020 nanxiaobei and adityatelange
  Copyright (c) 2021-2026 adityatelange
*/

/* themes/PaperMod/assets/css/core/reset.css */
*,
::after,
::before {
    box-sizing: border-box;
}

html {
    -webkit-tap-highlight-color: transparent;
    overflow-y: scroll;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

a,
button,
body,
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--primary);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    word-break: break-word;
    background: var(--theme);
}

article,
aside,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section,
table {
    display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin-top: 0;
    margin-bottom: 0;
}

ul {
    padding: 0;
}

a {
    text-decoration: none;
}

body,
figure,
ul {
    margin: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    overflow-x: auto;
    word-break: keep-all;
}

button,
input,
textarea {
    padding: 0;
    font: inherit;
    background: 0 0;
    border: 0;
}

input,
textarea {
    outline: 0;
}

button,
input[type=button],
input[type=submit] {
    cursor: pointer;
}

input:-webkit-autofill,
textarea:-webkit-autofill {
    box-shadow: 0 0 0 50px var(--theme) inset;
}

img {
    display: block;
    max-width: 100%;
}

/* themes/PaperMod/assets/css/core/theme-vars.css */
:root {
    --gap: 24px;
    --content-gap: 20px;
    --nav-width: 1024px;
    --main-width: 720px;
    --header-height: 60px;
    --footer-height: 60px;
    --radius: 8px;
    --theme: rgb(255, 255, 255);
    --entry: rgb(255, 255, 255);
    --primary: rgb(30, 30, 30);
    --secondary: rgb(108, 108, 108);
    --tertiary: rgb(214, 214, 214);
    --content: rgb(31, 31, 31);
    --code-block-bg: rgb(28, 29, 33);
    --code-bg: rgb(245, 245, 245);
    --border: rgb(238, 238, 238);
    color-scheme: light;
}

:root[data-theme="dark"] {
    --theme: rgb(29, 30, 32);
    --entry: rgb(46, 46, 51);
    --primary: rgb(218, 218, 219);
    --secondary: rgb(155, 156, 157);
    --tertiary: rgb(65, 66, 68);
    --content: rgb(196, 196, 197);
    --code-block-bg: rgb(46, 46, 51);
    --code-bg: rgb(55, 56, 62);
    --border: rgb(51, 51, 51);
    color-scheme: dark;
}

.list {
    background: var(--code-bg);
}

[data-theme="dark"] .list {
    background: var(--theme);
}

/* themes/PaperMod/assets/css/core/zmedia.css */
@media screen and (max-width: 768px) {
    /* theme-vars */
    :root {
        --gap: 14px;
    }

    /* profile-mode */
    .profile img {
        transform: scale(0.85);
    }

    /* post-entry */
    .first-entry {
        min-height: 260px;
    }

    /* archive */
    .archive-month {
        flex-direction: column;
    }

    .archive-year {
        margin-top: 20px;
    }

    /* footer */
    .footer {
        padding: calc((var(--footer-height) - var(--gap) - 10px) / 2) var(--gap);
    }
}

/* footer */
@media screen and (max-width: 900px) {
    .list .top-link {
        transform: translateY(-5rem);
    }
}

@media screen and (max-width: 340px) {
    .share-buttons {
        justify-content: unset;
    }
}

@media (prefers-reduced-motion) {
    /* terms; profile-mode; post-single; post-entry; post-entry; search; search */
    .terms-tags a:active,
    .button:active,
    .post-entry:active,
    .top-link,
    .searchResults .focus,
    .searchResults li:active {
        transform: none;
    }
}

/* themes/PaperMod/assets/css/common/404.css */
.not-found {
    position: absolute;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80%;
    font-size: 160px;
    font-weight: 700;
}

/* themes/PaperMod/assets/css/common/archive.css */
.archive-posts {
    width: 100%;
    font-size: 16px;
}

.archive-year {
    margin-top: 40px;
}

.archive-year:not(:last-of-type) {
    border-bottom: 2px solid var(--border);
}

.archive-month {
    display: flex;
    align-items: flex-start;
    padding: 10px 0;
}

.archive-month-header {
    margin: 25px 0;
    width: 200px;
}

.archive-month:not(:last-of-type) {
    border-bottom: 1px solid var(--border);
}

.archive-entry {
    position: relative;
    padding: 5px;
    margin: 10px 0;
}

.archive-entry-title {
    margin: 5px 0;
    font-weight: 400;
}

.archive-count,
.archive-meta {
    color: var(--secondary);
    font-size: 14px;
}

/* themes/PaperMod/assets/css/common/footer.css */
.footer,
.top-link {
    font-size: 12px;
    color: var(--secondary);
}

.footer {
    max-width: calc(var(--main-width) + var(--gap) * 2);
    margin: auto;
    padding: calc((var(--footer-height) - var(--gap)) / 2) var(--gap);
    text-align: center;
    line-height: 24px;
}

.footer span {
    margin-inline-start: 1px;
    margin-inline-end: 1px;
}

.footer span:last-child {
    white-space: nowrap;
}

.footer a {
    color: inherit;
    text-underline-offset: 0.25rem;
    text-decoration: underline;
}

.top-link {
    position: fixed;
    bottom: 4rem;
    right: 2rem;
    z-index: 99;
    background: var(--tertiary);
    width: 2.5rem;
    height: 2.5rem;
    padding: 10px;
    border-radius: 64px;
    transition: visibility .3s, opacity .3s cubic-bezier(0.4, 0, 1, 1);
}

.hidden {
    visibility: hidden;
    opacity: 0;
}

.top-link,
.top-link svg {
    filter: drop-shadow(0px 0px 0px var(--theme));
}

.footer a:hover,
.top-link:hover {
    color: var(--primary);
}

/* themes/PaperMod/assets/css/common/header.css */
.header-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: calc(var(--nav-width) + var(--gap) * 2);
    margin: auto;
    line-height: var(--header-height);
    padding: 0 var(--gap);
    column-gap: var(--gap);
}

.header-nav a {
    display: block;
}

.logo,
.menu {
    display: flex;
}

.logo {
    align-items: center;
    column-gap: 0.55rem;
    flex-wrap: wrap;
}

.logo a {
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    column-gap: 0.55rem;
}

.logo a img,
.logo a svg {
    pointer-events: none;
    border-radius: 6px;
}

.theme-toggle {
    padding: 0 0.4rem;
}

[data-theme="dark"] .moon {
    display: none;
}

[data-theme="light"] .sun {
    display: none;
}

.logo-switches {
    display: inline-flex;
    gap: 0.4rem;
    align-items: inherit;
    min-height: stretch;
    flex-wrap: inherit;
}

.logo-switches>* {
    min-height: inherit;
    align-items: center;
    display: inline-flex;
}

.nav-sep {
    color: var(--secondary);
}

.lang-menu * {
    display: inherit;
    min-height: inherit;
    align-items: inherit;
}

.lang-menu a {
    font-size: 1rem;
    font-weight: 500;
    padding: 0 0.4rem;
    display: inline-flex
}

.menu {
    list-style: none;
    word-break: keep-all;
    overflow-x: auto;
    white-space: nowrap;
    column-gap: var(--gap);
}

.menu a {
    font-size: 16px;
}

.menu .active {
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 0.3rem;
    text-decoration-thickness: 2px;
}

/* themes/PaperMod/assets/css/common/main.css */
.main {
    position: relative;
    min-height: calc(100vh - var(--header-height) - var(--footer-height));
    max-width: calc(var(--main-width) + var(--gap) * 2);
    margin: auto;
    padding: var(--gap);
}

.page-header h1 {
    font-size: 40px;
}

.pagination {
    display: flex;
}

.pagination a {
    color: var(--theme);
    font-size: 13px;
    line-height: 36px;
    background: var(--primary);
    border-radius: calc(36px / 2);
    padding: 0 16px;
}

.pagination .next {
    margin-inline-start: auto;
}


.social-icons a {
    display: inline-flex;
    padding: 10px;
}

.social-icons a svg {
    height: 26px;
    width: 26px;
}

code {
    direction: ltr;
}

div.highlight,
pre {
    position: relative;
}

.copy-code {
    display: none;
    position: absolute;
    top: 4px;
    right: 4px;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(78, 78, 78, 0.8);
    border-radius: var(--radius);
    padding: 0 5px;
    font-size: 14px;
    user-select: none;
}

div.highlight:hover .copy-code,
pre:hover .copy-code {
    display: block;
}

/* themes/PaperMod/assets/css/common/md-content.css */
.md-content h3,
.md-content h4,
.md-content h5,
.md-content h6 {
    margin: 24px 0 16px;
}

.md-content h1 {
    margin: 40px auto 32px;
    font-size: 40px;
}

.md-content h2 {
    margin: 32px auto 24px;
    font-size: 32px;
}

.md-content h3 {
    font-size: 24px;
}

.md-content h4 {
    font-size: 16px;
}

.md-content h5 {
    font-size: 14px;
}

.md-content h6 {
    font-size: 12px;
}

.md-content a:not(.anchor) {
    text-underline-offset: 0.3rem;
    text-decoration: underline;
}

.md-content del {
    text-decoration: line-through;
}

.md-content dl:not(:last-child),
.md-content ol:not(:last-child),
.md-content p:not(:last-child),
.md-content figure:not(:last-child),
.md-content ul:not(:last-child) {
    margin-bottom: var(--content-gap);
}

.md-content ol,
.md-content ul {
    padding-inline-start: 1.25rem;
}

.md-content li {
    margin-top: 0.3rem;
}

.md-content li p {
    margin-bottom: 0;
}

.md-content dl {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
}

.md-content dt {
    width: 25%;
    font-weight: 700;
}

.md-content dd {
    width: 75%;
    margin-inline-start: 0;
    padding-inline-start: 10px;
}

.md-content dd~dd,
.md-content dt~dt {
    margin-top: 10px;
}

.md-content table {
    margin-bottom: var(--content-gap);
}

.md-content table th,
.md-content table:not(.highlighttable, .highlight table, .gist .highlight) td {
    min-width: 80px;
    padding: 6px 13px;
    line-height: 1.5;
    border: 1px solid var(--border);
}

.md-content table th {
    text-align: start;
}

.md-content table:not(.highlighttable) td code:only-child {
    margin: auto 0;
}

.md-content .highlight table {
    border-radius: var(--radius);
}

.md-content .highlight:not(table) {
    margin-bottom: var(--content-gap);
    background: var(--code-block-bg) !important;
    border-radius: var(--radius);
    direction: ltr;
}

.md-content li>.highlight {
    margin-inline-end: 0;
}

.md-content ul pre {
    margin-inline-start: calc(var(--gap) * -2);
}

.md-content .highlight pre {
    margin: 0;
}

.md-content .highlighttable {
    table-layout: fixed;
}

.md-content .highlighttable td:first-child {
    width: 40px;
}

.md-content .highlighttable td .linenodiv {
    padding-inline-end: 0 !important;
}

.md-content .highlighttable td .highlight,
.md-content .highlighttable td .linenodiv pre {
    margin-bottom: 0;
}

.post-content code {
    padding: 0.2rem 0.3rem;
    font-size: 0.78em;
    line-height: 1.5;
    background: var(--code-bg);
    border-radius: 0.2rem;
}

.md-content pre code {
    display: grid;
    margin: auto 0;
    padding: 10px;
    color: rgb(213, 213, 214);
    background: var(--code-block-bg) !important;
    border-radius: var(--radius);
    overflow-x: auto;
    word-break: break-all;
}

.md-content blockquote {
    margin: 1rem 0;
    padding-inline-start: 1rem;
    border-inline-start: 0.3rem solid var(--content);
}

.md-content hr {
    margin: 30px 0;
    height: 2px;
    background: var(--tertiary);
    border: 0;
}

.md-content iframe {
    max-width: 100%;
}

.md-content img {
    border-radius: var(--radius);
    margin: 1rem 0;
}

.md-content img[src*="#center"] {
    margin: 1rem auto;
}

.md-content figure.align-center {
    text-align: center;
}

.md-content figure>figcaption {
    color: var(--primary);
    font-size: 16px;
    font-weight: bold;
    margin: 8px 0 16px;
}

.md-content figure>figcaption>p {
    color: var(--secondary);
    font-size: 14px;
    font-weight: normal;
}

.md-content h1:hover .anchor,
.md-content h2:hover .anchor,
.md-content h3:hover .anchor,
.md-content h4:hover .anchor,
.md-content h5:hover .anchor,
.md-content h6:hover .anchor {
    display: inline-flex;
    color: var(--secondary);
    margin-inline-start: 0.5em;
    font-weight: 500;
    user-select: none;
}

.anchor:hover {
    color: var(--content) !important;
}

.md-content img.in-text {
    display: inline;
    margin: auto;
}

mark {
    border-radius: 2px;
    padding: 0 2px;
}

audio {
    display: block;
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    height: 2.5rem;
    margin-bottom: var(--content-gap);
}

audio::-webkit-media-controls-enclosure {
    border-radius: 0;
}

video {
    border: 1px solid var(--code-bg);
    border-radius: var(--radius);
    max-width: 100%;
}

/* themes/PaperMod/assets/css/common/post-entry.css */
.first-entry {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 320px;
    margin: var(--gap) 0 calc(var(--gap) * 2) 0;
}

.first-entry .entry-header {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.first-entry .entry-header h1 {
    font-size: 34px;
    line-height: 1.3;
}

.first-entry .entry-header h2 {
    font-size: 40px;
}

.first-entry .entry-content {
    margin: 14px 0;
    font-size: 16px;
    -webkit-line-clamp: 3;
}

.first-entry .entry-footer {
    font-size: 14px;
}

.home-info .entry-content {
    --content-gap: 0.5rem;
    -webkit-line-clamp: unset;
    margin: 0;
}

.home-info .social-icons a:first-of-type {
    padding-inline-start: 0;
}


.post-entry {
    position: relative;
    margin-bottom: var(--gap);
    padding: var(--gap);
    background: var(--entry);
    border-radius: var(--radius);
    transition: transform 0.25s ease;
    border: 1px solid var(--border);
}

.post-entry:hover,
.post-entry:focus-within {
    transform: translateY(-2px);
    border-color: var(--tertiary);
}

.tag-entry .entry-cover {
    display: none;
}

.entry-header h2 {
    font-size: 24px;
    line-height: 1.3;
}

.entry-content {
    margin: 8px 0;
    color: var(--secondary);
    font-size: 14px;
    line-height: 1.6;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-info .entry-content p {
    margin-block-start: 1em;
    margin-block-end: 1em;
}

.entry-footer {
    color: var(--secondary);
    font-size: 13px;
}

.entry-link {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    border-radius: var(--radius);
}

.entry-hint {
    color: var(--secondary);
}

.entry-hint-parent {
    display: flex;
    justify-content: space-between;
}

.entry-cover {
    font-size: 14px;
    margin-bottom: var(--gap);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.entry-cover img {
    border-radius: var(--radius);
    width: 100%;
    height: auto;
}

.entry-cover a {
    text-underline-offset: 0.3rem;
    text-decoration: underline;
}

/* themes/PaperMod/assets/css/common/post-single.css */
.page-header,
.post-header {
    margin: 24px auto var(--content-gap) auto;
}

.post-title {
    font-size: 40px;
}

.post-description {
    margin-top: 10px;
}

.post-meta {
    margin-top: 5px;
}

.post-meta,
.breadcrumbs {
    color: var(--secondary);
    font-size: 14px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.2rem;
}

.breadcrumbs a {
    font-size: 16px;
}

.breadcrumbs svg {
    height: 1em;
}

.i18n_list {
    display: inline-flex;
}

.post-meta .i18n_list li {
    list-style: none;
    margin: auto 3px;
}

.post-meta a,
.toc a:hover {
    text-underline-offset: 0.3rem;
    text-decoration: underline;
}

.post-meta a {
    color: var(--secondary);
    text-decoration-style: dotted;
}

details.toc {
    margin-bottom: var(--content-gap);
    background: var(--code-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

[data-theme="dark"] details.toc {
    background: var(--entry);
}

details.toc summary {
    padding: 0.3rem 1.2rem;
    border-radius: var(--radius);
}

details summary {
    cursor: pointer;
    display: list-item;
    width: 100%;
    margin-inline-start: 0;
    user-select: none;
}

details .title {
    display: inline;
    font-weight: 500;
    margin-inline-start: 0.2rem;
}

details {
    interpolate-size: allow-keywords;
}

details::details-content {
    height: 0;
    opacity: 0;
    overflow: clip;
    transition: height 150ms ease,
        opacity 150ms ease,
        content-visibility 150ms allow-discrete;
}

details[open]::details-content {
    height: auto;
    opacity: 1;
}

details .inner {
    margin: 0 2.4rem;
    padding-bottom: 0.6rem;
}

details li ul {
    margin-inline-start: var(--gap);
}

.post-content {
    color: var(--content);
    margin: 30px 0;
}

.post-footer {
    margin-top: var(--content-gap);
}

.post-footer>* {
    margin-bottom: 10px;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.post-tags li {
    display: inline-block;
}

.post-tags a,
.share-buttons,
.paginav {
    border-radius: var(--radius);
    background: var(--code-bg);
    border: 1px solid var(--border);
}

.post-tags a {
    display: block;
    padding: 0 14px;
    color: var(--secondary);
    font-size: 14px;
    line-height: 34px;
    background: var(--code-bg);
}

.post-tags a:hover,
.paginav a:hover {
    background: var(--border);
}

.share-buttons {
    padding: 10px;
    display: flex;
    justify-content: center;
    overflow-x: auto;
    gap: 10px;
}

.share-buttons li,
.share-buttons a {
    display: inline-flex;
}

.share-buttons a:not(:last-of-type) {
    margin-inline-end: 12px;
}

.paginav {
    display: flex;
    line-height: 1.2;
}

.paginav .title {
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--secondary);
}

.paginav a {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.8rem;
    border-radius: var(--radius);
}

.paginav span:hover:not(.title) {
    text-underline-offset: 0.2rem;
    text-decoration: underline;
}

.paginav .next {
    margin-inline-start: auto;
    text-align: right;
}

[dir="rtl"] .paginav .next {
    text-align: left;
}

h1>a>svg {
    display: inline;
}

/* themes/PaperMod/assets/css/common/profile-mode.css */
.buttons,
.main .profile {
    display: flex;
    justify-content: center;
}

.main .profile {
    align-items: center;
    min-height: calc(100vh - var(--header-height) - var(--footer-height) - (var(--gap) * 2));
    text-align: center;
}

.profile .profile_inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.profile img {
    border-radius: 50%;
}

.buttons {
    flex-wrap: wrap;
    max-width: 400px;
    gap: 1rem;
}

.button {
    background: var(--tertiary);
    border-radius: var(--radius);
    padding: 0.4rem 0.8rem;
}

/* themes/PaperMod/assets/css/common/search.css */
.searchbox input {
    padding: 4px 10px;
    width: 100%;
    color: var(--primary);
    font-weight: bold;
    border: 2px solid var(--tertiary);
    border-radius: var(--radius);
}

.searchResults li {
    list-style: none;
    border-radius: var(--radius);
    padding: 10px 15px;
    position: relative;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--entry);
    transition: transform .25s ease;
    border: 1px solid var(--border);
}

.searchResults {
    margin: var(--content-gap) 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.searchResults li:hover,
.searchResults li:focus-within {
    transform: translateY(-2px);
    border-color: var(--tertiary);
}

.searchResults li .entry-link:focus {
    outline: 2px solid var(--secondary);
    outline-offset: -2px;
}

/* themes/PaperMod/assets/css/common/terms.css */
.terms-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    margin-top: var(--content-gap);
}

.terms-tags li {
    display: inline-block;
    font-weight: 500;
}

.terms-tags a {
    display: block;
    padding: 4px 10px;
    background: var(--tertiary);
    border-radius: var(--radius);
    transition: transform 0.1s;
}

/* themes/PaperMod/assets/css/extended/blank.css */
/*
This is just a placeholder blank stylesheet so as to support adding custom styles budled with theme's default styles

Read https://github.com/adityatelange/hugo-PaperMod/wiki/FAQs#bundling-custom-css-with-themes-assets for more info
*/

/* layouts/_partials/extend_head.html */

html{font-size:calc(16px * var(--fs,1))}
body{font-size:calc(18px * var(--fs,1))}
.trb-fs{position:relative;display:inline-flex;margin-left:.6rem}
.trb-fs-btn{background:none;border:0;cursor:pointer;color:var(--primary);font:700 15px/1 system-ui,sans-serif;padding:4px 6px;border-radius:6px}
.trb-fs-btn:hover{background:var(--tertiary)}
.trb-fs-pop{position:absolute;top:130%;left:50%;transform:translateX(-50%);z-index:200;background:var(--entry);border:1px solid var(--border);border-radius:10px;box-shadow:0 8px 24px rgba(0,0,0,.15);padding:.45rem;display:flex;align-items:center;gap:.35rem;white-space:nowrap;font:14px system-ui,sans-serif}
.trb-fs-pop[hidden]{display:none}
@media (max-width:700px){.trb-fs-pop{left:auto;right:-40px;transform:none}}
.trb-fs-pop button{border:1px solid var(--border);background:var(--theme);color:var(--primary);border-radius:8px;min-width:34px;height:32px;cursor:pointer;font:600 14px system-ui,sans-serif}
.trb-fs-pop button:hover{border-color:#004225}
.trb-fs-pop output{min-width:3.2em;text-align:center;color:var(--secondary);font-variant-numeric:tabular-nums}


/* phones: keep the whole menu on screen */
@media (max-width:520px){
  .nav{flex-wrap:wrap;line-height:1.2}
  .logo a{font-size:20px}
  #menu{overflow-x:visible;flex-wrap:wrap;white-space:normal;margin:0;row-gap:0}
  #menu li+li{margin-inline-start:12px}
  #menu a{font-size:14px;line-height:2.2}
  .logo,#menu{margin:0}
}


/* British racing green is the site's main colour: the header band everywhere, and a green-black page in dark mode. */
:root{--brg:#004225}
header.header{background:#004225}
header.header .logo a,header.header #menu a,header.header .trb-fs-btn,header.header #theme-toggle{color:#f3ead2}
header.header #menu .active{border-bottom-color:#d8b860}
header.header .trb-fs-btn:hover{background:rgba(255,255,255,.14)}
:root[data-theme="dark"]{--theme:#0b1a13;--entry:#12261b;--primary:#e6ece8;--secondary:#a9b8af;--tertiary:#1b3426;--content:#dfe7e2;--code-block-bg:#12261b;--code-bg:#1b3426;--border:#2a4636}
[data-theme="dark"] .list{background:var(--theme)}
[data-theme="dark"] header.header{background:#00331c;border-bottom:1px solid #1f4a35}


/* "More" menu */
#menu .trb-more{position:relative}
#menu .trb-more details{position:relative}
#menu .trb-more summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;gap:.25rem;color:#f3ead2;font-size:16px;line-height:var(--header-height,60px)}
#menu .trb-more summary::-webkit-details-marker{display:none}
#menu .trb-more summary a.trb-gl{color:inherit;text-decoration:none;line-height:inherit}
#menu .trb-more summary svg{padding:.35rem .2rem;width:20px;height:20px;box-sizing:border-box;margin-left:-.1rem}
#menu .trb-more ul li.trb-all{border-top:1px solid var(--border);margin-top:.3rem !important;padding-top:.3rem}
#menu .trb-more ul li.trb-all b{color:#00562f}
[data-theme="dark"] #menu .trb-more ul li.trb-all b{color:#6cc79a}
.trb-video{margin:1rem 0 1.4rem;max-width:760px}
.trb-video-play{position:relative;display:block;width:100%;aspect-ratio:16/9;padding:0;border:0;border-radius:12px;overflow:hidden;cursor:pointer;background:#000}
.trb-video-play img{width:100%;height:100%;object-fit:cover;display:block;margin:0}
.trb-video-btn{position:absolute;inset:0;display:grid;place-items:center;transition:transform .15s}
.trb-video-play:hover .trb-video-btn{transform:scale(1.08)}
.trb-video iframe{width:100%;aspect-ratio:16/9;border:0;border-radius:12px;display:block}
.trb-video figcaption{margin-top:.45rem;font-size:.92rem;color:var(--secondary);line-height:1.45}
.trb-video figcaption b{color:var(--primary)}
.trb-group{max-width:1100px;margin:0 auto}
.trb-ghero{background:#004225;color:#f3ead2;border-radius:16px;padding:1.6rem 1.6rem 1.4rem;margin:0 0 1.4rem}
.trb-ghero h1{color:#fff;margin:.1rem 0 .4rem;font-size:2.1rem}
.trb-ghero p{margin:0;line-height:1.55}
.trb-geyebrow{text-transform:uppercase;letter-spacing:.12em;font-size:.78rem;color:#d8b860 !important;margin:0 !important}
.trb-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:.9rem}
.trb-tile{display:flex;flex-direction:column;gap:.25rem;padding:1.1rem 1.15rem;background:var(--entry);border:1px solid var(--border);border-radius:14px;text-decoration:none !important;color:var(--primary) !important;box-shadow:0 1px 6px rgba(0,0,0,.05);transition:transform .15s,border-color .15s}
.trb-tile:hover{transform:translateY(-2px);border-color:#00562f}
html:not([data-theme="dark"]) .trb-tile{border:1.5px solid #9dbba9}
html:not([data-theme="dark"]) .trb-tile:hover{border-color:#00562f}
[data-theme="dark"] .trb-tile:hover{border-color:#6cc79a}
.trb-ti{font-size:1.8rem;line-height:1.1}
.trb-tile b{font-size:1.08rem;color:#004225}
[data-theme="dark"] .trb-tile b{color:#6cc79a}
.trb-tile small{color:var(--secondary);font-size:.9rem;line-height:1.4}
.trb-gnote{margin-top:1.4rem}
@media (max-width:520px){.trb-tiles{grid-template-columns:1fr 1fr;gap:.6rem}.trb-tile{padding:.85rem .8rem}.trb-ghero{padding:1.2rem 1.1rem}.trb-ghero h1{font-size:1.7rem}}
#menu .trb-more summary .active{border-bottom:2px solid #d8b860}
#menu .trb-more details[open] summary svg{transform:rotate(180deg)}
#menu .trb-more ul{position:absolute;right:0;top:calc(100% - 6px);z-index:300;min-width:250px;margin:0;padding:.35rem;list-style:none;background:var(--entry);border:1px solid var(--border);border-radius:12px;box-shadow:0 12px 30px rgba(0,0,0,.18);display:block}
#menu .trb-more ul li{margin:0 !important;display:block}
#menu .trb-more ul a{display:block;padding:.45rem .65rem;border-radius:8px;line-height:1.25 !important;color:var(--primary) !important;font-size:15px !important}
#menu .trb-more ul a:hover,#menu .trb-more ul a[aria-current]{background:var(--tertiary)}
#menu .trb-more ul b{display:block;font-weight:600}
#menu .trb-more ul small{display:block;color:var(--secondary);font-size:12.5px;margin-top:1px}
#menu{overflow:visible !important}
#menu .trb-more.l ul{left:0;right:auto}
#menu{align-items:center}
#menu>li{display:flex;align-items:center}
#menu .trb-more ul{max-height:calc(100vh - 80px);overflow-y:auto}
#menu .trb-more+.trb-more,#menu li+.trb-more{margin-left:0}
@media (max-width:700px){#menu{position:relative}#menu .trb-more,#menu .trb-more details{position:static}#menu .trb-more ul{left:0;right:0;top:100%;min-width:0}}
@media (max-width:520px){#menu .trb-more summary,#menu>li>a{font-size:14px;line-height:2.2}}
.trb-sbox input::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}
/* search */
.trb-sbtn{background:none;border:0;cursor:pointer;color:#f3ead2;padding:4px 6px;border-radius:6px;margin-left:.35rem;display:inline-flex;align-items:center}
.trb-sbtn:hover{background:rgba(255,255,255,.14)}
.trb-sbtn svg{width:18px;height:18px}
.trb-search{position:fixed;inset:0;z-index:900;background:rgba(5,15,10,.55);display:flex;justify-content:center;align-items:flex-start;padding:8vh 12px 12px}
.trb-search[hidden]{display:none}
.trb-sbox{width:min(680px,100%);max-height:80vh;display:flex;flex-direction:column;background:var(--theme);border:1px solid var(--border);border-radius:14px;box-shadow:0 20px 50px rgba(0,0,0,.3);overflow:hidden}
.trb-sbox form{display:flex;align-items:center;gap:.5rem;padding:.6rem .8rem;border-bottom:1px solid var(--border)}
.trb-sbox input{flex:1;font:inherit;font-size:1.05rem;border:0;background:transparent;color:var(--primary);outline:none;padding:.35rem 0}
.trb-sbox kbd{font:12px system-ui;border:1px solid var(--border);border-radius:5px;padding:1px 5px;color:var(--secondary)}
.trb-sclose{background:none;border:0;font-size:1.4rem;color:var(--secondary);cursor:pointer;line-height:1}
.trb-sres{overflow:auto;padding:.3rem;margin:0;list-style:none}
.trb-sres li a{display:flex;gap:.6rem;align-items:flex-start;padding:.5rem .6rem;border-radius:9px;color:var(--primary);text-decoration:none;box-shadow:none}
.trb-sres li a:hover,.trb-sres li a.sel{background:var(--tertiary)}
.trb-sres .k{flex:none;font:600 11px system-ui;text-transform:uppercase;letter-spacing:.04em;color:#fff;background:#004225;border-radius:5px;padding:2px 6px;margin-top:3px}
.trb-sres .k.Game{background:#8c1d2c}.trb-sres .k.Languages{background:#1f5fa8}.trb-sres .k.Infographic{background:#b07a1a}.trb-sres .k.Markets{background:#4a5560}.trb-sres .k.Timeline{background:#6b4a2a}
.trb-sres b{display:block;font-weight:600;line-height:1.3}
.trb-sres small{display:block;color:var(--secondary);font-size:.83rem;line-height:1.35;margin-top:2px}
.trb-sres mark{background:#f3dfa3;color:inherit;border-radius:2px}
.trb-snote{padding:.8rem 1rem;color:var(--secondary);font-size:.9rem}
[data-theme="dark"] .trb-sres mark{background:#5a4a1a}
/* honour "reduce motion" across the site */
@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important;scroll-behavior:auto !important}}
