:root {
    color-scheme: light;
    --bg: #fafafa;
    --surface: #ffffff;
    --text: #1f2937;
    --text-muted: #6b7280;
    --heading: #111827;
    --accent: #a94f4f;
    --accent-hover: #8f4040;
    --accent-button: #a94f4f;
    --accent-button-hover: #8f4040;
    --accent-button-text: #ffffff;
    --accent-contrast: #ffffff;
    --border: #e5e7eb;
    --border-strong: #cbd5e1;
    --code-bg: #f3f4f6;
    --code-shadow: 0 24px 60px -30px rgba(15, 23, 42, 0.45);
    --input-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
    --blockquote-bg: #ddeeee;
    --blockquote-border: #bbcccc;
    --plugin-bg: #f6f6f5;
    --slider-bg: #3abac4;
    --slider-text: #ffffff;
    --mark-bg: #fef9c3;
    --mark-text: currentColor;
    --badge-red: #f87171;
    --badge-yellow: #fbbf24;
    --badge-green: #34d399;
    --radius: 10px;
    --header-shadow:0 1px 0 rgba(0, 0, 0, 0.05), 0 10px 30px -14px rgba(0, 0, 0, 0.3);
    --hljs-text: #24292f;
    --hljs-success: #116329;
    --hljs-comment: #6e7781;
    --hljs-keyword: #cf222e;
    --hljs-attribute: #0550ae;
    --hljs-string: #0a3069;
    --hljs-title: #8250df;
    --hljs-code: #57606a;
    --hljs-deletion: #82071e;
}

body {
    background:var(--bg);
    color:var(--text);
    font-family:ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size:clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
    line-height:1.7;
    margin:0;
    padding:0;
}

/* Sticky Footer */

body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

.content-container {
    flex: 1;
    width: 100%;
}

/* Typo */
a {
    color:var(--accent);
    text-decoration:none;
    transition:color 150ms ease;
}
a:hover {
    color:var(--accent-hover);
}
h1,h2,h3,h4,h5,h6 {
    color:var(--heading);
    line-height:1.25;
    scroll-margin-top:90px;
}
h1 {
    font-size:clamp(2rem, 1.5rem + 1.6vw, 2.75rem);
    font-weight:700;
    letter-spacing:-0.02em;
    margin-top:0;
}
h2 {
    font-size:1.5em;
    margin: 2em 0 1em 0;
}
p {
    margin: 0 0 1.5em 0;
    font-size: 1em;
    line-height:1.75;
}
p + ul {
    margin-top:-0.5em;
}

ul {
    padding-inline-start: 1.1rem;
}

code {
    color:var(--text);
    background-color:var(--code-bg);
    font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9em;
    padding: 0.15em 0.35em;
    border-radius:4px;
}
span.token.php.language-php {
    font-size: 0.9em !important;
}
pre {
    line-height: 1;
    margin-bottom: 2em;
    overflow: auto;
    word-wrap: normal;
    white-space: pre;
    background-color:var(--code-bg);
    border:1px solid var(--border);
    border-radius:var(--radius);
}
pre code {
    background-color:transparent;
    display: block;
    padding: 1em;
    line-height: 1.275;
}

pre code[class*="language-"] {
    background-color:transparent;
    display: block;
    padding: 1em;
    line-height: 1.5;
}
/* Directory trees and plain text blocks stay compact */
pre code.language-text {
    line-height: 1.25;
    padding: 0.75em 1em;
}

.hljs {
    background-color:transparent;
}
table {
    margin-bottom:2.6em;
    font-size:0.9em;
}

.page-index blockquote {
    background: var(--blockquote-bg);
    margin: 0 0 2rem 0;
    padding: 1.5rem 2rem;
    font-size: 1.5rem;
    border-left: 0.3rem solid var(--blockquote-border);
}

.page-index blockquote p {
    margin: 0;
}

