/* Redesign 2026 - dailyhomedecorating.com design system (reviewstook standard). */
/* Loaded after child style.css and rd-editorial. Scope: body.rd-home. */
/* Does NOT touch Amazon buttons or category-card image rules. */

body.rd-home,
.rd-home button,
.rd-home input,
.rd-home select,
.rd-home textarea {
    font-family: 'Archivo', 'Inter', Arial, sans-serif;
}

.rd-home main h1,
.rd-home main h2 {
    font-family: 'Anton', 'Arial Narrow', sans-serif;
    text-transform: uppercase;
    letter-spacing: .01em;
    color: #0A0C10;
}

.rd-home .rd-eyebrow {
    font-family: 'Space Mono', monospace;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #2E5BFF;
}

/* ---------- Header ---------- */
.rd-home .rd-header {
    background: #0A0C10;
}

.rd-home .rd-header a,
.rd-home .rd-header button {
    color: #fff;
}

.rd-home .rd-brand-name {
    font-family: 'Anton', 'Arial Narrow', sans-serif;
    text-transform: uppercase;
    letter-spacing: .01em;
    color: #fff;
}

.rd-home .rd-brand-name small {
    font-family: 'Archivo', 'Inter', Arial, sans-serif;
    text-transform: none;
    letter-spacing: normal;
    color: rgba(255, 255, 255, .65);
}

.rd-home .rd-desktop-nav a,
.rd-home .rd-mobile-nav a {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .25);
    color: #fff;
    border-radius: 999px;
    padding: 8px 14px;
}

.rd-home .rd-desktop-nav a:hover,
.rd-home .rd-desktop-nav a:focus,
.rd-home .rd-mobile-nav a:hover,
.rd-home .rd-mobile-nav a:focus {
    background: #2E5BFF;
    border-color: #2E5BFF;
    color: #fff;
}

.rd-home .rd-mobile-nav {
    background: #0A0C10;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

/* ALL TOPICS button (accent) */
.rd-home .dh-all-topics-btn {
    background: #2E5BFF;
    border: 1px solid #2E5BFF;
    color: #fff;
    border-radius: 999px;
    padding: 8px 16px;
    font-family: 'Archivo', 'Inter', Arial, sans-serif;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: .04em;
    cursor: pointer;
    white-space: nowrap;
}

.rd-home .dh-all-topics-btn:hover,
.rd-home .dh-all-topics-btn:focus,
.rd-home .dh-all-topics-btn[aria-expanded="true"] {
    background: #1F49D8;
    border-color: #1F49D8;
}

/* ---------- Mega-menu (all categories, 6 clusters) ---------- */
.rd-home .dh-mega {
    background: #0A0C10;
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding: 26px 0 30px;
}

.rd-home .dh-mega[hidden] {
    display: none;
}

.rd-home .dh-mega-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 22px;
}

.rd-home .dh-mega-cluster h3 {
    font-family: 'Space Mono', monospace;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #2E5BFF;
    margin: 0 0 10px;
}

.rd-home .dh-mega-cluster a {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 0;
    color: rgba(255, 255, 255, .88);
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
}

