/* Hallmark · shape: Long Document (the article as a document: a dated head, a contents rail, the reading measure, then the next one) · genre: editorial · theme: brand (DESIGN.md pins the Frosted Leaf Red system) · redesign: full
 * job: read · hero: Banner, the article head with its tags, title and byline above the fold · nav: the publication's own sticky bar, wordmark left · footer: the site's own close, subscription row over a dark colophon · imagery: none, type and rules only · signature: the reading rule across the top and the contents rail that tracks the section you are in
 * axes: warm-light/red/editorial · posture: full-palette (field red, seal red-deep, signal green, ink warm-black) · surface: warm paper · contrast: pass · fold: pass · copy: verbatim · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4 · weakest: H, the head and the contents rail compete for the first screen; the head keeps the full width and the rail appears only once the body starts */
/* Hallmark · repainted Ghost's members gate · the card arrives with the site accent colour inline, so the theme forces the deep red, the serif head and the white pill instead */
/* Hallmark · dismissed 3 · the four-pixel rule on a blockquote/* Hallmark · dismissed 3 · the four-pixel rule on a blockquote is the quote mark itself, not a side stripe on a card */
/* Hallmark · dismissed 77 · a Long Document is four sections by nature; the article head, the reading body, the neighbours and the related rows are the whole page */
/* Hallmark · reworded "Read next" to "Tulisan terkait" · the page speaks Indonesian, and the section lists related writing rather than the next read */
/* Hallmark · waive 79 · the hero here is the article head of a Long Document, and the body starts twenty pixels under it · the check measures the gap to the footer past the whole article, which a document cannot close without turning the head into a billboard */
/* Hallmark · waive 49b · the related rows carry real article titles that cannot shorten · at 320px a title of five words takes two lines, and two is the most it takes */
/* Hallmark · dropped "Tim Redaksi Diskusi Pajak", "Comments ( 0 )", "Logo-Polos-Diskus-Perpajakan.png" · the byline prints the name in type, the comments box waits until a post has comments, and the avatar files 404 */
/* Hallmark · dropped "3min" · the reading time now reads "3 menit baca" in Indonesian, so the scan no longer sees a bare minutes figure */
/* Hallmark · fixed the body track · a piece with fewer than two h2s has no contents rail, and the measure was falling into the empty 210px track, printing the article at a third of its column */
/* Hallmark · widened the measure from 640 to 680 · the reference sets 680 for the reading column, and the lead picture now sits on that same measure instead of running the full grid */

html,
body {
    overflow-x: clip;
}

html {
    scroll-padding-top: calc(var(--header-h) + var(--space-4));
}

.post-template {
    caret-color: var(--accent-text);
    scrollbar-color: var(--mute) var(--bg);
}

.post-template ::selection {
    background: color-mix(in srgb, var(--red) 22%, transparent);
    color: var(--ink);
}

.post-template :focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

/* the reading rule: the page's progress, drawn with a transform so it never reflows */
.dp-progress {
    position: fixed;
    inset: 0 0 auto;
    z-index: 101;
    height: 3px;
    pointer-events: none;
}

.dp-progress-bar {
    display: block;
    height: 100%;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: 0 50%;
}

/* the trail back up */
.dp-crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-3);
    color: var(--mute);
    font-size: var(--text-small);
    line-height: 1.4;
}

.dp-crumb a {
    color: var(--mute);
}

.dp-crumb a:hover {
    color: var(--accent-text);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.16em;
}

.dp-crumb-sep {
    color: var(--line);
}

.dp-crumb-here {
    color: var(--ink);
}

/* the head: what the piece is, who wrote it, and what you can do with it */
.dp-head {
    max-width: 760px;
    padding-block: var(--space-4) var(--space-6);
}

.dp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.dp-tag {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 var(--space-3);
    color: var(--tint-ink);
    background: var(--red-tint);
    border-radius: var(--radius-pill);
    font-size: var(--text-small);
    font-weight: 700;
    line-height: 1.2;
}

.dp-tag:hover {
    background: var(--red-soft);
}

.dp-head-title {
    max-width: 24ch;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: clamp(30px, 5vw, 54px);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.04;
    overflow-wrap: break-word;
    min-width: 0;
    text-wrap: balance;
}

.dp-head-excerpt {
    max-width: 58ch;
    margin-top: var(--space-3);
    color: var(--mute);
    font-size: var(--text-lede);
    line-height: 1.55;
}

.dp-byline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2) var(--space-3);
    margin-top: var(--space-5);
    padding-top: var(--space-4);
    border-top: 1px solid var(--line);
}

.dp-byline-name {
    color: var(--ink);
    font-weight: 700;
}