.pure-table {
    width: 100%;
    max-width: 100%;
    border:1px solid var(--border);
    border-radius:var(--radius);
    overflow-x:auto;
    overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
    display:block;
    background:var(--surface);
}
/* Rows of tables without a thead would otherwise shrink to their content. */
.pure-table:not(:has(thead)) tbody {
    display:table;
    width:100%;
}
.pure-table thead {
    background:transparent;
    color:var(--heading);
}
.pure-table th {
    background:color-mix(in srgb, var(--heading) 8%, var(--surface));
    color:var(--heading);
    font-weight:600;
}
.pure-table th,
.pure-table td {
    border-color:var(--border);
}
.pure-table td {
    vertical-align: top;
}
.pure-table td p:last-child {
    margin-bottom: 0;
}

/* Container */
.container {
    max-width:1120px;
    margin:0 auto;
    padding:0 24px;
}

/* Header */
.header {
    position:sticky;
    top:0;
    z-index:50;
    background:color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter:blur(10px);
    box-shadow:none;
    transition:box-shadow 500ms ease;
}
.header.is-scrolled {
    box-shadow:var(--header-shadow);
}
.header .pure-u-1 {
    text-align:right;
}
.header .inner-container {
    border-bottom:none;
    padding-top:18px;
    padding-bottom:18px;
}
.header .pure-menu li {
    font-size:0.9em;
}
.header .pure-menu a {
    color:var(--heading);
}
.header .pure-menu .pure-menu-link:focus,
.header .pure-menu .pure-menu-link:hover {
    background-color:var(--code-bg);
}
.header .pure-menu .pure-menu-selected > a {
    background-color:var(--code-bg);
    color:var(--accent);
}
.theme-toggle {
    background:transparent;
    border:1px solid var(--border);
    border-radius:8px;
    color:var(--heading);
    cursor:pointer;
    font:inherit;
    line-height:0;
    padding:0.45em 0.5em;
    transition:background-color 150ms ease, border-color 150ms ease;
}
.theme-toggle:hover,
.theme-toggle:focus {
    background:var(--code-bg);
}
.theme-toggle svg {
    display:block;
    width:1.1em;
    height:1.1em;
}
.theme-toggle .icon-sun {
    display:none;
}
.theme-toggle .icon-moon {
    display:block;
}
html[data-theme="dark"] .theme-toggle .icon-sun {
    display:block;
}
html[data-theme="dark"] .theme-toggle .icon-moon {
    display:none;
}
.theme-toggle-item {
    vertical-align:middle;
}
/* Mobile navigation overlay */
.mobile-nav {
    /* The overlay stays dark in both themes, so it has its own local tokens. */
    --overlay-bg: #020617;
    --overlay-panel: #0f172a;
    --overlay-muted: #1e293b;
    --overlay-emphasis: #334155;
    --overlay-border-strong: #475569;
    --overlay-text: #e2e8f0;
    --overlay-text-muted: #cbd5e1;
    --overlay-text-strong: #f8fafc;
    position:fixed;
    inset:0;
    z-index:1000;
    display:none;
    flex-direction:column;
    background:var(--overlay-bg);
    color:var(--overlay-text);
    overflow:hidden;
}
.mobile-nav.is-open {
    display:flex;
}
body.mobile-nav-locked {
    overflow:hidden;
}
.mobile-nav-head {
    flex:0 0 auto;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0.85em 1em;
    border-bottom:1px solid var(--overlay-emphasis);
    background:var(--overlay-panel);
}
.mobile-nav-title {
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:0.04em;
    font-size:0.9em;
}
.mobile-nav-close {
    width:36px;
    height:36px;
    flex:0 0 auto;
    padding:0;
    border:0;
    border-radius:6px;
    background:transparent;
    color:inherit;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
}
.mobile-nav-close:hover,
.mobile-nav-close:focus {
    background:var(--overlay-emphasis);
}
.mobile-nav-close span {
    display:block;
    font-size:26px;
    line-height:1;
    font-weight:300;
}
.mobile-nav-body {
    flex:1 1 auto;
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
    padding:0.4em 0 1.5em;
}
.mobile-nav-list,
.mobile-nav-children {
    list-style:none;
    margin:0;
    padding:0;
}
.mobile-nav-children {
    background:var(--overlay-bg);
}
.mobile-nav-link {
    display:block;
    padding:0.62em 1em 0.62em calc(1em + var(--level, 0) * 1.15em);
    color:var(--overlay-text);
    text-decoration:none;
    border-bottom:1px solid var(--overlay-muted);
    font-size:0.98em;
}
.mobile-nav-children .mobile-nav-link {
    font-size:0.92em;
    color:var(--overlay-text-muted);
}
.mobile-nav-link:hover,
.mobile-nav-link:focus {
    background:var(--overlay-muted);
    color:var(--overlay-text-strong);
}
.mobile-nav-link.is-current {
    background:var(--overlay-emphasis);
    color:var(--overlay-text-strong);
    font-weight:700;
    box-shadow:inset 3px 0 0 var(--accent);
}
.mobile-nav-item.has-children > .mobile-nav-link {
    font-weight:600;
}
.mobile-nav-foot {
    flex:0 0 auto;
    display:flex;
    justify-content:center;
    padding:0.9em 1em;
    border-top:1px solid var(--overlay-emphasis);
    background:var(--overlay-panel);
}
/* the overlay is dark in both themes, so its toggle uses the overlay tokens */
.mobile-nav-foot .theme-toggle {
    width:auto;
    border:1px solid var(--overlay-border-strong);
    background:var(--overlay-muted);
    color:var(--overlay-text);
    border-radius:8px;
    padding:0.45em 0.8em;
}
.mobile-nav-foot .theme-toggle:hover,
.mobile-nav-foot .theme-toggle:focus {
    background:var(--overlay-emphasis);
    border-color:var(--overlay-border-strong);
    color:var(--overlay-text-strong);
}

