/* assets/css/screen.css */
/* Dega for Ghost
   Dark app shell from the Dega style guide (app/design/dega-ui-style-guide.html):
   ground #0B0B0C, cards #141416 / #1C1C20, rules #26262A, silver primary #E4E4DE,
   Graphik, radii 6 chips / 9 buttons / 12 cards / 14 hero cards.
   Brand moves from the landing page: two-tone headlines, the Volt arrow,
   Volt chart lines, silver pill buttons with the up-right arrow.

    1. Tokens        5. Covers and media   9. Post
    2. Base          6. Home               10. Table of contents
    3. Shell         7. Cards and grid     11. Content and cards
    4. Controls      8. Archive headers    12. Sign-up, footer
*/

/* 1. Tokens
/* ---------------------------------------------------------- */

:root {
    --bg: #0b0b0c;
    --card: #141416;
    --card2: #1c1c20;
    --ink: #f2f2f2;
    --text: #cfcfd4;
    --sub: #84848c;
    --muted: #6a6a72;
    --rule: #26262a;
    --ghost: #2e2e33;
    --btn: #e4e4de;
    --btn-fg: #0b0b0c;
    --volt: #e8f000;
    --loss: #ff5a5f;
    --chip-bg: rgba(11, 11, 12, .78);
    --progress: var(--volt);
    --marker: var(--volt);
    --link-line: rgba(232, 240, 0, .45);
    --logo-mark: #e8f000;
    --logo-word: #e7e7e7;
    --shadow: 0 12px 32px rgba(0, 0, 0, .55);

    --graphik: "Graphik", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    /* Ghost's Design settings can swap the fonts; Graphik is the default */
    --font: var(--gh-font-body, var(--graphik));
    --font-heading: var(--gh-font-heading, var(--graphik));
    --mono: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, monospace;

    --top-h: 56px;
    --side-w: 248px;
    --pad: 32px;
    --r-chip: 6px;
    --r-btn: 9px;
    --r-tile: 10px;
    --r-card: 12px;
    --r-hero: 14px;
}

.dg-light {
    --bg: #f4f4f0;
    --card: #ffffff;
    --card2: #ededE8;
    --ink: #0b0b0c;
    --text: #2c2c30;
    --sub: #75757c;
    --muted: #8a8a92;
    --rule: #e8e8e2;
    --ghost: #c8c8c0;
    --btn: #0b0b0c;
    --btn-fg: #ffffff;
    --loss: #d6303a;
    --progress: #0b0b0c;
    --marker: #0b0b0c;
    --link-line: #c8c8c0;
    --logo-mark: #0b0b0c;
    --logo-word: #0b0b0c;
    --shadow: 0 12px 32px rgba(11, 11, 12, .12);
}

@media (prefers-color-scheme: light) {
    .dg-system {
        --bg: #f4f4f0;
        --card: #ffffff;
        --card2: #ededE8;
        --ink: #0b0b0c;
        --text: #2c2c30;
        --sub: #75757c;
        --muted: #8a8a92;
        --rule: #e8e8e2;
        --ghost: #c8c8c0;
        --btn: #0b0b0c;
        --btn-fg: #ffffff;
        --loss: #d6303a;
        --progress: #0b0b0c;
        --marker: #0b0b0c;
        --link-line: #c8c8c0;
        --logo-mark: #0b0b0c;
        --logo-word: #0b0b0c;
        --shadow: 0 12px 32px rgba(11, 11, 12, .12);
    }
}

@media (max-width: 767px) {
    :root {
        --pad: 16px;
        --top-h: 52px;
    }
}

/* 2. Base
/* ---------------------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--top-h) + 24px);
    background: var(--bg);
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img,
svg,
video {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

input {
    font: inherit;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, ul, ol, dl, dd {
    margin: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

strong, b {
    font-weight: 500;
    color: var(--ink);
}

::selection {
    background: var(--volt);
    color: #0b0b0c;
}

:focus-visible {
    outline: 2px solid var(--volt);
    outline-offset: 2px;
    border-radius: 4px;
}

.dg-light :focus-visible {
    outline-color: var(--ink);
}

[hidden] {
    display: none !important;
}

.dg-tnum {
    font-variant-numeric: tabular-nums;
}

.dg-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.dg-sep {
    color: var(--muted);
}

.dg-dot {
    display: inline-block;
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--tag, var(--volt));
}

.dg-light .dg-dot {
    box-shadow: inset 0 0 0 1px rgba(11, 11, 12, .25);
}

/* Two-tone headline: first sentence in ink, second in grey */
.dg-two-tone {
    color: var(--ink);
    font-weight: 700;
    letter-spacing: -.025em;
    text-wrap: balance;
}

.dg-two-tone span {
    color: var(--sub);
}

.dg-two-tone.is-display {
    max-width: 920px;
    font-size: 48px;
    line-height: 1.06;
}

.dg-two-tone.is-section {
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -.02em;
}

/* 3. Shell: top bar, sidebar, main
/* ---------------------------------------------------------- */

.dg-top {
    position: sticky;
    top: 0;
    z-index: 100;
    display: grid;
    grid-template-columns: calc(var(--side-w) - 16px) minmax(0, 1fr) calc(var(--side-w) - 16px);
    gap: 16px;
    align-items: center;
    height: var(--top-h);
    padding: 0 16px 0 9px;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
}

.dg-top-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.dg-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 4px 6px;
}

.dg-logo-svg {
    flex: none;
    width: auto;
    height: 17px;
}

.dg-logo-mark {
    fill: var(--logo-mark);
}

.dg-logo-word {
    fill: var(--logo-word);
}

.dg-brand-img {
    width: auto;
    max-width: 140px;
    height: 22px;
    object-fit: contain;
}

.dg-brand-label {
    color: var(--sub);
    font-size: 17px;
    font-weight: 500;
    letter-spacing: -.01em;
    white-space: nowrap;
}

.dg-top-center {
    position: relative;
    display: flex;
    justify-content: center;
    height: 100%;
    align-items: center;
    min-width: 0;
}

.dg-search {
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(520px, 100%);
    height: 38px;
    padding: 0 8px 0 12px;
    border: 1px solid var(--rule);
    border-radius: var(--r-btn);
    background: var(--card);
    color: var(--sub);
    font-size: 14px;
    text-align: left;
    transition: border-color .15s ease, opacity .15s ease, visibility .15s ease;
}

.dg-search:hover {
    border-color: var(--ghost);
}

.dg-search svg {
    flex: none;
    width: 16px;
    height: 16px;
}

.dg-search-text {
    flex: 1;
}

.dg-search kbd {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border: 1px solid var(--ghost);
    border-radius: var(--r-chip);
    color: var(--sub);
    font-family: var(--font);
    font-size: 12px;
}

.dg-top-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

.dg-top-right .dg-search-icon {
    display: none;
}

.dg-shell {
    display: grid;
    grid-template-columns: var(--side-w) minmax(0, 1fr);
    min-height: calc(100vh - var(--top-h));
}

.dg-side {
    position: sticky;
    top: var(--top-h);
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--top-h));
    padding: 16px 8px;
    overflow-x: hidden;
    overflow-y: auto;
    border-right: 1px solid var(--rule);
    background: var(--bg);
    scrollbar-width: thin;
}

.dg-side .nav,
.dg-side-tags {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dg-side .nav a,
.dg-side-tags a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 38px;
    padding: 8px 9px;
    border-radius: var(--r-btn);
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.25;
    transition: background-color .15s ease, color .15s ease;
}

.dg-side .nav a:hover,
.dg-side-tags a:hover {
    background: var(--card);
}

.dg-side .nav-current a,
.dg-side-tags a.is-current {
    background: var(--card2);
}

