/* Shared navigation based on the Zonguldak 0.1.5 demo. All rules are component-scoped. */
.hmt-guide15,
.hmt-guide15-health {
    --guide-ink: #A3263A;
    --guide-paper: #FFF8F4;
    --guide-cream: #FFF3E2;
    --guide-card: #522337;
    --guide-card-dark: #2B1728;
    --guide-rule: #D7B28B;
    box-sizing: border-box;
    color: var(--guide-ink);
    background: var(--guide-paper);
    font-family: Tienne, Georgia, serif;
}

:is(#hmtip-topics, #hmtmotion-more-guides).hmt-guide15 {
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: 1170px;
    margin: 26px auto;
    padding: 20px 22px;
    border: 1px solid #DBBFB1;
    border-radius: 21px;
    box-shadow: 0 12px 30px #49203313;
}

.hmt-guide15 *,
.hmt-guide15 *::before,
.hmt-guide15 *::after {
    box-sizing: border-box;
    font-family: inherit;
}

.hmt-guide15 .hmt-guide15__hero {
    min-height: 0;
    padding: 0 8px 8px;
    color: var(--guide-ink);
    text-align: center;
    background: none;
}

.hmt-guide15__crown {
    margin-bottom: 6px;
    font-size: 15px;
    letter-spacing: .58em;
    line-height: 1.2;
}

.hmt-guide15__crown span { font-size: 21px; }
.hmt-guide15__eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .16em; }

:is(#hmtip-topics, #hmtmotion-more-guides).hmt-guide15 h2 {
    margin: 6px 0;
    padding: 0;
    color: var(--guide-ink);
    font: 700 clamp(22px, 3vw, 34px)/1.2 Tienne, Georgia, serif;
    text-shadow: none;
    overflow-wrap: anywhere;
}

.hmt-guide15__hero p,
.hmt-guide15__hero p strong {
    color: var(--guide-ink);
    background: transparent;
}

.hmt-guide15__hero p {
    margin: 0 auto;
    max-width: 720px;
    font-size: 14px;
    line-height: 1.55;
}

.hmt-guide15__divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 6px;
    font-size: 10px;
}

.hmt-guide15__divider::before,
.hmt-guide15__divider::after {
    content: "";
    width: 54px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #B96E79);
}

.hmt-guide15__divider::after { transform: rotate(180deg); }

.hmt-guide15 .hmt-guide15__ribbon {
    width: fit-content;
    max-width: 100%;
    margin: 7px auto 13px;
    padding: 5px 13px;
    border: 1px solid #DCC0B7;
    border-radius: 999px;
    color: var(--guide-ink);
    background: #FBECE9;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1.4;
}

.hmt-guide15__ribbon span { padding-inline: .28em; }

.hmt-guide15 .hmt-guide15__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.hmt-guide15 .hmt-guide15__card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    min-height: 114px;
    margin: 0;
    padding: 10px 12px 12px;
    overflow: hidden;
    border: 1px solid #A47A66;
    border-radius: 12px;
    color: var(--guide-cream);
    background: radial-gradient(circle at 50% 0%, #8D355A60, transparent 75%),
        linear-gradient(155deg, var(--guide-card), var(--guide-card-dark));
    box-shadow: inset 0 1px #FFFFFF18, 0 3px 8px #2912272B;
    text-align: center;
    text-decoration: none !important;
    overflow-wrap: anywhere;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.hmt-guide15 .hmt-guide15__card:nth-child(3n+2) { --guide-card: #4B2A43; }
.hmt-guide15 .hmt-guide15__card:nth-child(3n) { --guide-card: #553044; }
.hmt-guide15 .hmt-guide15__card--health {
    --guide-card: #77304A;
    --guide-card-dark: #3B1B2D;
    border-color: #E0B87C;
}

.hmt-guide15__card::before,
.hmt-guide15__card::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    border: 0 solid var(--guide-rule);
    opacity: .65;
    pointer-events: none;
    transition: width .22s ease, height .22s ease;
}

.hmt-guide15__card::before {
    inset: 5px auto auto 5px;
    border-width: 1px 0 0 1px;
    border-top-left-radius: 5px;
}

.hmt-guide15__card::after {
    inset: auto 5px 5px auto;
    border-width: 0 1px 1px 0;
    border-bottom-right-radius: 5px;
}

.hmt-guide15 .hmt-guide15__card:focus-visible {
    outline: 2px solid var(--guide-ink);
    outline-offset: 2px;
}

.hmt-guide15__card:is(:hover, :focus-visible) {
    transform: translateY(-3px);
    border-color: #F0C489;
    box-shadow: 0 8px 18px #30152750;
}

.hmt-guide15__card:hover::before,
.hmt-guide15__card:hover::after { width: 24px; height: 24px; }

.hmt-guide15__icon {
    display: grid;
    place-items: center;
    width: 41px;
    height: 41px;
    flex: none;
    border: 1px solid #D6B38B;
    border-radius: 50%;
    color: var(--guide-cream);
    background: #F4C6A917;
    box-shadow: 0 0 0 3px #EFC89E12;
}

.hmt-guide15__icon svg { display: block; transition: transform .2s ease; }
.hmt-guide15__card:hover svg { transform: scale(1.08) rotate(-4deg); }
.hmt-guide15__card strong { color: var(--guide-cream); font: 700 13px/1.2 Tienne, Georgia, serif; }
.hmt-guide15__card small { color: #F2DDD1; font-size: 11px; line-height: 1.24; }

.hmt-guide15__arrow {
    position: absolute;
    inset: auto 8px 5px auto;
    color: #E0BA8B;
    font-size: 13px;
    line-height: 1;
}

.hmt-guide15-health {
    margin: 22px auto;
    padding: 16px;
    max-width: 1170px;
    border: 1px solid #DBBFB1;
    border-radius: 12px;
}

.hmt-guide15-health h2 { color: var(--guide-ink); }
.hmt-guide15-health ul { display: flex; flex-wrap: wrap; gap: .5em 2em; }
.hmt-guide15-health a { color: var(--guide-ink); }

@media (max-width: 1000px) {
    .hmt-guide15 .hmt-guide15__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 730px) {
    :is(#hmtip-topics, #hmtmotion-more-guides).hmt-guide15 { padding: 14px 12px; }
    .hmt-guide15 .hmt-guide15__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
}

@media (max-width: 480px) {
    .hmt-guide15 .hmt-guide15__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hmt-guide15 .hmt-guide15__card { min-height: 108px; }
}

@media (prefers-reduced-motion: reduce) {
    .hmt-guide15 .hmt-guide15__card,
    .hmt-guide15 .hmt-guide15__card::before,
    .hmt-guide15 .hmt-guide15__card::after,
    .hmt-guide15 .hmt-guide15__card svg { transition: none; transform: none; }
}
