/* ==========================================================================
   SocialHub — Discovery surfaces (Explore, Search, Reels, Blog)
   Mobile-first. Everything here is prefixed `sh-dc-` and only extends the
   shared vocabulary in sh-components.css / sh-app.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Shared bits
   -------------------------------------------------------------------------- */

.sh-dc-chiprow {
    padding-bottom: 2px;
}

/* Ten scopes do not fit one row. `.sh-scroll-x` hides its scrollbar,
   which is right for a thumb and leaves a mouse no way to reach the
   last chips — the strip ended mid-"Blog" and Hashtags was
   unreachable. The same fix as the profile tab strip: wrap from 768,
   and only when they genuinely do not fit. Below that it still
   scrolls, which is the correct affordance on a phone. */
@media (min-width: 768px) {
    .sh-dc-chiprow {
        flex-wrap: wrap;
        overflow-x: visible;
    }
}

.sh-dc-chip-count {
    margin-inline-start: 2px;
    padding: 1px 6px;
    border-radius: var(--sh-radius-pill);
    background: rgba(15, 23, 42, 0.08);
    font-size: var(--sh-fs-2xs);
    font-weight: var(--sh-fw-bold);
}

.sh-chip.is-active .sh-dc-chip-count {
    background: rgba(255, 255, 255, 0.24);
}

/* Sort tabs sit in a flat card so they read as one band. */
.sh-dc-tabcard {
    padding: 0 var(--sh-sp-2);
}

.sh-dc-activefilter {
    display: flex;
    align-items: center;
    gap: var(--sh-sp-2);
    flex-wrap: wrap;
    margin: 0;
    font-size: var(--sh-fs-sm);
}

.sh-dc-backrow {
    flex-wrap: wrap;
}

.sh-dc-grid {
    align-items: start;
}

.sh-dc-stat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: var(--sh-fs-xs);
    font-weight: var(--sh-fw-semibold);
    color: var(--sh-text-muted);
    white-space: nowrap;
}

.sh-dc-stat svg {
    width: 15px;
    height: 15px;
}

.sh-dc-result-text {
    display: block;
    margin-top: 4px;
    font-size: var(--sh-fs-sm);
    color: var(--sh-text-muted);
    /* `anywhere` here too: it sits in a flex row body and drops that
       column's min-content width to one character. See the note in
       CLAUDE.md — this is the fourth place it had been written. */
    overflow-wrap: break-word;
}

/* -- Search result rows ---------------------------------------------------- */

/* A reel is 9:16, so its thumbnail is: a square crop of a vertical
   video is mostly somebody's chin. */
.sh-dc-thumb-reel {
    position: relative;
    width: 54px;
    height: 96px;
}

/* Marks the row as a video without needing a second column for it. */
.sh-dc-thumb-play {
    position: absolute;
    inset-inline-end: 4px;
    bottom: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--sh-media-scrim);
    color: var(--sh-white);
}

.sh-dc-thumb-play svg {
    width: 11px;
    height: 11px;
}

/* A hashtag has no picture, so the tile carries the glyph instead of an
   empty grey square. */
.sh-dc-tagmark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--sh-primary-50);
    color: var(--sh-primary-600);
}

.sh-dc-tagmark svg {
    width: 20px;
    height: 20px;
}

.sh-dc-result-price {
    color: var(--sh-text-strong);
    font-weight: var(--sh-fw-semibold);
}

.sh-dc-searchform {
    display: flex;
    align-items: center;
    gap: var(--sh-sp-2);
}

.sh-dc-tagcloud {
    gap: var(--sh-sp-2);
}

/* --------------------------------------------------------------------------
   Explore — hero banner
   -------------------------------------------------------------------------- */

.sh-dc-hero {
    position: relative;
    border-radius: var(--sh-radius-lg);
    overflow: hidden;
    background: var(--sh-gray-900);
    isolation: isolate;
}