/* Volt marker on the current row, as in the app's rail */
.dg-side .nav-current a::before,
.dg-side-tags a.is-current::before {
    content: "";
    position: absolute;
    top: 9px;
    bottom: 9px;
    left: -8px;
    width: 3px;
    border-radius: 0 2px 2px 0;
    background: var(--marker);
}

.dg-nav-icon {
    flex: none;
    width: 18px;
    height: 18px;
    color: var(--sub);
}

.dg-side .nav-current .dg-nav-icon,
.dg-side .nav a:hover .dg-nav-icon {
    color: var(--ink);
}

.dg-side-label {
    margin: 28px 9px 8px;
    color: var(--sub);
    font-size: 13px;
}

.dg-side-tags .dg-dot {
    margin: 0 5px;
}

/* the dot sits in an 18px slot, like the nav icons */
.dg-side-tags a {
    padding-left: 9px;
}

.dg-side-text {
    flex: 1;
    min-width: 0;
}

.dg-side-count {
    color: var(--muted);
    font-size: 12px;
    font-weight: 400;
}

.dg-side-foot {
    margin-top: auto;
    padding: 20px 9px 4px;
}

.dg-side-social {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    margin: 0 0 12px -8px;
    padding-top: 16px;
    border-top: 1px solid var(--rule);
}

.dg-side-social svg {
    width: 16px;
    height: 16px;
}

.dg-side-social svg path {
    fill: currentColor;
}

.dg-side-legal {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.dg-side-legal a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.dg-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 24px var(--pad) 0;
}

.dg-page {
    flex: 1 0 auto;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

.dg-scrim {
    display: none;
}

/* Rail: the collapsed sidebar on desktop, like the Dega app's 52px rail.
   Labels hide, icons and tag dots stay centred, names show as tooltips. */
@media (min-width: 1024px) {
    .dg-shell {
        transition: grid-template-columns .3s cubic-bezier(.4, 0, .2, 1);
    }

    .dg-side-off .dg-shell {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    .dg-side-off .dg-side {
        padding: 12px 8px;
        scrollbar-width: none;
    }

    .dg-side-off .dg-side .nav a,
    .dg-side-off .dg-side-tags a {
        justify-content: center;
        gap: 0;
        width: 36px;
        min-height: 36px;
        padding: 0;
    }

    .dg-side-off .dg-side .nav a > span,
    .dg-side-off .dg-side-text {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .dg-side-off .dg-side-count {
        display: none;
    }

    .dg-side-off .dg-side-tags .dg-dot {
        margin: 0;
    }

    .dg-side-off .dg-side .nav-current a::before,
    .dg-side-off .dg-side-tags a.is-current::before {
        top: 10px;
        bottom: 10px;
    }

    /* the "Tags" heading becomes a hairline */
    .dg-side-off .dg-side-label {
        height: 1px;
        margin: 12px 6px;
        overflow: hidden;
        background: var(--rule);
        color: transparent;
        font-size: 0;
    }

    .dg-side-off .dg-side-foot {
        padding: 12px 0 0;
    }

    .dg-side-off .dg-side-social {
        flex-direction: column;
        align-items: center;
        margin: 0;
        padding-top: 12px;
    }

    .dg-side-off .dg-side-legal {
        display: none;
    }
}

.dg-tip {
    position: fixed;
    z-index: 200;
    padding: 6px 9px;
    border: 1px solid var(--rule);
    border-radius: var(--r-chip);
    background: var(--card2);
    color: var(--ink);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    pointer-events: none;
    transform: translateY(-50%);
    box-shadow: var(--shadow);
}

/* Tablet and phone: the sidebar becomes a drawer */
@media (max-width: 1023px) {
    .dg-top {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .dg-shell,
    .dg-side-off .dg-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .dg-side,
    .dg-side-off .dg-side {
        position: fixed;
        top: var(--top-h);
        bottom: 0;
        left: 0;
        z-index: 90;
        width: min(300px, 86vw);
        height: auto;
        padding: 16px 12px;
        visibility: hidden;
        border-right: 1px solid var(--rule);
        transform: translateX(-100%);
        transition: transform .2s ease, visibility .2s ease;
    }

    .dg-side-open .dg-side {
        visibility: visible;
        transform: none;
    }

    .dg-side-open .dg-scrim {
        position: fixed;
        inset: var(--top-h) 0 0 0;
        z-index: 80;
        display: block;
        background: rgba(0, 0, 0, .55);
    }

    .dg-side-open {
        overflow: hidden;
    }
}

@media (max-width: 767px) {
    .dg-search {
        display: none;
    }

    .dg-top-right .dg-search-icon {
        display: inline-flex;
    }

    .dg-brand-label {
        font-size: 16px;
    }
}

/* Reading bar: replaces the search field once the post title scrolls away */
.dg-reader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .15s ease, visibility .15s ease;
}

.dg-top.is-reading .dg-search {
    opacity: 0;
    visibility: hidden;
}

.dg-top.is-reading .dg-reader {
    opacity: 1;
    visibility: visible;
}

.dg-reader-title {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 380px;
    overflow: hidden;
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.dg-reader-section {
    position: relative;
    flex: 0 1 auto;
    min-width: 120px;
    max-width: 320px;
    padding-left: 12px;
    border-left: 1px solid var(--rule);
}

.dg-reader-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    height: 32px;
    padding: 0 8px;
    border-radius: var(--r-btn);
    color: var(--sub);
    font-size: 14px;
    transition: background-color .15s ease, color .15s ease;
}

.dg-reader-toggle:hover,
.dg-reader-toggle[aria-expanded="true"] {
    background: var(--card2);
    color: var(--ink);
}

.dg-reader-toggle span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.dg-reader-toggle svg {
    flex: none;
    width: 16px;
    height: 16px;
}

.dg-reader-toc {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: 340px;
    max-height: min(480px, calc(100vh - var(--top-h) - 48px));
    overflow-y: auto;
    padding: 14px;
    border: 1px solid var(--rule);
    border-radius: var(--r-card);
    background: var(--card);
    box-shadow: var(--shadow);
}

.dg-reader-end {
    display: flex;
    flex: none;
    align-items: center;
    gap: 2px;
    margin-left: auto;
}

.dg-reader-left {
    margin-right: 8px;
    color: var(--sub);
    font-size: 13px;
    white-space: nowrap;
}

.dg-progress {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    pointer-events: none;
}

.dg-progress span {
    display: block;
    height: 100%;
    background: var(--progress);
    transform: scaleX(var(--read, 0));
    transform-origin: 0 50%;
}

@media (max-width: 1279px) {
    .dg-reader-title {
        display: none;
    }

    .dg-reader-section {
        padding-left: 0;
        border-left: 0;
    }
}

@media (max-width: 767px) {
    .dg-top.is-reading .dg-top-right .dg-search-icon {
        display: none;
    }

    .dg-reader-toc {
        position: fixed;
        top: calc(var(--top-h) + 8px);
        right: 12px;
        left: 12px;
        width: auto;
    }

    .dg-reader-left {
        display: none;
    }
}

/* 4. Controls
/* ---------------------------------------------------------- */

.dg-icon-btn {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: var(--r-btn);
    color: var(--sub);
    transition: background-color .15s ease, color .15s ease;
}

.dg-icon-btn:hover {
    background: var(--card2);
    color: var(--ink);
}

.dg-icon-btn svg {
    width: 18px;
    height: 18px;
}

/* Silver pill with the up-right arrow, as on the landing page */
.dg-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 18px 0 20px;
    border-radius: 999px;
    background: var(--btn);
    color: var(--btn-fg);
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    transition: filter .15s ease;
}

.dg-pill:hover {
    filter: brightness(1.06);
}

.dg-pill.is-small {
    height: 34px;
    padding: 0 12px 0 14px;
    font-size: 14px;
}

.dg-arrow-ur {
    width: 14px;
    height: 14px;
}

.dg-ghost-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 14px;
    border: 1px solid var(--ghost);
    border-radius: var(--r-btn);
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
    transition: background-color .15s ease;
}

.dg-ghost-btn:hover {
    background: var(--card2);
}

.dg-ghost-btn svg {
    width: 16px;
    height: 16px;
}

.dg-chip-row {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 2;
    display: flex;
    gap: 6px;
}

.dg-chip {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 8px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--r-chip);
    background: var(--chip-bg);
    color: #f2f2f2;
    font-size: 12px;
    font-weight: 500;
}