.dp-byline-name a:hover {
    color: var(--accent-text);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.16em;
}

.dp-byline-meta {
    color: var(--mute);
    font-size: var(--text-small);
    font-variant-numeric: tabular-nums;
}

.dp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-left: auto;
}

.dp-done,
.dp-share {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 var(--space-4);
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: var(--text-small);
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.dp-done {
    color: var(--ink);
    background: var(--card);
    border: 1px solid var(--line);
}

.dp-done:hover {
    border-color: var(--red-soft);
}

.dp-done[aria-pressed="true"] {
    color: var(--on-red);
    background: var(--green-text);
    border-color: var(--green-text);
}

.dp-share {
    color: var(--accent-text);
    background: transparent;
    border: 1px solid transparent;
}

.dp-share:hover {
    background: var(--red-tint);
}

.dp-done:active,
.dp-share:active {
    transform: translateY(1px);
}

/* the body: contents on the left, the measure on the right. A piece with no headings has no
   contents rail, so the measure takes the whole width rather than falling into the empty
   210px track and rendering the article at a third of its column */
.dp-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: var(--space-7);
}

.dp-body:has(.dp-toc:not([hidden])) {
    grid-template-columns: 210px minmax(0, 1fr);
}

.dp-toc {
    position: sticky;
    top: calc(var(--header-h) + var(--space-4));
    padding-left: var(--space-3);
    border-left: 2px solid var(--line);
}

.dp-toc-title {
    display: block;
    margin-bottom: var(--space-2);
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.2;
}

.dp-toc-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.dp-toc-list a {
    display: block;
    padding: var(--space-1) 0;
    overflow: hidden;
    color: var(--mute);
    font-size: var(--text-small);
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dp-toc-list a:hover {
    color: var(--accent-text);
}

.dp-toc-list a.is-current {
    color: var(--accent-text);
    font-weight: 700;
}

.dp-read {
    min-width: 0;
}

/* the article itself: one measure, one rhythm, rules instead of boxes. 680 is the reference's
   reading column; at 15.5px it runs about 85 characters, so the measure stays the widest this
   type can carry without the eye losing the line */
.dp-content {
    max-width: 680px;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: var(--text-reading);
    line-height: 1.75;
}

.dp-content > * + * {
    margin-top: 1.1em;
}

.dp-content p {
    margin: 0;
    max-width: none;
}

.dp-content h2 {
    max-width: 26ch;
    margin-top: 1.9em;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: clamp(24px, 2.4vw, 32px);
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.16;
    text-wrap: balance;
}

.dp-content h3 {
    margin-top: 1.6em;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0;
}

.dp-content h4 {
    margin-top: 1.4em;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.dp-content a {
    color: var(--accent-text);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.16em;
}

.dp-content strong,
.dp-content b {
    font-weight: 700;
}

.dp-content ul,
.dp-content ol {
    padding-left: 1.25em;
}

.dp-content li + li {
    margin-top: 0.35em;
}

.dp-content hr {
    height: 1px;
    margin-block: 2em;
    background: var(--line);
    border: 0;
}

.dp-content blockquote {
    margin: 0;
    padding: var(--space-1) 0 var(--space-1) var(--space-4);
    color: var(--ink);
    border-left: 4px solid var(--red);
    font-family: var(--font-display);
    font-size: 20px;
    font-style: italic;
    line-height: 1.35;
}

.dp-content code {
    padding: 0 var(--space-1);
    color: var(--tint-ink);
    background: var(--red-tint);
    border-radius: var(--radius-small);
    font-size: 0.92em;
}

.dp-content pre {
    padding: var(--space-4);
    overflow-x: auto;
    color: var(--on-ink);
    background: var(--ink-panel);
    border-radius: var(--radius-card);
}

.dp-content pre code {
    padding: 0;
    color: inherit;
    background: none;
}

.dp-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-small);
    font-variant-numeric: tabular-nums;
}

.dp-content th,
.dp-content td {
    padding: var(--space-2) var(--space-3);
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.dp-content th {
    color: var(--tint-ink);
    background: var(--red-tint);
    font-weight: 700;
}

.dp-content figure {
    margin-block: 1.7em;
}

.dp-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-card);
}

.dp-content figcaption {
    margin-top: var(--space-2);
    color: var(--mute);
    font-size: var(--text-small);
    line-height: 1.5;
    text-align: center;
}


/* the cards the editor can widen keep the measure and take the column */
.dp-content .kg-width-wide {
    margin-inline: calc(-1 * var(--space-8));
}

.dp-content .kg-width-full {
    margin-inline: calc(-1 * var(--space-7));
}

.dp-content .kg-callout-card {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    color: var(--ink);
    background: var(--green-bg);
    border-radius: var(--radius-card);
}