.sh-dc-hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.sh-dc-hero-body {
    position: relative;
    padding: var(--sh-sp-6) var(--sh-sp-5);
    background: linear-gradient(
        100deg,
        rgba(9, 14, 30, 0.88) 0%,
        rgba(9, 14, 30, 0.72) 45%,
        rgba(9, 14, 30, 0.25) 100%
    );
    color: var(--sh-text-inverse);
}

.sh-dc-hero-eyebrow {
    margin: 0;
    font-size: var(--sh-fs-xs);
    font-weight: var(--sh-fw-bold);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.sh-dc-hero-title {
    margin: var(--sh-sp-2) 0 0;
    font-size: var(--sh-fs-3xl);
    font-weight: var(--sh-fw-extrabold);
    line-height: var(--sh-lh-tight);
    letter-spacing: -0.02em;
    color: var(--sh-text-inverse);
}

.sh-dc-hero-text {
    margin: var(--sh-sp-3) 0 var(--sh-sp-5);
    max-width: 46ch;
    font-size: var(--sh-fs-base);
    line-height: var(--sh-lh-normal);
    color: rgba(255, 255, 255, 0.85);
}

/* --------------------------------------------------------------------------
   Explore — trending hashtag tiles
   -------------------------------------------------------------------------- */

.sh-dc-tagtile {
    display: block;
    width: 112px;
}

.sh-dc-tagtile-media {
    border-radius: var(--sh-radius);
    border: 2px solid transparent;
}

.sh-dc-tagtile.is-active .sh-dc-tagtile-media {
    border-color: var(--sh-primary-600);
}

.sh-dc-tagtile-name {
    display: block;
    margin-top: var(--sh-sp-2);
    font-size: var(--sh-fs-sm);
    font-weight: var(--sh-fw-bold);
    color: var(--sh-text-strong);
    overflow-wrap: anywhere;
}

.sh-dc-tagtile-meta {
    display: block;
    font-size: var(--sh-fs-xs);
    color: var(--sh-text-muted);
}

/* --------------------------------------------------------------------------
   Explore — compact post tile
   -------------------------------------------------------------------------- */

.sh-dc-post {
    display: flex;
    flex-direction: column;
}

.sh-dc-post-head {
    display: flex;
    align-items: center;
    gap: var(--sh-sp-2);
    padding: var(--sh-sp-3);
    min-width: 0;
}

.sh-dc-post-ident {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
}

.sh-dc-post-author {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: var(--sh-fs-sm);
    font-weight: var(--sh-fw-bold);
    color: var(--sh-text-strong);
    min-width: 0;
}

.sh-dc-post-meta {
    display: block;
    font-size: var(--sh-fs-xs);
    color: var(--sh-text-muted);
}

.sh-dc-post-text {
    margin: 0 var(--sh-sp-3) var(--sh-sp-3);
    font-size: var(--sh-fs-sm);
    line-height: var(--sh-lh-snug);
    color: var(--sh-text);
    overflow-wrap: anywhere;
}

.sh-dc-post-media {
    display: block;
    background: var(--sh-surface-sunken);
}

.sh-dc-post-foot {
    display: flex;
    align-items: center;
    gap: var(--sh-sp-3);
    padding: var(--sh-sp-2) var(--sh-sp-3);
    margin-top: auto;
    border-top: 1px solid var(--sh-border);
}

/* --------------------------------------------------------------------------
   Premium rail promo
   -------------------------------------------------------------------------- */

.sh-dc-promo {
    position: relative;
    padding: var(--sh-sp-5);
    border-radius: var(--sh-radius-lg);
    background: var(--sh-brand-gradient);
    color: var(--sh-text-inverse);
    box-shadow: var(--sh-shadow-md);
}

.sh-dc-promo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--sh-radius-pill);
    background: rgba(255, 255, 255, 0.18);
    color: var(--sh-warning-500);
}

.sh-dc-promo-title {
    margin: var(--sh-sp-3) 0 0;
    font-size: var(--sh-fs-xl);
    font-weight: var(--sh-fw-extrabold);
    color: var(--sh-text-inverse);
}