.dg-chip svg {
    width: 12px;
    height: 12px;
}

.dg-more {
    display: flex;
    justify-content: center;
    padding-top: 40px;
}

.dg-more .gh-loadmore,
.dg-more .dg-btn {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 18px;
    border: 1px solid var(--ghost);
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
    box-shadow: none;
    transition: background-color .15s ease;
}

.dg-more .gh-loadmore:hover {
    background: var(--card2);
}

/* 5. Covers and media
/* ---------------------------------------------------------- */

.dg-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--r-card);
    background: var(--card);
    container-type: inline-size;
}

.dg-media::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: inherit;
    pointer-events: none;
    transition: border-color .15s ease;
}

.dg-media-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* The cover is always drawn on brand colours, in light mode too */
.dg-cover {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #141416;
    color: #f2f2f2;
    font-family: var(--graphik);
}

.dg-cover .dg-logo-mark {
    fill: #e8f000;
}

.dg-cover .dg-logo-word {
    fill: #e7e7e7;
}

.dg-cover-logo {
    position: absolute;
    top: 6.5cqi;
    left: 50%;
    transform: translateX(-50%);
}

.dg-cover-logo .dg-logo-svg {
    height: max(9px, 3.4cqi);
}

.dg-cover-tag {
    position: absolute;
    top: 6.5cqi;
    right: 7cqi;
    display: none;
    color: #84848c;
    font-size: max(10px, 2.6cqi);
    font-weight: 500;
}

.dg-cover-title {
    position: absolute;
    top: 50%;
    right: 9cqi;
    left: 9cqi;
    display: block;
    max-height: calc(3 * 1.06em);
    overflow: hidden;
    transform: translateY(-64%);
    color: #84848c;
    font-size: max(13px, 6.6cqi);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -.028em;
    text-align: center;
    text-wrap: balance;
}

.dg-cover-title::first-line {
    color: #f2f2f2;
}

.dg-cover-chart {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
}

.dg-cover-line {
    fill: none;
    stroke: #e8f000;
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
}

.dg-cover-area {
    fill: rgba(232, 240, 0, .07);
}

.dg-cover-arrow {
    position: absolute;
    display: none;
    fill: #e8f000;
}

/* arrow: oversized Volt arrow cropped at the bottom right */
.dg-cover[data-v$="1"],
.dg-cover[data-v$="5"],
.dg-cover[data-v$="9"] {
    background: #161718;
}

.dg-cover[data-v$="1"] .dg-cover-arrow,
.dg-cover[data-v$="5"] .dg-cover-arrow,
.dg-cover[data-v$="9"] .dg-cover-arrow {
    right: -7cqi;
    bottom: -20cqi;
    display: block;
    width: 56cqi;
}

.dg-cover[data-v$="1"] :is(.dg-cover-chart, .dg-cover-logo),
.dg-cover[data-v$="5"] :is(.dg-cover-chart, .dg-cover-logo),
.dg-cover[data-v$="9"] :is(.dg-cover-chart, .dg-cover-logo) {
    display: none;
}

.dg-cover[data-v$="1"] .dg-cover-title,
.dg-cover[data-v$="5"] .dg-cover-title,
.dg-cover[data-v$="9"] .dg-cover-title {
    top: 8cqi;
    right: 40cqi;
    left: 7cqi;
    max-height: calc(4 * 1.06em);
    transform: none;
    font-size: max(13px, 6.8cqi);
    text-align: left;
}

.dg-cover[data-v$="1"] .dg-cover-tag,
.dg-cover[data-v$="5"] .dg-cover-tag,
.dg-cover[data-v$="9"] .dg-cover-tag {
    top: auto;
    right: auto;
    bottom: 7cqi;
    left: 7cqi;
    display: block;
}

/* tone: oversized arrow tone on tone, logo top left, title bottom left */
.dg-cover[data-v$="6"] {
    background: #161718;
}

.dg-cover[data-v$="6"] .dg-cover-arrow {
    top: -6cqi;
    right: -10cqi;
    display: block;
    width: 70cqi;
    fill: #1f2023;
}

.dg-cover[data-v$="6"] .dg-cover-logo {
    left: 7cqi;
    transform: none;
}

.dg-cover[data-v$="6"] .dg-cover-chart {
    display: none;
}

.dg-cover[data-v$="6"] .dg-cover-title {
    top: auto;
    right: 18cqi;
    bottom: 7cqi;
    left: 7cqi;
    max-height: calc(4 * 1.06em);
    transform: none;
    font-size: max(13px, 7cqi);
    text-align: left;
}

/* grid: chart grid, small Volt arrow, title bottom left */
.dg-cover[data-v$="3"],
.dg-cover[data-v$="7"] {
    background-color: #111113;
    background-image:
        linear-gradient(rgba(242, 242, 242, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(242, 242, 242, .06) 1px, transparent 1px);
    background-position: -1px -1px;
    background-size: 8cqi 8cqi;
}

.dg-cover[data-v$="3"] .dg-cover-arrow,
.dg-cover[data-v$="7"] .dg-cover-arrow {
    top: 7cqi;
    left: 7cqi;
    display: block;
    width: 8cqi;
}

.dg-cover[data-v$="3"] :is(.dg-cover-chart, .dg-cover-logo),
.dg-cover[data-v$="7"] :is(.dg-cover-chart, .dg-cover-logo) {
    display: none;
}

.dg-cover[data-v$="3"] .dg-cover-tag,
.dg-cover[data-v$="7"] .dg-cover-tag {
    display: block;
}

.dg-cover[data-v$="3"] .dg-cover-title,
.dg-cover[data-v$="7"] .dg-cover-title {
    top: auto;
    right: 14cqi;
    bottom: 7cqi;
    left: 7cqi;
    max-height: calc(4 * 1.06em);
    transform: none;
    font-size: max(13px, 6.6cqi);
    text-align: left;
}

/* 6. Home: cover wall
/* ---------------------------------------------------------- */

.dg-mosaic {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
}

.dg-mosaic > :first-child {
    grid-row: span 2;
}

.dg-mosaic > :first-child .dg-media {
    height: 100%;
    aspect-ratio: auto;
}

.dg-tile {
    display: block;
    min-width: 0;
}

.dg-tile .dg-media {
    border-radius: var(--r-hero);
}

.dg-tile:hover .dg-media::after,
.dg-card-link:hover .dg-media::after {
    border-color: rgba(255, 255, 255, .3);
}

.dg-tile-caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 16cqi 6cqi 5cqi;
    background: linear-gradient(rgba(11, 11, 12, 0), rgba(11, 11, 12, .92) 70%);
}

