/* One palette and card treatment for the existing eight health guide producers. */
body.hmt-registry-health :is(#hmt-health-related, #hmt-medical-related-guides, #hmt-ph-related,
    #hmt-clinic-related, #hmt-den-related, #hmt-psy-related, #hmt-opt-related, #hmt-hear-related) {
    --hmt-health-paper: linear-gradient(142deg, #f0d2d8 0%, #dcafbc 58%, #d2a0af 100%);
    --hmt-health-hover: linear-gradient(138deg, #e8c2ce, #cf94a7);
    --hmt-health-border: #c28b9b;
    --hmt-health-title: #572538;
    --hmt-health-copy: #593b48;
    --hmt-health-action: #72233c;
    --hmt-health-shadow: 0 5px 18px rgba(111, 34, 57, .14);
    --hmt-health-font: Tienne, Georgia, serif;
    color: var(--hmt-health-title);
    font-family: var(--hmt-health-font);
}

body.hmt-registry-health :is(#hmt-health-related, #hmt-medical-related-guides, #hmt-ph-related,
    #hmt-clinic-related, #hmt-den-related, #hmt-psy-related, #hmt-opt-related, #hmt-hear-related)
    :is(.hmt-health-related-grid, .hmt-medical-related__grid, .hmt-ph-related-grid,
    .hmt-clinic-related-grid, .hmt-dental-related-grid, .hmt-psy-related-grid, .hmt-opt-related-grid, .hmt-hear-related-grid) {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 14px !important;
}

body.hmt-registry-health :is(#hmt-health-related, #hmt-medical-related-guides, #hmt-ph-related,
    #hmt-clinic-related, #hmt-den-related, #hmt-psy-related, #hmt-opt-related, #hmt-hear-related)
    :is(.hmt-health-related-card, .hmt-medical-related__item, .hmt-ph-related-card,
    .hmt-clinic-related-card, .hmt-dental-related-card, .hmt-psy-related-card, .hmt-opt-related-card, .hmt-hear-related-card) {
    position: relative;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    min-width: 0;
    min-height: 232px;
    padding: 19px;
    border: 1px solid var(--hmt-health-border) !important;
    border-radius: 16px !important;
    background: var(--hmt-health-paper) !important;
    box-shadow: var(--hmt-health-shadow) !important;
    color: #612d40 !important;
    font-family: var(--hmt-health-font);
    text-decoration: none !important;
    overflow-wrap: anywhere;
    transition: transform .28s ease, box-shadow .28s ease;
}

body.hmt-registry-health :is(#hmt-health-related, #hmt-medical-related-guides, #hmt-ph-related,
    #hmt-clinic-related, #hmt-den-related, #hmt-psy-related, #hmt-opt-related, #hmt-hear-related)
    a[href*="hmt_konu="] > h3,
body.hmt-registry-health #hmt-medical-related-guides .hmt-medical-related__item > strong {
    background: transparent !important;
    color: var(--hmt-health-title) !important;
    font: 700 19px/1.4 var(--hmt-health-font) !important;
    padding: 0 !important;
}

body.hmt-registry-health :is(#hmt-health-related, #hmt-medical-related-guides, #hmt-ph-related,
    #hmt-clinic-related, #hmt-den-related, #hmt-psy-related, #hmt-opt-related, #hmt-hear-related) a[href*="hmt_konu="] > p,
body.hmt-registry-health #hmt-medical-related-guides .hmt-medical-related__item > span {
    color: var(--hmt-health-copy) !important;
    font: 400 12px/1.7 var(--hmt-health-font) !important;
}

body.hmt-registry-health :is(#hmt-health-related, #hmt-ph-related, #hmt-clinic-related, #hmt-den-related,
    #hmt-psy-related, #hmt-opt-related, #hmt-hear-related) a[href*="hmt_konu="] > :is(strong, .hmt-health-related-card__action) {
    color: var(--hmt-health-action) !important;
    margin-top: auto;
}

@media (hover: hover) {
    body.hmt-registry-health :is(#hmt-health-related, #hmt-medical-related-guides, #hmt-ph-related,
        #hmt-clinic-related, #hmt-den-related, #hmt-psy-related, #hmt-opt-related, #hmt-hear-related)
        a[href*="hmt_konu="]:hover {
        background: var(--hmt-health-hover) !important;
        transform: translateY(-6px);
    }
}

body.hmt-registry-health :is(#hmt-health-related, #hmt-medical-related-guides, #hmt-ph-related,
    #hmt-clinic-related, #hmt-den-related, #hmt-psy-related, #hmt-opt-related, #hmt-hear-related)
    a[href*="hmt_konu="]:focus-visible { outline: 2px solid #a3263a; outline-offset: 3px; }

@media (max-width: 980px) {
    body.hmt-registry-health :is(#hmt-health-related, #hmt-medical-related-guides, #hmt-ph-related,
        #hmt-clinic-related, #hmt-den-related, #hmt-psy-related, #hmt-opt-related, #hmt-hear-related)
        :is(.hmt-health-related-grid, .hmt-medical-related__grid, .hmt-ph-related-grid,
        .hmt-clinic-related-grid, .hmt-dental-related-grid, .hmt-psy-related-grid, .hmt-opt-related-grid, .hmt-hear-related-grid) {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 520px) {
    body.hmt-registry-health :is(#hmt-health-related, #hmt-medical-related-guides, #hmt-ph-related,
        #hmt-clinic-related, #hmt-den-related, #hmt-psy-related, #hmt-opt-related, #hmt-hear-related)
        :is(.hmt-health-related-grid, .hmt-medical-related__grid, .hmt-ph-related-grid,
        .hmt-clinic-related-grid, .hmt-dental-related-grid, .hmt-psy-related-grid, .hmt-opt-related-grid, .hmt-hear-related-grid) {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.hmt-registry-health :is(#hmt-health-related, #hmt-medical-related-guides, #hmt-ph-related,
        #hmt-clinic-related, #hmt-den-related, #hmt-psy-related, #hmt-opt-related, #hmt-hear-related)
        a[href*="hmt_konu="] { transform: none !important; transition: none !important; }
}