.sh-dc-promo-list {
    margin: var(--sh-sp-3) 0 var(--sh-sp-5);
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sh-dc-promo-list li {
    display: flex;
    align-items: center;
    gap: var(--sh-sp-2);
    font-size: var(--sh-fs-sm);
    color: rgba(255, 255, 255, 0.92);
}

.sh-dc-promo-list svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.sh-dc-promo-cta {
    background: var(--sh-warning-500);
    color: var(--sh-gray-900);
    border: 0;
    font-weight: var(--sh-fw-bold);
}

.sh-dc-promo-cta:hover {
    background: var(--sh-warning-600);
    color: var(--sh-gray-900);
}

/* --------------------------------------------------------------------------
   Reels — wall
   --------------------------------------------------------------------------
   One flat grid of 9:16 cards. Everything the card says — duration, counts,
   author, caption — sits over the thumbnail, so the cards keep a single shape
   however long a caption runs and the rows stay flush.
   -------------------------------------------------------------------------- */

.sh-rl-chiprow {
    gap: var(--sh-sp-2);
    padding-bottom: var(--sh-sp-1);
}

.sh-rl-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sh-sp-3);
}

.sh-rl-card {
    position: relative;
    border-radius: var(--sh-radius-lg);
    overflow: hidden;
    background: var(--sh-gray-900);
    isolation: isolate;
}

.sh-rl-media {
    display: block;
    width: 100%;
}

.sh-rl-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* The scrim is the overlay's own background, so the thumbnail underneath
   never needs a second element stacked on it. */
.sh-rl-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    padding: var(--sh-sp-2);
    background:
        linear-gradient(to bottom, rgba(9, 14, 30, 0.55) 0%, rgba(9, 14, 30, 0) 28%),
        linear-gradient(to top, rgba(9, 14, 30, 0.85) 0%, rgba(9, 14, 30, 0) 45%);
    pointer-events: none;
}

/* Only the controls take clicks; the rest falls through to the card link. */
.sh-rl-overlay a {
    pointer-events: auto;
}

.sh-rl-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--sh-sp-2);
}

.sh-rl-duration {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: var(--sh-radius-pill);
    background: rgba(9, 14, 30, 0.7);
    font-size: var(--sh-fs-2xs);
    font-weight: var(--sh-fw-bold);
    color: var(--sh-white);
}

.sh-rl-duration svg {
    width: 11px;
    height: 11px;
    fill: currentColor;
}

.sh-rl-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: var(--sh-radius-pill);
    color: var(--sh-white);
    flex-shrink: 0;
}

.sh-rl-more:hover {
    background: rgba(9, 14, 30, 0.5);
    color: var(--sh-white);
}

.sh-rl-more svg {
    width: 18px;
    height: 18px;
}

/* Reaction stack, pinned to the right edge between the badge row and the
   caption — `auto` margins keep it centred whatever those two measure. */
.sh-rl-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sh-sp-4);
    margin: auto 0 auto auto;
}

.sh-rl-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    line-height: 1;
    font-size: var(--sh-fs-2xs);
    font-weight: var(--sh-fw-bold);
    color: var(--sh-white);
    /* Counts land on whatever the thumbnail happens to be, including bright
       sky, so they need a real shadow rather than a hint of one. */
    text-shadow: 0 1px 4px rgba(9, 14, 30, 0.95), 0 0 2px rgba(9, 14, 30, 0.7);
}

.sh-rl-action:hover {
    color: var(--sh-white);
    transform: scale(1.08);
}

.sh-rl-action svg {
    width: 22px;
    height: 22px;
    filter: drop-shadow(0 1px 3px rgba(9, 14, 30, 0.8));
}