.dg-tile-title {
    display: -webkit-box;
    max-width: 88%;
    overflow: hidden;
    color: #f2f2f2;
    font-size: clamp(12px, 6cqi, 30px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.015em;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.dg-tile .dg-chip-row {
    top: 12px;
    right: 12px;
    bottom: auto;
    opacity: 0;
    transition: opacity .15s ease;
}

.dg-tile:hover .dg-chip-row {
    opacity: 1;
}

/* Pinned walls stack like one sheet: square tiles, no frame, even spacing */
.dg-mosaic + .dg-mosaic {
    margin-top: 48px;
}

.dg-mosaic.is-pinned .dg-tile .dg-media {
    border-radius: 0;
}

.dg-mosaic.is-pinned .dg-media::after {
    display: none;
}

/* A grid with nothing left in it (every post pinned to a wall) is not shown */
.dg-section:not(:has(.dg-card)) {
    display: none;
}

/* Pieces of one picture (posts tagged #mosaic): the title shows on hover only, so the picture stays whole */
.dg-tile.is-piece .dg-tile-caption {
    opacity: 0;
    transition: opacity .15s ease;
}

.dg-tile.is-piece:hover .dg-tile-caption,
.dg-tile.is-piece:focus-visible .dg-tile-caption {
    opacity: 1;
}

@media (max-width: 1099px) {
    .dg-mosaic {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 16px;
    }

    .dg-mosaic > :first-child {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .dg-mosaic > :first-child .dg-media {
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 599px) {
    .dg-mosaic {
        gap: 12px;
    }

    .dg-mosaic + .dg-mosaic {
        margin-top: 28px;
    }

    .dg-tile .dg-media {
        border-radius: var(--r-card);
    }
}

/* 7. Cards and grid
/* ---------------------------------------------------------- */

.dg-section {
    margin-top: 56px;
}

.dg-section-head {
    margin-bottom: 20px;
}

.dg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: 36px 20px;
}

.dg-card {
    min-width: 0;
}

.dg-card-link {
    display: block;
}

.dg-card-body {
    display: flex;
    gap: 12px;
    margin-top: 14px;
}

.dg-avatar {
    display: grid;
    flex: none;
    place-items: center;
    width: 32px;
    height: 32px;
    overflow: hidden;
    border-radius: 50%;
    background: #161718;
    box-shadow: inset 0 0 0 1px var(--ghost);
}

.dg-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dg-avatar .dg-mark {
    width: 13px;
    height: auto;
    margin: 1px 0 0 1px;
    fill: #e8f000;
}

.dg-avatar.is-lg {
    width: 88px;
    height: 88px;
}

.dg-avatar.is-lg .dg-mark {
    width: 34px;
}

.dg-card-copy {
    min-width: 0;
}

.dg-card-title {
    display: -webkit-box;
    overflow: hidden;
    color: var(--ink);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: -.01em;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.dg-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    color: var(--sub);
    font-size: 13px;
}

/* 8. Archive headers
/* ---------------------------------------------------------- */

.dg-hero {
    padding: 40px 0 8px;
}

.dg-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--sub);
    font-size: 13px;
}

.dg-crumbs > * + *::before {
    content: "/";
    margin-right: 8px;
    color: var(--muted);
}

.dg-crumbs a:hover {
    color: var(--ink);
}

.dg-crumb-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dg-author {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

.dg-author-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-top: 16px;
    color: var(--sub);
    font-size: 14px;
}

.dg-author-links a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--link-line);
    text-underline-offset: 3px;
}

.dg-author-links:empty {
    display: none;
}

.dg-error {
    padding: 96px 0;
}

.dg-error .dg-pill {
    margin-top: 32px;
}

@media (max-width: 767px) {
    .dg-two-tone.is-display {
        font-size: 34px;
    }

    .dg-two-tone.is-section {
        font-size: 21px;
    }

    .dg-hero {
        padding-top: 24px;
    }

    .dg-author {
        flex-direction: column;
        gap: 16px;
    }

    .dg-avatar.is-lg {
        width: 64px;
        height: 64px;
    }
}

/* 9. Post
/* ---------------------------------------------------------- */

.dg-article {
    --content: 700px;
    --rail: 220px;
    --rail-gap: 64px;
    max-width: calc(var(--content) + var(--rail) + var(--rail-gap));
    margin: 0 auto;
}

.dg-post-head {
    max-width: var(--content);
    padding-top: 32px;
}

.dg-post-title {
    color: var(--ink);
    font-size: 48px;
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -.028em;
    text-wrap: balance;
}

.dg-post-dek {
    margin-top: 18px;
    color: var(--sub);
    font-size: 20px;
    line-height: 1.45;
    letter-spacing: -.01em;
    text-wrap: pretty;
}

.dg-byline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 28px;
}

.dg-byline-who {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.dg-byline-who .dg-avatar {
    width: 40px;
    height: 40px;
}

.dg-byline-who .dg-avatar .dg-mark {
    width: 16px;
}

.dg-byline-name {
    font-size: 14px;
    font-weight: 500;
}

.dg-byline-name a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.dg-byline-meta {
    display: flex;
    gap: 6px;
    margin-top: 2px;
    color: var(--sub);
    font-size: 13px;
}

.dg-post-feature {
    margin-top: 32px;
}

.dg-post-feature .dg-media {
    border-radius: var(--r-hero);
}

.dg-post-feature figcaption {
    margin-top: 12px;
    color: var(--sub);
    font-size: 13px;
    text-align: center;
}

.dg-post-body {
    display: grid;
    grid-template-columns: minmax(0, var(--content)) var(--rail);
    column-gap: var(--rail-gap);
    margin-top: 48px;
}

.dg-post-main {
    min-width: 0;
}

.dg-page-article {
    max-width: var(--content);
}

.dg-page-article .dg-post-body {
    grid-template-columns: minmax(0, 1fr);
}

.dg-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 56px 0 0;
    padding: 24px 0 0;
    border-top: 1px solid var(--rule);
    list-style: none;
}

.dg-tags a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 32px;
    padding: 0 12px;
    border-radius: var(--r-chip);
    background: var(--card2);
    color: var(--ink);
    font-size: 13px;
    font-weight: 500;
    transition: background-color .15s ease;
}

.dg-tags a:hover {
    background: var(--ghost);
}

.dg-comments {
    margin-top: 56px;
}

.dg-related {
    margin-top: 96px;
    padding-top: 40px;
    border-top: 1px solid var(--rule);
}

@media (max-width: 1199px) {
    .dg-article {
        max-width: var(--content);
    }

    .dg-post-body {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 767px) {
    .dg-post-head {
        padding-top: 16px;
    }

    .dg-post-title {
        font-size: 34px;
    }

    .dg-post-dek {
        font-size: 18px;
    }

    .dg-post-feature {
        margin: 24px calc(var(--pad) * -1) 0;
    }

    .dg-post-feature .dg-media {
        border-radius: 0;
    }

    .dg-post-body {
        margin-top: 32px;
    }
}

/* 10. Table of contents
/* ---------------------------------------------------------- */

.dg-toc-label {
    margin-bottom: 12px;
    color: var(--sub);
    font-size: 13px;
}

.dg-toc ol,
.dg-reader-toc ol,
.dg-toc-inline ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dg-toc ol {
    border-left: 1px solid var(--rule);
}

.dg-toc a {
    display: block;
    margin-left: -1px;
    padding: 6px 0 6px 14px;
    border-left: 2px solid transparent;
    color: var(--sub);
    font-size: 13px;
    line-height: 1.4;
    transition: color .15s ease, border-color .15s ease;
}

.dg-toc .is-h3 a {
    padding-left: 26px;
}

.dg-toc a:hover {
    color: var(--ink);
}

.dg-toc a.is-active {
    border-left-color: var(--marker);
    color: var(--ink);
}

.dg-toc-progress {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--rule);
    color: var(--sub);
    font-size: 12px;
}

.dg-toc-progress span {
    color: var(--ink);
    font-weight: 500;
}