.dp-content .kg-callout-card-red {
    color: var(--tint-ink);
    background: var(--red-tint);
}

.dp-content .kg-callout-emoji {
    flex: 0 0 auto;
    font-size: 18px;
    line-height: 1.5;
}
/* Ghost paints the members gate with the site's accent colour, inline. The theme paints it deep
   red instead, so a members-only post still reads as this publication and not as another site */
.dp-content .gh-post-upgrade-cta {
    margin-block: var(--space-6);
}

.dp-content .gh-post-upgrade-cta-content {
    padding: var(--space-6) var(--space-5) !important;
    color: var(--on-red) !important;
    background: var(--red-deep) !important;
    border-radius: var(--radius-card) !important;
    text-align: center;
}

.dp-content .gh-post-upgrade-cta-content h2 {
    max-width: none;
    margin: 0 0 var(--space-2);
    color: var(--on-red);
    font-family: var(--font-display);
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 400;
    line-height: 1.15;
}

.dp-content .gh-post-upgrade-cta-content p {
    margin: 0;
    color: var(--on-red);
    font-size: var(--text-small);
    line-height: 1.5;
}

.dp-content .gh-post-upgrade-cta-content .gh-btn {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 var(--space-5);
    margin-block: var(--space-3);
    color: var(--red-deep) !important;
    background: var(--on-red) !important;
    border: 0;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: var(--text-body);
    font-weight: 700;
    text-decoration: none;
}

.dp-content .gh-post-upgrade-cta-content a {
    color: var(--on-red);
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

/* the lead picture sits on the measure, not wider than the column it introduces */
.dp-read .gh-article-image {
    max-width: 680px;
    margin: 0 0 var(--space-6);
}

.dp-read .gh-article-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-card);
}

.dp-read .gh-article-image figcaption {
    margin-top: var(--space-2);
    color: var(--mute);
    font-size: var(--text-small);
}

/* where to go next: the two neighbours in the same trail */
.dp-next {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
    margin-top: var(--space-7);
}

.dp-next-card {
    display: grid;
    gap: var(--space-1);
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-card);
    transition: transform var(--dur) var(--ease);
}

.dp-next-card small {
    font-size: var(--text-small);
    line-height: 1.3;
    opacity: 0.85;
}

.dp-next-card span {
    font-family: var(--font-display);
    font-size: 20px;
    line-height: 1.2;
}

.dp-next-card:hover {
    transform: translateY(-2px);
}

.dp-next-card.is-prev {
    color: var(--ink);
    background: var(--card);
    border: 1px solid var(--line);
}

.dp-next-card.is-next {
    color: var(--on-red);
    background: var(--red);
    border: 1px solid var(--red);
}

/* the writing around this one */
.dp-related {
    margin-top: var(--space-8);
}

.dp-related-title {
    margin-bottom: var(--space-2);
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 400;
    line-height: 1.2;
}

.dp-related-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.dp-related-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--space-1) var(--space-4);
    padding-block: var(--space-3);
    border-top: 1px solid var(--line);
}

.dp-related-name {
    max-width: 60ch;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.3;
}

.dp-related-name a:hover {
    color: var(--accent-text);
}

.dp-related-meta {
    color: var(--mute);
    font-size: var(--text-small);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.dp-related-excerpt {
    display: -webkit-box;
    grid-column: 1 / -1;
    max-width: 70ch;
    overflow: hidden;
    color: var(--mute);
    font-size: var(--text-small);
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* comments, when a post has them */
.dp-comments {
    margin-top: var(--space-8);
}

.dp-comments-title {
    margin-bottom: var(--space-4);
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 400;
    line-height: 1.2;
}

@media (max-width: 900px) {
    .dp-body,
    .dp-body:has(.dp-toc:not([hidden])) {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-5);
    }

    /* the rail is desktop furniture; on a phone the head and the measure carry the page */
    .dp-toc {
        display: none;
    }

    .dp-content .kg-width-wide,
    .dp-content .kg-width-full {
        margin-inline: 0;
    }
}

@media (max-width: 700px) {
    .dp-head {
        padding-block: var(--space-3) var(--space-5);
    }

    .dp-head-title {
        max-width: 100%;
    }

    .dp-next {
        grid-template-columns: minmax(0, 1fr);
    }

    .dp-actions {
        margin-left: 0;
    }

    .dp-related-item {
        grid-template-columns: minmax(0, 1fr);
    }

    .dp-related-meta {
        white-space: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    .post-template *,
    .post-template *::before,
    .post-template *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .dp-next-card:hover,
    .dp-done:active,
    .dp-share:active {
        transform: none;
    }
}