.sh-rl-foot {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.sh-rl-author {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    font-size: var(--sh-fs-xs);
    font-weight: var(--sh-fw-bold);
    color: var(--sh-white);
}

.sh-rl-author:hover {
    color: var(--sh-white);
    text-decoration: underline;
}

.sh-rl-author .sh-avatar {
    flex-shrink: 0;
    border: 1.5px solid rgba(255, 255, 255, 0.85);
}

.sh-rl-author .sh-verified svg {
    width: 12px;
    height: 12px;
}

.sh-rl-caption {
    margin: 0;
    font-size: var(--sh-fs-xs);
    line-height: var(--sh-lh-snug);
    color: rgba(255, 255, 255, 0.92);
}

.sh-rl-more-row {
    display: flex;
    justify-content: center;
    padding-top: var(--sh-sp-2);
}

/* --------------------------------------------------------------------------
   Reels — grid card & detail
   -------------------------------------------------------------------------- */

.sh-dc-reel {
    display: flex;
    flex-direction: column;
    border-radius: var(--sh-radius);
    overflow: hidden;
    background: var(--sh-surface);
    border: 1px solid var(--sh-border);
    box-shadow: var(--sh-shadow-xs);
}

.sh-dc-reel-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--sh-radius-pill);
    background: rgba(9, 14, 30, 0.5);
    color: var(--sh-text-inverse);
}

.sh-dc-reel-play svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.sh-dc-reel-duration {
    position: absolute;
    right: var(--sh-sp-2);
    bottom: var(--sh-sp-2);
    padding: 2px 7px;
    border-radius: var(--sh-radius-pill);
    background: rgba(9, 14, 30, 0.65);
    font-size: var(--sh-fs-2xs);
    font-weight: var(--sh-fw-bold);
    color: var(--sh-text-inverse);
}

.sh-dc-reel-body {
    padding: var(--sh-sp-3);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sh-dc-reel-author {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--sh-fs-sm);
    font-weight: var(--sh-fw-bold);
    color: var(--sh-text-strong);
    min-width: 0;
}

.sh-dc-reel-caption {
    margin: 0;
    font-size: var(--sh-fs-xs);
    line-height: var(--sh-lh-snug);
    color: var(--sh-text-muted);
    overflow-wrap: anywhere;
}

.sh-dc-reel-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    font-size: var(--sh-fs-2xs);
    color: var(--sh-text-subtle);
}

.sh-dc-reel-meta svg {
    width: 13px;
    height: 13px;
}

.sh-dc-player .sh-dc-reel-media {
    border-radius: 0;
}

.sh-dc-reel-fullcaption {
    margin: var(--sh-sp-4) 0 0;
    font-size: var(--sh-fs-md);
    line-height: var(--sh-lh-relaxed);
    color: var(--sh-text);
    overflow-wrap: anywhere;
}

.sh-dc-reel-audio {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: var(--sh-sp-4) 0 0;
    padding: var(--sh-sp-2) var(--sh-sp-3);
    border-radius: var(--sh-radius-pill);
    background: var(--sh-surface-sunken);
    font-size: var(--sh-fs-sm);
    font-weight: var(--sh-fw-semibold);
    color: var(--sh-text-muted);
}

.sh-dc-reel-audio svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Blog — hero
   -------------------------------------------------------------------------- */

.sh-dc-bloghero {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: var(--sh-radius-lg);
    overflow: hidden;
    background: var(--sh-brand-gradient-soft);
    border: 1px solid var(--sh-border);
}

.sh-dc-bloghero-media {
    order: -1;
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.sh-dc-bloghero-body {
    padding: var(--sh-sp-5);
}

.sh-dc-bloghero-eyebrow {
    margin: 0;
    font-size: var(--sh-fs-xs);
    font-weight: var(--sh-fw-bold);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sh-violet-700);
}

.sh-dc-bloghero-title {
    margin: var(--sh-sp-2) 0 0;
    font-size: var(--sh-fs-3xl);
    font-weight: var(--sh-fw-extrabold);
    line-height: var(--sh-lh-tight);
    letter-spacing: -0.025em;
    color: var(--sh-text-strong);
}