.dg-reader-toc a {
    display: block;
    padding: 7px 8px;
    border-radius: var(--r-chip);
    color: var(--sub);
    font-size: 13px;
    line-height: 1.4;
}

.dg-reader-toc .is-h3 a {
    padding-left: 22px;
}

.dg-reader-toc a:hover {
    background: var(--card2);
    color: var(--ink);
}

.dg-reader-toc a.is-active {
    color: var(--ink);
    font-weight: 500;
}

.dg-toc {
    display: none;
}

@media (min-width: 1200px) {
    .dg-toc {
        display: block;
    }

    .dg-toc nav {
        position: sticky;
        top: calc(var(--top-h) + 40px);
        max-height: calc(100vh - var(--top-h) - 80px);
        overflow-y: auto;
        transition: opacity .2s ease;
        scrollbar-width: none;
    }

    .dg-toc.is-covered nav {
        opacity: 0;
        pointer-events: none;
    }

    .dg-toc-inline {
        display: none !important;
    }
}

.dg-toc-inline {
    margin-bottom: 32px;
    border: 1px solid var(--rule);
    border-radius: var(--r-card);
    background: var(--card);
}

.dg-toc-inline summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 500;
    list-style: none;
    cursor: pointer;
}

.dg-toc-inline summary > span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dg-toc-inline summary::-webkit-details-marker {
    display: none;
}

.dg-toc-inline summary svg {
    width: 16px;
    height: 16px;
    color: var(--sub);
    transition: transform .15s ease;
}

.dg-toc-inline[open] summary > svg {
    transform: rotate(180deg);
}

.dg-toc-inline ol {
    padding: 0 16px 10px;
}

.dg-toc-inline a {
    display: block;
    padding: 8px 0;
    border-top: 1px solid var(--rule);
    color: var(--sub);
    font-size: 14px;
}

.dg-toc-inline .is-h3 a {
    padding-left: 14px;
}

/* 11. Content and Ghost cards
/* ---------------------------------------------------------- */

.gh-content {
    color: var(--text);
    font-size: 17px;
    line-height: 1.7;
}

.gh-content > * + * {
    margin-top: 22px;
}

.gh-content > [id]:not(:first-child) {
    margin-top: 56px;
}

.gh-content > [id] + * {
    margin-top: 12px;
}

.gh-content > h3[id]:not(:first-child),
.gh-content > h4[id]:not(:first-child) {
    margin-top: 36px;
}

.gh-content > p:first-child {
    color: var(--ink);
    font-size: 19px;
    line-height: 1.6;
}

.gh-content :is(h1, h2, h3, h4, h5, h6) {
    color: var(--ink);
}

.gh-content h2 {
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: -.022em;
}

.gh-content h3 {
    font-size: 20px;
    line-height: 1.3;
    letter-spacing: -.012em;
}

.gh-content h4 {
    font-size: 17px;
}

.gh-content a:not([class]),
.gh-content p a,
.gh-content li a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--link-line);
    text-decoration-thickness: 1px;
    text-underline-offset: .22em;
    transition: text-decoration-color .15s ease;
}

.gh-content a:not([class]):hover,
.gh-content p a:hover,
.gh-content li a:hover {
    text-decoration-color: var(--marker);
}

.gh-content :is(ul, ol) {
    padding-left: 22px;
}

.gh-content li {
    padding-left: 4px;
}

.gh-content li + li {
    margin-top: 8px;
}

.gh-content li::marker {
    color: var(--muted);
}

.gh-content > blockquote:not([class]),
.gh-content > blockquote.kg-blockquote {
    padding-left: 22px;
    border-left: 2px solid var(--marker);
    color: var(--ink);
    font-size: 21px;
    line-height: 1.5;
    letter-spacing: -.01em;
}

.gh-content > blockquote.kg-blockquote-alt {
    padding: 0 24px;
    color: var(--ink);
    font-size: 28px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.02em;
    text-align: center;
}

.gh-content > :is(hr, blockquote, iframe) {
    margin-top: 44px !important;
}

.gh-content > :is(hr, blockquote, iframe) + * {
    margin-top: 44px !important;
}

.gh-content hr {
    height: 1px;
    border: 0;
    background: var(--rule);
}

.gh-content :not(pre) > code {
    padding: .15em .4em;
    border-radius: var(--r-chip);
    background: var(--card2);
    color: var(--ink);
    font-family: var(--mono);
    font-size: .85em;
}

.gh-content pre {
    overflow-x: auto;
    padding: 20px 22px;
    border: 1px solid var(--rule);
    border-radius: var(--r-card);
    background: var(--card);
    color: var(--ink);
    font-family: var(--mono);
    font-size: 14px;
    line-height: 1.65;
}

.gh-content pre code {
    font-family: inherit;
}

.gh-content .gh-table {
    overflow-x: auto;
    border: 1px solid var(--rule);
    border-radius: var(--r-card);
    background: var(--card);
}

.gh-content table:not(.gist table) {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.5;
    font-variant-numeric: tabular-nums;
}

.gh-content th {
    padding: 12px 16px;
    color: var(--sub);
    font-size: 12px;
    font-weight: 500;
    text-align: left;
    white-space: nowrap;
}

.gh-content td {
    padding: 14px 16px;
    border-top: 1px solid var(--rule);
    color: var(--ink);
    vertical-align: top;
}