.rd-home .dh-mega-cluster a:hover,
.rd-home .dh-mega-cluster a:focus {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.rd-home .dh-mega-cluster a .dh-count {
    font-family: 'Space Mono', monospace;
    font-size: .7rem;
    color: rgba(255, 255, 255, .45);
}

@media (max-width: 1100px) {
    .rd-home .dh-mega-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 620px) {
    .rd-home .dh-mega-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Trending row ---------- */
.rd-home .dh-trending {
    background: #0A0C10;
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 10px 0 14px;
}

.rd-home .dh-trending .rd-wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.rd-home .dh-trending-label {
    font-family: 'Space Mono', monospace;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .14em;
    color: #2E5BFF;
    margin-right: 4px;
}

.rd-home .dh-trending a {
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
    padding: 5px 12px;
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
}

.rd-home .dh-trending a:hover,
.rd-home .dh-trending a:focus {
    background: #2E5BFF;
    border-color: #2E5BFF;
}

/* ---------- Hero / buttons ---------- */
.rd-home .rd-hero h1 {
    font-family: 'Anton', 'Arial Narrow', sans-serif;
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    line-height: 1.02;
    text-transform: uppercase;
    letter-spacing: .01em;
    color: #0A0C10;
}

.rd-home .rd-button,
.rd-home .rt-topics-toggle {
    background: #2E5BFF;
    color: #fff;
    font-family: 'Archivo', 'Inter', Arial, sans-serif;
    font-weight: 800;
}

.rd-home .rt-topics-toggle {
    border: 0;
    border-radius: 999px;
    padding: 12px 20px;
    margin-top: 12px;
    cursor: pointer;
}

.rd-home .rt-topics-toggle:hover {
    background: #1F49D8;
}

/* ---------- Intent cards ---------- */
.rd-home .rd-topic {
    background: #fff;
    border: 1px solid #E3E7EE;
    overflow: hidden;
}

.rd-home .rd-topic h3 {
    font-family: 'Archivo', 'Inter', Arial, sans-serif;
    font-weight: 800;
}

.rd-home .rd-topic-no {
    font-family: 'Space Mono', monospace;
    color: #2E5BFF;
}

.rd-home .rd-topic:hover {
    border-color: #2E5BFF;
    transform: translateY(-2px);
}

.rd-home .rd-topic .rt-intent-img {
    display: block;
    width: calc(100% + 44px);
    margin: -24px -22px 14px;
    height: 120px;
    object-fit: cover;
}

/* ---------- Article cards ---------- */
.rd-home .rd-card h3 {
    font-family: 'Archivo', 'Inter', Arial, sans-serif;
    font-weight: 800;
    line-height: 1.15;
}

.rd-home .rd-card-image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.rd-home .rd-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- Topic hub tiles (part 2) ---------- */
.rd-home .rd-topic-hubs ul.rt-hub-grid > li > a.rt-tile-link {
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    padding: 0 !important;
    overflow: hidden;
    background: #fff;
}

.rd-home .rd-topic-hubs ul.rt-hub-grid > li > a.rt-tile-link .rt-tile-img {
    display: block;
    width: 100%;
    height: 92px;
    object-fit: cover;
}

.rd-home .rd-topic-hubs ul.rt-hub-grid > li > a.rt-tile-link > span {
    padding: 8px 12px 0;
}

.rd-home .rd-topic-hubs ul.rt-hub-grid > li > a.rt-tile-link > span:last-child {
    padding: 0 12px 10px;
    font-family: 'Space Mono', monospace;
    color: #2E5BFF;
    opacity: 1;
}

.rd-home .rd-topic-hubs ul.rt-hub-grid.rt-collapsed > li:nth-child(n+13) {
    display: none;
}

/* ---------- Latest list thumbnails (imgfix) ---------- */
.rd-home .rd-latest-item .rd-latest-thumb {
    display: block;
    flex: 0 0 132px;
    width: 132px;
    height: 96px;
    border-radius: 8px;
    overflow: hidden;
    background: #EEF1F6;
}

.rd-home .rd-latest-item .rd-latest-thumb img {
    display: block;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
}

@media (max-width: 650px) {
    .rd-home .rd-latest-item .rd-latest-thumb {
        flex-basis: 96px;
        width: 96px;
        height: 76px;
    }
}

/* ---------- Footer (dark, clustered categories) ---------- */
.rd-home .rd-footer {
    background: #0A0C10;
}

@media (min-width: 961px) {
    .rd-home .rd-footer-main {
        grid-template-columns: 1.1fr 2.6fr 1fr;
        gap: 44px;
    }
}

.rd-home .dh-foot-clusters {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px 26px;
}

.rd-home .dh-foot-cluster h3 {
    font-family: 'Space Mono', monospace;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #2E5BFF;
    margin: 0 0 8px;
}

.rd-home .dh-foot-cluster a {
    display: block;
    padding: 2px 0;
    font-size: .85rem;
}

@media (max-width: 960px) {
    .rd-home .dh-foot-clusters { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Catsweep 20261121: close the editorial-token gap ----------
   The editorial stylesheet (assets/redesign.css) paints body.rd-site
   with a warm paper background, a deep-green dark tone, a terracotta
   accent and Georgia serif headings via CSS variables. The 2026 layer
   previously overrode only fragments, so the rendered page still read
   as the old editorial design. Reset the tokens for the whole site. */
body.rd-home {
    --rd-bg: #FFFFFF;
    --rd-paper: #FFFFFF;
    --rd-soft: #EEF1F6;
    --rd-line: #E3E7EE;
    --rd-dark: #0A0C10;
    --rd-accent: #2E5BFF;
    --rd-heading: 'Anton', 'Arial Narrow', sans-serif;
    background: #FFFFFF;
}

.rd-home .rd-hero h1 em {
    font-family: 'Anton', 'Arial Narrow', sans-serif;
    font-style: normal;
    color: #2E5BFF;
}

.rd-home .rd-mark {
    background: #0A0C10;
    font-family: 'Anton', 'Arial Narrow', sans-serif;
    border-radius: 10px;
}

.rd-home .rd-footer h2 {
    font-family: 'Space Mono', monospace;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.rd-home .rd-directory h1,
.rd-home .dh-guide-cluster h2 {
    font-family: 'Anton', 'Arial Narrow', sans-serif;
    text-transform: uppercase;
    letter-spacing: .01em;
    color: #0A0C10;
}

/* ---------- All Topics directory (/guides/) tiles ---------- */
.rd-home .dh-guide-cluster { margin: 26px 0 6px; }
.rd-home .dh-guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 12px;
}
.rd-home .dh-guide-tile {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #E3E7EE;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
}
.rd-home .dh-guide-tile:hover { border-color: #2E5BFF; }
.rd-home .dh-guide-tile-img {
    display: block;
    width: 100%;
    height: 110px;
    object-fit: cover;
}
.rd-home .dh-guide-tile-name {
    padding: 10px 12px 0;
    font-weight: 800;
    color: #0A0C10;
}
.rd-home .dh-guide-tile-count {
    padding: 0 12px 10px;
    font-family: 'Space Mono', monospace;
    font-size: .75rem;
    color: #2E5BFF;
}
.rd-home .dh-extra-tile { display: none; }
.rd-home .dh-guides-open .dh-extra-tile { display: flex; }
.rd-home .dh-showall {
    background: #2E5BFF;
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 12px 20px;
    margin: 18px 0 30px;
    font-family: 'Archivo', 'Inter', Arial, sans-serif;
    font-weight: 800;
    cursor: pointer;
}
.rd-home .dh-showall:hover { background: #1F49D8; }

/* ---------- Umtstyle-align 20261121: intent-card metrics = umts model ----------
   The umtsmarttool 2026 layer pins the topic grid to auto-fill
   minmax(210px,1fr) / gap 12 and the intent cards to padding 14px 16px
   with a 110px image bleeding -14px/-16px. Dailyhome previously kept
   the editorial metrics (4 fixed columns, padding 24px 22px, 120px
   image). Align to the model values; all other dailyhome rules
   (server-side images, token reset, clustered footer) stay as-is. */
.rd-home .rd-topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 12px;
}

.rd-home .rd-topic {
    padding: 14px 16px;
}

.rd-home .rd-topic .rt-intent-img {
    width: calc(100% + 32px);
    margin: -14px -16px 12px;
    height: 110px;
}