.sh-dc-bloghero-text {
    margin: var(--sh-sp-3) 0 var(--sh-sp-4);
    max-width: 52ch;
    font-size: var(--sh-fs-base);
    line-height: var(--sh-lh-normal);
    color: var(--sh-text-muted);
}

/* --------------------------------------------------------------------------
   Blog — category tiles
   -------------------------------------------------------------------------- */

.sh-dc-cattiles {
    gap: var(--sh-sp-3);
    padding-bottom: 2px;
}

.sh-dc-cattile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 84px;
    padding: var(--sh-sp-3) var(--sh-sp-2);
    border-radius: var(--sh-radius);
    border: 1px solid var(--sh-border);
    background: var(--sh-surface);
    text-align: center;
}

.sh-dc-cattile.is-active {
    border-color: var(--sh-primary-600);
    box-shadow: var(--sh-shadow-focus);
}

.sh-dc-cattile-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--sh-radius-sm);
    background: var(--sh-primary-50);
    color: var(--sh-primary-600);
}

.sh-dc-cattile-icon svg {
    width: 19px;
    height: 19px;
}

.sh-dc-cattile-name {
    font-size: var(--sh-fs-xs);
    font-weight: var(--sh-fw-semibold);
    color: var(--sh-text);
    overflow-wrap: anywhere;
}

/* Palette for the category tiles — index comes from sh_series_class(). */
.sh-dc-cattile-icon-1 { background: var(--sh-violet-50); color: var(--sh-violet-600); }
.sh-dc-cattile-icon-2 { background: var(--sh-primary-50); color: var(--sh-primary-600); }
.sh-dc-cattile-icon-3 { background: var(--sh-pink-50); color: var(--sh-pink-600); }
.sh-dc-cattile-icon-4 { background: var(--sh-warning-50); color: var(--sh-warning-600); }
.sh-dc-cattile-icon-5 { background: var(--sh-success-50); color: var(--sh-success-600); }
.sh-dc-cattile-icon-6 { background: var(--sh-danger-50); color: var(--sh-danger-600); }
.sh-dc-cattile-icon-7 { background: var(--sh-info-50); color: var(--sh-info-600); }
.sh-dc-cattile-icon-8 { background: var(--sh-gray-100); color: var(--sh-gray-600); }

/* --------------------------------------------------------------------------
   Blog — article cards
   -------------------------------------------------------------------------- */

.sh-dc-feature {
    position: relative;
    display: flex;
    flex-direction: column;
}

.sh-dc-feature-media {
    display: block;
}

.sh-dc-feature-badge {
    position: absolute;
    top: var(--sh-sp-3);
    left: var(--sh-sp-3);
}

.sh-dc-article-title {
    margin: var(--sh-sp-2) 0 0;
    font-size: var(--sh-fs-lg);
    font-weight: var(--sh-fw-bold);
    line-height: var(--sh-lh-snug);
    color: var(--sh-text-strong);
    overflow-wrap: anywhere;
}

.sh-dc-article-title a {
    color: inherit;
}

.sh-dc-article-title a:hover {
    color: var(--sh-primary-600);
}

.sh-dc-article-excerpt {
    margin: var(--sh-sp-2) 0 var(--sh-sp-3);
    font-size: var(--sh-fs-sm);
    line-height: var(--sh-lh-normal);
    color: var(--sh-text-muted);
    overflow-wrap: anywhere;
}

.sh-dc-article-meta {
    margin: var(--sh-sp-2) 0 0;
    font-size: var(--sh-fs-xs);
    color: var(--sh-text-muted);
    overflow-wrap: anywhere;
}

.sh-dc-article-stats {
    display: flex;
    align-items: center;
    gap: var(--sh-sp-4);
    margin-top: var(--sh-sp-3);
    padding-top: var(--sh-sp-3);
    border-top: 1px solid var(--sh-border);
}

/* Phone: media beside the text, like the mobile mock. */
.sh-dc-article {
    display: flex;
    gap: var(--sh-sp-3);
    align-items: flex-start;
}