.gh-content figcaption {
    margin-top: 12px;
    color: var(--sub);
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.gh-content :not(.kg-card):not(table):not([id]) + :is(.kg-card, table) {
    margin-top: 36px;
}

.gh-content :is(.kg-card, table) + :not(.kg-card):not(table):not([id]) {
    margin-top: 36px;
}

/* Wide and full cards reach over the contents rail */
.gh-content .kg-width-wide,
.gh-content .kg-width-full {
    margin-right: calc((var(--rail) + var(--rail-gap)) * -1);
}

@media (max-width: 1199px) {
    .gh-content .kg-width-wide,
    .gh-content .kg-width-full {
        margin-right: 0;
    }
}

.kg-image-card img,
.kg-gallery-image img {
    border-radius: var(--r-card);
}

.kg-gallery-image img {
    border-radius: var(--r-tile);
}

.kg-image {
    margin-right: auto;
    margin-left: auto;
}

.kg-image[width][height],
.kg-gallery-image,
.gh-feature-image {
    cursor: zoom-in;
}

.kg-embed-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.kg-callout-card.kg-card {
    border: 1px solid var(--rule);
    border-radius: var(--r-card);
}

.kg-callout-card.kg-callout-card-grey,
.kg-callout-card.kg-callout-card-white {
    background: var(--card);
}

.kg-callout-card .kg-callout-text {
    color: var(--ink);
    font-size: 16px;
    line-height: 1.6;
}

.kg-card.kg-toggle-card {
    border: 1px solid var(--rule);
    border-radius: var(--r-card);
    background: var(--card);
    box-shadow: none;
}

.kg-card.kg-toggle-card .kg-toggle-heading-text {
    color: var(--ink);
    font-size: 17px;
    font-weight: 500;
}

.kg-card.kg-button-card .kg-btn {
    height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
}

.kg-bookmark-card .kg-bookmark-container {
    overflow: hidden;
    border: 1px solid var(--rule);
    border-radius: var(--r-card);
}

.kg-bookmark-card a.kg-bookmark-container,
.kg-bookmark-card a.kg-bookmark-container:hover {
    background: var(--card) !important;
    color: var(--ink) !important;
    text-decoration: none;
}

.kg-bookmark-card .kg-bookmark-title {
    font-size: 15px;
    font-weight: 500;
}

.kg-bookmark-card .kg-bookmark-description,
.kg-bookmark-card .kg-bookmark-metadata {
    color: var(--sub);
}

.kg-header-card h2.kg-header-card-header {
    font-weight: 700;
    letter-spacing: -.025em;
}

.kg-product-card.kg-card .kg-product-card-container,
.kg-file-card.kg-card .kg-file-card-container,
.kg-audio-card,
.kg-signup-card {
    border-radius: var(--r-card);
}

/* 12. Sign-up and footer
/* ---------------------------------------------------------- */

.dg-signup {
    position: relative;
    margin-top: 56px;
    padding: 32px;
    overflow: hidden;
    border: 1px solid var(--rule);
    border-radius: var(--r-hero);
    background: var(--card);
}

.dg-signup .dg-two-tone {
    position: relative;
    z-index: 1;
    max-width: 440px;
    font-size: 28px;
    line-height: 1.1;
}

/* The Volt arrow, cropped at the corner */
.dg-signup::after {
    content: "";
    position: absolute;
    right: -36px;
    bottom: -64px;
    width: 220px;
    height: 208px;
    background: var(--volt);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 483'%3E%3Cpath d='M483.307 0L512 286.956L417.103 223.977L0 483L227.305 98.0224L132.408 35.0446L483.307 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 483'%3E%3Cpath d='M483.307 0L512 286.956L417.103 223.977L0 483L227.305 98.0224L132.408 35.0446L483.307 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
    pointer-events: none;
}

.dg-light .dg-signup::after {
    background: var(--ink);
}

.dg-form {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 460px;
    margin-top: 24px;
}

.dg-input {
    flex: 1 1 220px;
    min-width: 0;
    height: 44px;
    padding: 0 18px;
    border: 1px solid var(--ghost);
    border-radius: 999px;
    background: var(--bg);
    color: var(--ink);
    font-size: 15px;
    transition: border-color .15s ease;
}

.dg-input::placeholder {
    color: var(--muted);
}

.dg-input:focus {
    outline: none;
    border-color: var(--sub);
}

.dg-form .dg-pill {
    flex: none;
    min-width: 136px;
}

.dg-form-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dg-form-loading,
.dg-form-sent {
    display: none;
}

.dg-form-loading svg {
    width: 20px;
    height: 20px;
}

.dg-form.loading .dg-form-label,
.dg-form.success .dg-form-label {
    display: none;
}

.dg-form.loading .dg-form-loading,
.dg-form.success .dg-form-sent {
    display: inline;
}

.dg-form-error {
    flex-basis: 100%;
    color: var(--loss);
    font-size: 13px;
}

.dg-form-error:empty {
    display: none;
}

.dg-foot {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px 48px;
    align-items: start;
    width: 100%;
    max-width: 1600px;
    margin: 96px auto 0;
    padding: 24px 0 32px;
    border-top: 1px solid var(--rule);
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.dg-foot-disclosure {
    max-width: 760px;
}

.dg-foot-nav .nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dg-foot-nav a {
    color: var(--sub);
    font-size: 13px;
    transition: color .15s ease;
}

.dg-foot-nav a:hover {
    color: var(--ink);
}

@media (max-width: 767px) {
    .dg-signup {
        padding: 24px 20px 28px;
    }

    .dg-signup .dg-two-tone {
        font-size: 24px;
    }

    .dg-signup::after {
        right: -30px;
        bottom: -50px;
        width: 140px;
        height: 132px;
    }

    .dg-foot {
        grid-template-columns: minmax(0, 1fr);
        margin-top: 64px;
    }
}

/* 13. Showcase template
/* ---------------------------------------------------------- */

/* Pictures only, full width of the main column, stacked with even gaps */
.dg-showcase {
    padding-top: 8px;
}

.dg-showcase .gh-content > * + * {
    margin-top: 48px !important;
}

.dg-showcase .gh-content .kg-card,
.dg-showcase .gh-content .kg-width-wide,
.dg-showcase .gh-content .kg-width-full {
    margin-right: 0;
}

.dg-showcase .kg-image-card img {
    width: 100%;
    border-radius: 0;
}

@media (max-width: 767px) {
    .dg-showcase .gh-content > * + * {
        margin-top: 24px !important;
    }
}

/* assets/css/layouts.css */
/* Homepage layouts: Front page, Sections, Index
   Used by variant-front.hbs, variant-sections.hbs and variant-index.hbs (route them in routes.yaml).
*/

.dg-kick {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--sub);
    font-size: 13px;
    font-weight: 500;
}

.dg-topic {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
}

.dg-dot.is-lg {
    width: 12px;
    height: 12px;
}

.dg-grid.is-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Front page: lead story, then a single column grouped by month */
.dg-front-lead {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 44px;
    align-items: center;
    padding: 8px 0 56px;
    border-bottom: 1px solid var(--rule);
}

.dg-front-lead .dg-media {
    border-radius: var(--r-hero);
}

.dg-front-lead-title {
    margin-top: 16px;
    color: var(--ink);
    font-size: 44px;
    line-height: 1.06;
    letter-spacing: -.028em;
    text-wrap: balance;
}

.dg-front-lead-title a:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}

.dg-front-lead-excerpt {
    margin-top: 16px;
    color: var(--sub);
    font-size: 18px;
    line-height: 1.5;
    text-wrap: pretty;
}

.dg-front-by {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    color: var(--sub);
    font-size: 14px;
}

.dg-front-by .dg-avatar {
    width: 28px;
    height: 28px;
}

.dg-front-by .dg-avatar .dg-mark {
    width: 11px;
}

.dg-front-lead .dg-pill {
    margin-top: 26px;
}

.dg-front-feed {
    max-width: 1000px;
    margin: 56px auto 0;
}

.dg-month {
    margin-top: 40px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--rule);
    color: var(--ink);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.01em;
}

.dg-front-row-link {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 232px;
    gap: 28px;
    align-items: start;
    padding: 26px 0;
    border-bottom: 1px solid var(--rule);
}

.dg-front-row-date {
    padding-top: 2px;
    color: var(--sub);
    font-size: 13px;
}

.dg-front-row-title {
    margin-top: 8px;
    color: var(--ink);
    font-size: 22px;
    line-height: 1.25;
    letter-spacing: -.015em;
}

.dg-front-row-link:hover .dg-front-row-title {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.dg-front-row-excerpt {
    display: -webkit-box;
    margin-top: 8px;
    overflow: hidden;
    color: var(--sub);
    font-size: 15px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.dg-front-by.is-small {
    margin-top: 14px;
    font-size: 13px;
}

.dg-front-by.is-small .dg-avatar {
    width: 22px;
    height: 22px;
}

.dg-front-by.is-small .dg-avatar .dg-mark {
    width: 9px;
}

.dg-front-row-thumb {
    border-radius: var(--r-tile);
}

/* Sections: top story with two runners-up, then a row per topic */
.dg-top3 {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 32px;
    padding: 8px 0 56px;
    border-bottom: 1px solid var(--rule);
}

.dg-top3-lead {
    grid-row: span 2;
}

.dg-top3-link {
    display: block;
}

.dg-top3-lead .dg-media {
    border-radius: var(--r-hero);
}

.dg-top3-lead .dg-kick {
    margin-top: 20px;
}

.dg-top3-title {
    margin-top: 10px;
    color: var(--ink);
    font-size: 40px;
    line-height: 1.08;
    letter-spacing: -.026em;
    text-wrap: balance;
}

.dg-top3-link:hover .dg-top3-title {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}

.dg-top3-excerpt {
    max-width: 720px;
    margin-top: 12px;
    color: var(--sub);
    font-size: 17px;
    line-height: 1.5;
}

.dg-topic-row {
    padding-top: 56px;
}

.dg-topic-head {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 22px;
}

.dg-topic-head .dg-dot {
    flex: none;
    transform: translateY(-2px);
}

.dg-topic-head .dg-two-tone {
    flex: 1;
    max-width: 900px;
}

.dg-topic-all {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    color: var(--sub);
    font-size: 14px;
    font-weight: 500;
    transition: color .15s ease;
}

.dg-topic-all:hover {
    color: var(--ink);
}

/* Index: dense ruled list with filters, a List/Grid switch and a cover on hover */
.dg-idx-head {
    padding: 32px 0 8px;
}

.dg-idx-label {
    margin-bottom: 14px;
    color: var(--sub);
    font-size: 13px;
    font-weight: 500;
}

.dg-idx-featured {
    margin-top: 40px;
}

.dg-idx-all {
    margin-top: 56px;
}

.dg-idx-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--rule);
}