/* Brand */
.brand-title {
    font-size:110%;
    font-weight:bold;
    text-transform:uppercase;
    margin:0 0 0 0;
    padding:0.21em 0;
    white-space: nowrap;
}
.brand-title a {
    color:var(--heading);
}
.brand-title svg {
    width:1.7em;
    height:1.7em;
    vertical-align:-0.42em;
    margin-right:0.22em;
}
.brand-tagline {
    color:var(--slider-text);
    font-size:2em;
    font-weight: 300;
    margin:1.5em auto 1.8em auto;
    line-height:1.4em;
    max-width:970px;
    text-align:center;
}

/* Hero */
.hero {
    position:relative;
    overflow:hidden;
    border-bottom:1px solid var(--border);
    background:
        radial-gradient(circle at 18% 20%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 45%),
        color-mix(in srgb, var(--accent) 4%, var(--surface));
}
.hero .container {
    position:relative;
    z-index:1;
}
.hero-grid {
    display:grid;
    grid-template-columns:minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap:3rem;
    align-items:center;
    padding:4.5rem 0 5rem;
}
.hero-content {
    max-width:40rem;
}
.hero-eyebrow {
    margin:0 0 0.9em;
    color:var(--accent);
    font-size:0.8em;
    font-weight:700;
    letter-spacing:0.12em;
    text-transform:uppercase;
}
.hero-title {
    margin:0 0 0.5em;
    color:var(--heading);
    font-size:clamp(2.4rem, 1.7rem + 2.8vw, 4rem);
    line-height:1.05;
    letter-spacing:-0.03em;
}
.hero-subtitle {
    max-width:34em;
    margin:0 0 1.8em;
    color:var(--text-muted);
    font-size:clamp(1rem, 0.95rem + 0.35vw, 1.2rem);
    line-height:1.6;
}
.hero-actions {
    display:flex;
    flex-wrap:wrap;
    gap:0.75em;
    margin-bottom:1.8em;
}
.hero-button {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:0 1.3em;
    min-height:2.6em;
    font-weight:600;
    font-size:1rem;
    line-height:1;
    background:var(--accent-button);
    color:var(--accent-button-text);
}
.hero-button:hover,
.hero-button:focus {
    background:var(--accent-button-hover);
    color:var(--accent-button-text);
}
.hero-button-secondary {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:0 1.3em;
    min-height:2.6em;
    font-size:1rem;
    line-height:1;
    border:1px solid var(--border);
    border-radius:8px;
    background:transparent;
    color:var(--heading);
    transition:background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.hero-button-secondary:hover,
.hero-button-secondary:focus {
    background:var(--code-bg);
    border-color:var(--text-muted);
    color:var(--heading);
}
.hero-badges {
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:0.5em 0.75em;
}
.hero-badges a {
    display:inline-flex;
    line-height:0;
}
.hero-badges img {
    display:block;
    height:20px;
    width:auto;
}
.hero-code {
    overflow:hidden;
    border:1px solid var(--border);
    border-radius:12px;
    background:var(--surface);
    box-shadow:var(--code-shadow);
}
.hero-code-bar {
    display:flex;
    align-items:center;
    gap:0.4em;
    padding:0.7em 0.9em;
    border-bottom:1px solid var(--border);
    background:var(--code-bg);
}
.hero-code-bar span {
    width:0.6em;
    height:0.6em;
    border-radius:50%;
    background:var(--border);
}
.hero-code-bar span:nth-child(1) {
    background:var(--badge-red);
}
.hero-code-bar span:nth-child(2) {
    background:var(--badge-yellow);
}
.hero-code-bar span:nth-child(3) {
    background:var(--badge-green);
}
.hero-code-bar em {
    margin-left:auto;
    color:var(--text-muted);
    font-style:normal;
    font-size:0.75em;
}
.hero-code pre {
    margin:0;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
}
.hero-code pre code {
    padding:1.25em 1.4em;
    font-size:0.85rem;
    line-height:1.7;
}
/* Footer */
.footer {
    /* The footer stays dark in both themes, so it has its own local tokens. */
    --footer-bg: #111827;
    --footer-text: rgba(255, 255, 255, 0.7);
    --footer-link: #ffffff;
    --footer-link-hover: #cccccc;
    --footer-rule: #cccccc;
    background-color:var(--footer-bg);
    margin-top:80px;
    font-size:0.85em;
    color:var(--footer-text);
    padding-top:4em;
    padding-bottom:2.5em;
}
.footer a {
    color:var(--footer-link);
    text-decoration:underline;
    text-underline-offset:0.15em;
}
.footer a:hover {
    color:var(--footer-link-hover);
}
.footer li a {
    display:inline-block;
    min-height:24px;
    line-height:24px;
}
.footer ul {
    list-style-type:none;
    margin:0;
    padding:0;
}
.footer li {
    line-height:1.6em;
}
.footer h3 {
    color:var(--footer-link);
}
.footer p {
    padding-right:1em;
}
.footer hr {
    margin-top:5em;
    margin-bottom:2em;
    background-color:var(--footer-rule);
    border:none;
    height:1px;
}

.footer-copyright {
    margin-top: 1em;
}

.toc {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 1rem 1.25rem;
    font-size: 0.85em;
    margin-bottom: 2em;
}
.toc-title {
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 0.6em;
    letter-spacing: 0.06em;
}
.toc-links {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
    columns: 1;
    column-gap: 1.5em;
}
@media (min-width: 768px) {
    .toc-links {
        columns: 2;
    }
}
@media (min-width: 980px) {
    .toc-links {
        columns: 3;
    }
}
.toc-links li {
    break-inside: avoid;
    margin: 0.15em 0;
    line-height: 1.4;
}
.toc-links a {
    color: var(--text-muted);
    transition: color 150ms ease;
}
.toc-links a:hover,
.toc-links a:focus {
    color: var(--accent);
}

/* Content */
.content {
    max-width:72ch;
    padding-right:55px;
}
.content li {
    display: list-item;
    line-height: 1.8;
    padding: 0;
}
.content img {
    max-width:100%;
    height:auto;
}
.content code {
    overflow-wrap:anywhere;
}
.content pre code {
    overflow-wrap:normal;
}
.content-container {
    margin-top:56px;
}

/* Sidebar */
.sidebar {
    padding-left:55px;
}


.sidebar h4 {
    margin-top:0;
    margin-bottom:1em;
}
.sidebar ul {
    list-style-type:none;
    margin:0;
    padding:0;
}
.sidebar li {
    font-size:0.8945em;
    line-height:1.7;
}
.sidebar .widget {
    padding-bottom:2em;
}
.sidebar a {
    color:var(--text-muted);
}
.sidebar a:hover {
    color:var(--accent);
}
/* Sidebar documentation menu */
.sidebar .menu {
    font-size:0.92em;
}
.sidebar .menu ul {
    list-style:none;
    margin:0;
    padding:0;
}
.sidebar .menu ul ul {
    margin:0.35em 0 0.6em 0.9em;
    padding-left:0.9em;
    border-left:1px solid var(--border);
}
.sidebar .menu li {
    margin:0.15em 0;
}
.sidebar .menu li a {
    display:block;
    padding:0.28em 0.55em;
    border-radius:6px;
    color:var(--text-muted);
    font-weight:500;
    line-height:1.4;
    transition:color 150ms ease, background-color 150ms ease;
}
.sidebar .menu li a:hover,
.sidebar .menu li a:focus {
    color:var(--accent);
    background:color-mix(in srgb, var(--accent) 9%, transparent);
}
.sidebar .menu li.active > a {
    color:var(--accent);
    font-weight:600;
}
.sidebar .menu li.current > a {
    color:var(--accent);
    font-weight:700;
    background:color-mix(in srgb, var(--accent) 12%, transparent);
}
.sidebar .menu li li a {
    font-weight:400;
    font-size:0.95em;
}
.sidebar-search {
    position:relative;
    margin-bottom:2.5em;
    white-space:nowrap;
}
.sidebar-search input[type=text] {
    width:100%;
    box-sizing:border-box;
    padding:0.4em 2.4em 0.4em 0.65em;
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:8px;
    box-shadow:none;
    color:var(--text);
    font:inherit;
    font-size:0.9em;
    line-height:1.4;
}
.sidebar-search input[type=text]::placeholder {
    color:var(--text-muted);
}
.sidebar-search input[type=text]:focus {
    border-color:var(--accent);
    outline:2px solid color-mix(in srgb, var(--accent) 35%, transparent);
    outline-offset:1px;
}
.sidebar-search button {
    position:absolute;
    top:50%;
    right:0.35em;
    transform:translateY(-50%);
    padding:0.25em;
    border:0;
    border-radius:6px;
    background:none;
    color:var(--text-muted);
    cursor:pointer;
    line-height:0;
}
.sidebar-search button:hover,
.sidebar-search button:focus {
    color:var(--accent);
}
.sidebar-search button:focus-visible {
    outline:2px solid var(--accent);
    outline-offset:1px;
}

div.highlight pre {
    font-size:1.1em;
}

.slider {
    background:var(--slider-bg);
}

/* Pure */
.pure-button {
    background-color:var(--accent-button);
    color:var(--accent-button-text);
    border-radius:8px;
    transition:background-color 150ms ease;
}
.pure-button:hover {
    background-color:var(--accent-button-hover);
    color:var(--accent-button-text);
}
html[data-theme="dark"] .pure-button,
html[data-theme="dark"] .pure-button:hover {
    color:var(--accent-button-text);
}
.pure-button i.fa {
    padding-left:0.5em;
    padding-right:0.5em;
}
.button-xsmall {
    font-size: 70%;
}

.button-small {
    font-size: 85%;
}

.button-large {
    font-size: 110%;
}

.button-xlarge {
    font-size: 125%;
}

/* Menu List */
.menu-list {
    margin-bottom: 2rem;
}
.menu-list-items {
    margin-bottom: 2rem;
}
.menu-list-pager {
    text-align:center;
    clear:both;
}
.menu-list-pager-link {
    font-size:1rem;
    padding-left:0.5rem;
    padding-right:0.5rem;
}

.text-right {
    text-align:right;
}

.menu-link {
    position: absolute;
    display: block; /* show this only on small screens */
    top: 9px;
    right: 0; /* "#menu width" */
    background: transparent;
    font-size: 10px; /* change this value to increase/decrease button size */
    z-index: 10;
    width: 2em;
    height: auto;
    padding: 2.1em 1.6em;
}

.menu-link:hover,
.menu-link:focus {
    background: transparent;
}

.menu-link span {
    position: relative;
    display: block;
}

.menu-link span,
.menu-link span:before,
.menu-link span:after {
    background-color: var(--heading);
    width: 100%;
    height: 0.3em;
}

.menu-link span:before,
.menu-link span:after {
    position: absolute;
    margin-top: -0.6em;
    content: " ";
}

.menu-link span:after {
    margin-top: 0.6em;
}

.doc-function table {
    width:100%;
}
.doc-function td {
    vertical-align:top;
}
.doc-function tr.code td {
    background-color:var(--code-bg);
}
.doc-function tr.param td:first-child {
    color:var(--heading);
}

.gallery figure {
    float:left;
    margin-right:1em;
    margin-bottom:1em;
}
.gallery figcaption {
    font-size:0.8em;
}

.video {
    margin-bottom:2em;
}

/* Plugin */
.plugin {
    background-color:var(--plugin-bg);
    padding:1em;
    margin-bottom:1em;
}
.plugin p {
    margin-top:0;
    margin-bottom:0.5em;
}
.plugin table {
    width:100%;
    border-bottom:1px solid var(--border);
    margin-bottom:1.4em;
}
.plugin td {
    border-top:1px solid var(--border);
}
.plugin td:first-child {
    width:10%;
    padding-right:2em;
}
.plugin p.links {
    display:flex;
    flex-wrap:wrap;
    gap:0.75em;
    margin:0.75em 0 0;
    text-align:left;
}
.plugin p.links a {
    display:inline-flex;
    align-items:center;
    gap:0.35em;
    font-size:0.95em;
}

/* Plugin Search */
.plugin-search-form form {
    display:flex;
    flex-wrap: wrap;
    gap:0.5em;
    align-items: center;
}
.plugin-search-form .search-exact {
    flex-basis: 100%;
    font-size: 0.9em;
    color: var(--text-muted);
}
.plugin-search-form input[type=text] {
    flex:1;
    min-width:0;
    padding:0.5em 0.65em;
    background:var(--code-bg);
    border:1px solid var(--border);
    border-radius:8px;
    color:var(--text);
    font:inherit;
    box-shadow:var(--input-shadow);
}
.plugin-search-form input[type=text]:focus {
    border-color:var(--accent);
    outline:2px solid color-mix(in srgb, var(--accent) 35%, transparent);
    outline-offset:1px;
}
.plugin-search-form input[type=submit] {
    padding:0.5em 1em;
    background:var(--accent);
    border:1px solid var(--accent);
    border-radius:8px;
    color:var(--accent-contrast);
    cursor:pointer;
    font:inherit;
}
.plugin-search-form input[type=submit]:hover,
.plugin-search-form input[type=submit]:focus {
    background:var(--accent-hover);
    border-color:var(--accent-hover);
}

/* Contact form */
.herbie-contact-form input.herbie-contact-input,
.herbie-contact-form textarea.herbie-contact-input {
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:8px;
    box-shadow:none;
    color:var(--text);
    font:inherit;
}
.herbie-contact-form input.herbie-contact-input:focus,
.herbie-contact-form textarea.herbie-contact-input:focus {
    border-color:var(--accent);
    outline:2px solid color-mix(in srgb, var(--accent) 35%, transparent);
    outline-offset:1px;
}
.herbie-contact .herbie-contact-secondary-button {
    background:var(--code-bg);
    color:var(--text);
}
.herbie-contact .herbie-contact-secondary-button:hover {
    background:var(--border);
    color:var(--text);
}
.plugin-search-form {
    margin-bottom:1.6em;
}
.plugin-search-results p {
    font-size: 0.9em;
    margin-bottom:0.8em;
    color: var(--text-muted);
}
.plugin-search-results .result {
    margin-bottom: 1em;
    padding-bottom: 0.8em;
    border-bottom: 1px solid var(--border);
}
.plugin-search-results .result:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.plugin-search-results .title {
    font-weight: 600;
    font-size: 1.05em;
    line-height: 1.3;
    margin-bottom: 0.25em;
}
.plugin-search-results .title a {
    color: var(--heading);
}
.plugin-search-results .title a:hover {
    color: var(--accent);
}
.plugin-search-results .url {
    font-size: 0.78em;
    color: var(--text-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    word-break: break-all;
}
.plugin-search-results .date {
    font-size: 0.9em;
    color: var(--text-muted);
    margin-top: 0.1em;
}
.plugin-search-results .snippet .date {
    font-family: inherit;
    color: var(--text-muted);
    font-size: inherit;
    margin-right: 0.35em;
    white-space: nowrap;
}
.plugin-search-results .snippet {
    margin-top: 0.55em;
    font-size: 0.9em;
    line-height: 1.55;
    overflow-wrap: break-word;
    word-break: break-word;
    color: var(--text);
}
.plugin-search-results .snippet mark {
    background-color: var(--mark-bg);
    background: var(--mark-bg);
    color: var(--mark-text);
    padding: 0;
    border-radius: 2px;
    font-weight: inherit;
}


.imagine--file-not-found {
    text-align: center;
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    background-color:var(--code-bg);
}

.imagine--file-not-found:before {
    content: "We're sorry, this image is broken";
    display: block;
    margin-bottom: 10px;
}

.imagine--file-not-found:after {
    content: "(url: " attr(src) ")";
    display: block;
    font-size: 12px;
}

/* breadcrumb */
nav.breadcrumb {
    margin-top:-0.3em;
    margin-bottom:1em;
}
nav.breadcrumb ul {
    margin:0;
    padding:0;
    font-size:0.8em;
}
nav.breadcrumb svg {
    width:1em;
    height:1em;
    vertical-align:-0.125em;
}
nav.breadcrumb li {
    color:var(--text-muted);
    display:inline;
}
nav.breadcrumb li.delim {
    color:var(--text-muted);
}
nav.breadcrumb a {
    color:var(--text-muted);
}
nav.breadcrumb a:hover {
    color:var(--accent);
}

.gc {
    line-height: 1.3;
    font-size: 0.92em;
}
.gc-subheader {
    margin-bottom: 1em;
}
.gc-entry {
    font-size: 0.8945em;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
}
.gc-entry-text {
    font-size: 0.95em;
    color: var(--text-muted);
}
.sidebar .gc-entry-author {
    color: var(--text-muted);
    text-decoration: underline;
}

/* Media Queries */
@media (min-width:980px) {
    .pure-g {
        align-items: flex-start;
    }
    .pure-g > [class*='pure-u-'] {
        min-width: 0;
    }
}

@media (min-width:768px) and (max-width:979px) {
    body {
        font-size:1.1em;
    }
    .content {
        padding-right:25px;
    }
    .sidebar {
        padding-left:25px;
    }
}

@media (max-width:767px) {
    body {
        font-size:1.1em;
    }
    .content {
        padding-right:0;
    }
    .hero-grid {
        grid-template-columns:1fr;
        gap:2rem;
        padding:2.5rem 0 3rem;
    }
    .sidebar {
        border-left:none;
        padding-left:0;
        padding-top:60px;
        display:none;
    }
    .brand-tagline {
        font-size:1.1em;
        margin:1.5em auto 1.8em auto;
    }
    .content-container {
        margin-top:2em;
    }
    .container {
        padding:0 15px;
    }
    .header .inner-container {
        padding-top:25px;
        padding-bottom:23px;
    }
    .box div {
        margin-right:0;
        margin-left:0;
    }
}

@media (max-width:480px) {
    body {
        font-size:1em !important;
    }
    h1, h2.post-title {
        font-size:1.4em;
    }
    .container {
        padding:0 10px;
    }
    .header .inner-container {
        padding-top:15px;
        padding-bottom:13px;
    }
    pre {
        padding:10px;
    }
    .pagination span {
        display:none;
    }
    .pagination .pure-button i.fa {
        padding:0;
    }
}

@media (min-width: 980px) {
    .pure-visible-phone {
        display: none;
    }
    .pure-visible-tablet {
        display: none;
    }
    .pure-hidden-desktop {
        display: none;
    }
}

@media (max-width: 480px) {
    .pure-g-r > .pure-u,
    .pure-g-r > [class *= "pure-u-"] {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .pure-g-r > .pure-u,
    .pure-g-r > [class *= "pure-u-"] {
        width: 100%;
    }
    .pure-hidden-phone {
        display: none;
    }
    .pure-visible-desktop {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 979px) {
    .pure-hidden-tablet {
        display: none;
    }
    .pure-visible-desktop {
        display: none;
    }
}

html {
    scroll-behavior:smooth;
}

html[data-theme="dark"] {
    color-scheme: dark;
    scrollbar-color: var(--border-strong) var(--surface);
    --bg: #0f172a;
    --surface: #1e293b;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --heading: #f8fafc;
    --accent: #e08a8a;
    --accent-hover: #eaa8a8;
    --accent-button: #e5484d;
    --accent-button-hover: #ef5a5f;
    --accent-button-text: #111111;
    --accent-contrast: var(--bg);
    --border: #334155;
    --border-strong: #475569;
    --code-bg: #1e293b;
    --code-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.8);
    --blockquote-bg: var(--surface);
    --blockquote-border: var(--accent);
    --plugin-bg: var(--surface);
    --mark-bg: #4a3f1a;
    --mark-text: #fef9c3;
    --header-shadow:0 1px 0 rgba(0, 0, 0, 0.3), 0 10px 30px -14px rgba(0, 0, 0, 0.7);
    --hljs-text: #c9d1d9;
    --hljs-success: #7ee787;
    --hljs-comment: #8b949e;
    --hljs-keyword: #ff7b72;
    --hljs-attribute: #79c0ff;
    --hljs-string: #a5d6ff;
    --hljs-title: #d2a8ff;
    --hljs-code: #8b949e;
    --hljs-deletion: #ffa198;
}

html[data-theme="dark"] .header {
    background:color-mix(in srgb, var(--bg) 88%, transparent);
}

html[data-theme="dark"] .pure-table code {
    background-color:color-mix(in srgb, var(--text) 12%, var(--surface));
}

/* Syntax highlighting: colors come from theme tokens */
.hljs { color:var(--hljs-text); background:var(--code-bg); }
.hljs-tag { color:var(--hljs-success); }
.hljs-subst { color:var(--hljs-text); }
.hljs-comment { color:var(--hljs-comment); }
.hljs-attr,
.hljs-doctag,
.hljs-keyword,
.hljs-meta .hljs-keyword,
.hljs-section,
.hljs-selector-tag,
.hljs-meta,
.hljs-selector-pseudo { color:var(--hljs-keyword); }
.hljs-attribute,
.hljs-name,
.hljs-number,
.hljs-quote,
.hljs-selector-id,
.hljs-template-tag,
.hljs-type,
.hljs-selector-class { color:var(--hljs-attribute); }
.hljs-link,
.hljs-regexp,
.hljs-selector-attr,
.hljs-string,
.hljs-symbol,
.hljs-template-variable,
.hljs-variable,
.hljs-meta .hljs-string { color:var(--hljs-string); }
.hljs-built_in,
.hljs-literal,
.hljs-title { color:var(--hljs-title); }
.hljs-bullet,
.hljs-code { color:var(--hljs-code); }
.hljs-deletion { color:var(--hljs-deletion); }
.hljs-addition { color:var(--hljs-success); }