.sh-dc-article-media {
    flex: 0 0 108px;
    width: 108px;
    border-radius: var(--sh-radius-sm);
}

.sh-dc-article-body {
    flex: 1 1 auto;
    min-width: 0;
}

.sh-dc-article-body .sh-dc-article-title {
    font-size: var(--sh-fs-md);
}

/* --------------------------------------------------------------------------
   Blog — article page
   -------------------------------------------------------------------------- */

.sh-dc-post-full-title {
    margin: 0;
    font-size: var(--sh-fs-2xl);
    font-weight: var(--sh-fw-extrabold);
    line-height: var(--sh-lh-tight);
    letter-spacing: -0.02em;
    color: var(--sh-text-strong);
    overflow-wrap: anywhere;
}

.sh-dc-post-full-lede {
    margin: var(--sh-sp-3) 0 0;
    font-size: var(--sh-fs-md);
    line-height: var(--sh-lh-relaxed);
    color: var(--sh-text-muted);
}

.sh-dc-post-full-byline {
    margin-top: var(--sh-sp-4);
    padding-top: var(--sh-sp-4);
    border-top: 1px solid var(--sh-border);
}

.sh-dc-prose {
    margin-top: var(--sh-sp-5);
    font-size: var(--sh-fs-md);
    line-height: var(--sh-lh-relaxed);
    color: var(--sh-text);
    overflow-wrap: anywhere;
}

.sh-dc-prose > * + * {
    margin-top: var(--sh-sp-4);
}

.sh-dc-prose h2 {
    font-size: var(--sh-fs-xl);
    font-weight: var(--sh-fw-bold);
    color: var(--sh-text-strong);
}

.sh-dc-prose h3 {
    font-size: var(--sh-fs-lg);
    font-weight: var(--sh-fw-bold);
    color: var(--sh-text-strong);
}

.sh-dc-prose ul,
.sh-dc-prose ol {
    padding-inline-start: var(--sh-sp-6);
}

.sh-dc-prose li + li {
    margin-top: var(--sh-sp-2);
}

.sh-dc-prose img {
    max-width: 100%;
    height: auto;
    border-radius: var(--sh-radius);
}

.sh-dc-prose blockquote {
    padding: var(--sh-sp-3) var(--sh-sp-4);
    border-inline-start: 3px solid var(--sh-primary-600);
    background: var(--sh-surface-alt);
    border-radius: 0 var(--sh-radius-sm) var(--sh-radius-sm) 0;
    color: var(--sh-text-muted);
}

/* ==========================================================================
   Tablet and up
   ========================================================================== */

@media (min-width: 768px) {
    .sh-rl-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .sh-dc-hero-body {
        padding: var(--sh-sp-10) var(--sh-sp-8);
        min-height: 300px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .sh-dc-hero-title {
        font-size: var(--sh-fs-4xl);
    }

    .sh-dc-hero-text {
        font-size: var(--sh-fs-md);
    }

    .sh-dc-bloghero {
        flex-direction: row;
        align-items: stretch;
    }

    .sh-dc-bloghero-body {
        flex: 1 1 auto;
        padding: var(--sh-sp-8);
    }

    .sh-dc-bloghero-media {
        order: 0;
        flex: 0 0 38%;
        width: 38%;
        height: auto;
    }

    .sh-dc-tagtile {
        width: 128px;
    }

    /* From tablet up the article card stacks, like the desktop mock. */
    .sh-dc-article {
        display: block;
    }

    .sh-dc-article-media {
        width: auto;
        border-radius: var(--sh-radius-sm);
    }

    .sh-dc-article-body {
        margin-top: var(--sh-sp-3);
    }

    .sh-dc-post-full-title {
        font-size: var(--sh-fs-3xl);
    }
}

/* ==========================================================================
   Desktop
   ========================================================================== */

@media (min-width: 1024px) {
    .sh-rl-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .sh-dc-cattile {
        width: 96px;
    }
}

@media (min-width: 1280px) {
    /* Five across, as in the design. */
    .sh-rl-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}