.dg-idx-bar .dg-idx-label {
    margin: 0 8px 0 0;
}

.dg-idx-filters,
.dg-idx-views {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.dg-idx-views {
    margin-left: auto;
}

.dg-idx-filters button,
.dg-idx-views button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 30px;
    padding: 0 12px;
    border: 1px solid var(--rule);
    border-radius: var(--r-chip);
    color: var(--sub);
    font-size: 13px;
    font-weight: 500;
    transition: background-color .15s ease, color .15s ease;
}

.dg-idx-filters button:hover,
.dg-idx-views button:hover {
    color: var(--ink);
}

.dg-idx-filters button.is-active,
.dg-idx-views button.is-active {
    border-color: var(--ghost);
    background: var(--card2);
    color: var(--ink);
}

.dg-idx-row {
    position: relative;
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr) 170px 72px;
    gap: 24px;
    align-items: baseline;
    padding: 17px 10px;
    border-bottom: 1px solid var(--rule);
    color: var(--ink);
    transition: background-color .15s ease;
}

a.dg-idx-row:hover {
    background: var(--card);
}

.dg-idx-row.is-head {
    padding-top: 12px;
    padding-bottom: 12px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
}

.dg-idx-row time {
    color: var(--sub);
    font-size: 13px;
}

.dg-idx-title {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -.01em;
}

.dg-idx-topic {
    color: var(--sub);
    font-size: 13px;
}

.dg-idx-read {
    color: var(--sub);
    font-size: 13px;
    text-align: right;
}

.dg-idx-peek {
    position: absolute;
    top: 50%;
    right: 290px;
    z-index: 5;
    width: 224px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50%);
    box-shadow: var(--shadow);
    pointer-events: none;
    transition: opacity .15s ease, visibility .15s ease;
}

a.dg-idx-row:hover .dg-idx-peek {
    opacity: 1;
    visibility: visible;
}

.dg-idx-list.is-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
    gap: 32px 20px;
    padding-top: 24px;
}

.dg-idx-list.is-grid .dg-idx-row.is-head {
    display: none;
}

.dg-idx-list.is-grid a.dg-idx-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0;
    border: 0;
    background: none;
}

.dg-idx-list.is-grid .dg-idx-peek {
    position: static;
    order: -1;
    width: 100%;
    margin-bottom: 8px;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
}

.dg-idx-list.is-grid .dg-idx-read {
    text-align: left;
}

@media (max-width: 1099px) {
    .dg-front-lead,
    .dg-top3 {
        grid-template-columns: minmax(0, 1fr);
    }

    .dg-top3-lead {
        grid-row: auto;
    }

    .dg-grid.is-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dg-idx-row {
        grid-template-columns: 104px minmax(0, 1fr) 72px;
    }

    .dg-idx-row .dg-idx-topic,
    .dg-idx-row.is-head span:nth-child(3) {
        display: none;
    }

    .dg-idx-list.is-grid .dg-idx-topic {
        display: block;
    }

    .dg-idx-peek {
        right: 120px;
    }
}

@media (max-width: 767px) {
    .dg-front-lead-title,
    .dg-top3-title {
        font-size: 32px;
    }

    .dg-front-lead-excerpt,
    .dg-top3-excerpt {
        font-size: 16px;
    }

    .dg-front-row-link {
        grid-template-columns: minmax(0, 1fr) 96px;
        gap: 16px;
        padding: 20px 0;
    }

    .dg-front-row-date,
    .dg-front-row-excerpt {
        display: none;
    }

    .dg-front-row-title {
        font-size: 18px;
    }

    .dg-front-row-thumb {
        aspect-ratio: 1;
    }

    /* A drawn cover is unreadable at thumbnail size: those rows go text-only, real pictures stay */
    .dg-front-row-link:has(.dg-cover) {
        grid-template-columns: minmax(0, 1fr);
    }

    .dg-front-row-thumb:has(.dg-cover) {
        display: none;
    }

    .dg-grid.is-3 {
        grid-template-columns: minmax(0, 1fr);
    }

    .dg-topic-head {
        flex-wrap: wrap;
        row-gap: 10px;
    }

    .dg-topic-head .dg-two-tone {
        flex: 1 1 calc(100% - 40px);
    }

    .dg-topic-all {
        margin-left: 26px;
    }

    .dg-idx-views {
        order: 1;
        margin-left: auto;
    }

    .dg-idx-filters {
        flex: 1 1 100%;
        flex-wrap: nowrap;
        order: 2;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .dg-idx-filters::-webkit-scrollbar {
        display: none;
    }

    .dg-idx-filters button {
        flex: none;
    }

    .dg-idx-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 4px 12px;
        padding: 14px 4px;
    }

    .dg-idx-row time {
        grid-column: 1 / -1;
        font-size: 12px;
    }

    .dg-idx-title {
        font-size: 16px;
    }

    .dg-idx-row.is-head,
    .dg-idx-peek {
        display: none;
    }

    .dg-idx-list.is-grid .dg-idx-peek {
        display: block;
    }
}

/* assets/css/lightbox.css */
/* 22. Lightbox
/* ---------------------------------------------------------- */

.pswp {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3999999;
    display: none;
    width: 100%;
    height: 100%;
    overflow: hidden;
    -ms-touch-action: none;
    touch-action: none;
    outline: none;
    backface-visibility: hidden;
    -webkit-text-size-adjust: 100%;
}

.pswp img {
    max-width: none;
}

.pswp--animate_opacity {
    opacity: 0.001;
    transition: opacity 333ms cubic-bezier(0.4, 0, 0.22, 1);
    will-change: opacity;
}

.pswp--open {
    display: block;
}

.pswp--zoom-allowed .pswp__img {
    cursor: zoom-in;
}

.pswp--zoomed-in .pswp__img {
    cursor: grab;
}

.pswp--dragging .pswp__img {
    cursor: grabbing;
}

.pswp__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    opacity: 0;
    transition: opacity 333ms cubic-bezier(0.4, 0, 0.22, 1);
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: opacity;
}

.pswp__scroll-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.pswp__container,
.pswp__zoom-wrap {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    touch-action: none;
    backface-visibility: hidden;
}

.pswp__container,
.pswp__img {
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

.pswp__zoom-wrap {
    position: absolute;
    width: 100%;
    transition: transform 333ms cubic-bezier(0.4, 0, 0.22, 1);
    transform-origin: left top;
}

.pswp--animated-in .pswp__bg,
.pswp--animated-in .pswp__zoom-wrap {
    transition: none;
}

.pswp__item {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
}

.pswp__img {
    position: absolute;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
}

.pswp__img--placeholder {
    backface-visibility: hidden;
}

.pswp__img--placeholder--blank {
    background: var(--color-black);
}

.pswp--ie .pswp__img {
    top: 0;
    left: 0;
    width: 100% !important;
    height: auto !important;
}

.pswp__error-msg {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    margin-top: -8px;
    font-size: 14px;
    line-height: 16px;
    color: var(--color-secondary-text);
    text-align: center;
}

.pswp__error-msg a {
    color: var(--color-secondary-text);
    text-decoration: underline;
}

.pswp__button {
    position: relative;
    display: block;
    float: right;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    overflow: visible;
    appearance: none;
    cursor: pointer;
    background: none;
    border: 0;
    box-shadow: none;
    transition: opacity 0.2s;
}

.pswp__button:focus,
.pswp__button:hover {
    opacity: 1;
}

.pswp__button:active {
    outline: none;
    opacity: 0.9;
}

.pswp__button::-moz-focus-inner {
    padding: 0;
    border: 0;
}

.pswp__ui--over-close .pswp__button--close {
    opacity: 1;
}

.pswp__button,
.pswp__button--arrow--left::before,
.pswp__button--arrow--right::before {
    width: 44px;
    height: 44px;
    background: url("../images/default-skin.png") 0 0 no-repeat;
    background-size: 264px 88px;
}

@media (-webkit-min-device-pixel-ratio: 1.1), (-webkit-min-device-pixel-ratio: 1.09375), (min-resolution: 105dpi), (min-resolution: 1.1dppx) {
    .pswp--svg .pswp__button,
    .pswp--svg .pswp__button--arrow--left::before,
    .pswp--svg .pswp__button--arrow--right::before {
        background-image: url("../images/default-skin.svg");
    }

    .pswp--svg .pswp__button--arrow--left,
    .pswp--svg .pswp__button--arrow--right {
        background: none;
    }
}

.pswp__button--close {
    background-position: 0 -44px;
}

.pswp__button--share {
    background-position: -44px -44px;
}

.pswp__button--fs {
    display: none;
}

.pswp--supports-fs .pswp__button--fs {
    display: block;
}

.pswp--fs .pswp__button--fs {
    background-position: -44px 0;
}

.pswp__button--zoom {
    display: none;
    background-position: -88px 0;
}

.pswp--zoom-allowed .pswp__button--zoom {
    display: block;
}

.pswp--zoomed-in .pswp__button--zoom {
    background-position: -132px 0;
}

.pswp--touch .pswp__button--arrow--left,
.pswp--touch .pswp__button--arrow--right {
    visibility: hidden;
}

.pswp__button--arrow--left,
.pswp__button--arrow--right {
    position: absolute;
    top: 50%;
    width: 70px;
    height: 100px;
    margin-top: -50px;
    background: none;
}

.pswp__button--arrow--left {
    left: 0;
}

.pswp__button--arrow--right {
    right: 0;
}

.pswp__button--arrow--left::before,
.pswp__button--arrow--right::before {
    position: absolute;
    top: 35px;
    width: 32px;
    height: 30px;
    content: "";
}

.pswp__button--arrow--left::before {
    left: 6px;
    background-position: -138px -44px;
}

.pswp__button--arrow--right::before {
    right: 6px;
    background-position: -94px -44px;
}

.pswp__counter {
    position: absolute;
    top: 0;
    left: 0;
    height: 44px;
    padding: 0 15px;
    font-size: 11px;
    font-weight: 700;
    line-height: 44px;
    color: var(--color-white);
    user-select: none;
}

.pswp__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    min-height: 44px;
}

.pswp__caption__center {
    max-width: 420px;
    padding: 25px 15px 30px;
    margin: 0 auto;
    font-size: 11px;
    line-height: 1.6;
    color: var(--color-white);
    text-align: center;
}

.pswp__caption__center .post-caption-title {
    margin-bottom: 7px;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
}

.pswp__caption__center .post-caption-meta-item + .post-caption-meta-item::before {
    padding: 0 4px;
    content: "\02022";
}

.pswp__caption--empty {
    display: none;
}

.pswp__caption--fake {
    visibility: hidden;
}

.pswp__preloader {
    position: absolute;
    top: 0;
    left: 50%;
    width: 44px;
    height: 44px;
    margin-left: -22px;
    opacity: 0;
    transition: opacity 0.25s ease-out;
    direction: ltr;
    will-change: opacity;
}

.pswp__preloader__icn {
    width: 20px;
    height: 20px;
    margin: 12px;
}

.pswp__preloader--active {
    opacity: 1;
}

.pswp__preloader--active .pswp__preloader__icn {
    background: url("../images/preloader.gif") 0 0 no-repeat;
}

.pswp--css_animation .pswp__preloader--active {
    opacity: 1;
}

.pswp--css_animation .pswp__preloader--active .pswp__preloader__icn {
    animation: clockwise 500ms linear infinite;
}

.pswp--css_animation .pswp__preloader--active .pswp__preloader__donut {
    animation: donut-rotate 1000ms cubic-bezier(0.4, 0, 0.22, 1) infinite;
}

.pswp--css_animation .pswp__preloader__icn {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 14px;
    height: 14px;
    margin: 0;
    background: none;
    opacity: 0.75;
}

.pswp--css_animation .pswp__preloader__cut {
    position: relative;
    width: 7px;
    height: 14px;
    overflow: hidden;
}

.pswp--css_animation .pswp__preloader__donut {
    position: absolute;
    top: 0;
    left: 0;
    box-sizing: border-box;
    width: 14px;
    height: 14px;
    margin: 0;
    background: none;
    border: 2px solid var(--color-white);
    border-bottom-color: transparent;
    border-left-color: transparent;
    border-radius: 50%;
}

@media screen and (max-width: 1024px) {
    .pswp__preloader {
        position: relative;
        top: auto;
        left: auto;
        float: right;
        margin: 0;
    }
}

@keyframes clockwise {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes donut-rotate {
    0% {
        transform: rotate(0);
    }

    50% {
        transform: rotate(-140deg);
    }

    100% {
        transform: rotate(0);
    }
}

.pswp__ui {
    z-index: 1550;
    visibility: visible;
    opacity: 1;
    -webkit-font-smoothing: auto;
}

.pswp__top-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 44px;
}

.pswp__caption,
.pswp__top-bar,
.pswp--has_mouse .pswp__button--arrow--left,
.pswp--has_mouse .pswp__button--arrow--right {
    backface-visibility: hidden;
    transition: opacity 333ms cubic-bezier(0.4, 0, 0.22, 1);
    will-change: opacity;
}

.pswp--has_mouse .pswp__button--arrow--left,
.pswp--has_mouse .pswp__button--arrow--right {
    visibility: visible;
}

.pswp__ui--idle .pswp__top-bar {
    opacity: 0;
}

.pswp__ui--idle .pswp__button--arrow--left,
.pswp__ui--idle .pswp__button--arrow--right {
    opacity: 0;
}

.pswp__ui--hidden .pswp__top-bar,
.pswp__ui--hidden .pswp__caption,
.pswp__ui--hidden .pswp__button--arrow--left,
.pswp__ui--hidden .pswp__button--arrow--right {
    opacity: 0.001;
}

.pswp__ui--one-slide .pswp__button--arrow--left,
.pswp__ui--one-slide .pswp__button--arrow--right,
.pswp__ui--one-slide .pswp__counter {
    display: none;
}

.pswp__element--disabled {
    display: none !important;
}

.pswp--minimal--dark .pswp__top-bar {
    background: none;
}

/* SHARE */
.gh-meta-share {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
}

.has-light-text .gh-button-share {
    border-color: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.85);
}

.has-light-text .gh-button-share:hover {
    border-color: rgba(255, 255, 255, 0.85);
}

.gh-button-share {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 999px;
    color: rgba(0, 0, 0, 0.85);
    background: transparent;
    cursor: pointer;
    transition: all 0.4s ease;
}

.gh-button-share:hover {
    border-color: rgba(0, 0, 0, 0.5);
}
