/*
 Theme Name:     Twenty Thirteen Child Next
 Theme URI:      https://www.recipemasters.in/themes/twentythirteen-child-next
 Description:    Experimental UX/UI theme for staging and pre-launch validation.
 Author:         Shaikh Zaid
 Author URI:     http://www.zaid.in/
 Template:       twentythirteen
 Version:        0.1.0
 Text Domain:    twentythirteen-child-next
*/

/* =Imports styles from the parent theme
-------------------------------------------------------------- */
@import url('../twentythirteen/style.css');

/*@import url('http://fonts.googleapis.com/css?family=Bigelow+Rules');
@import url('http://fonts.googleapis.com/css?family=Kite+One');
@import url('http://fonts.googleapis.com/css?family=Anaheim');*/


/* =Theme customization starts here
-------------------------------------------------------------- */

#container {
    swidth: 1080px;
    margin: auto;
}
.data{
    width: 220px; 
    padding: 0px 10px 15px 10px;
}

.card_display {
    background: #ffffff;
    width: 310px;
    spadding: 0px 10px 15px 10px;
    box-shadow: #DADADA 0px 2px 5px 1px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.site-header {
    background: none !important;
    width: 100% !important
}

.promo_slider_wrapper {
    margin: 0px !important;
}

.promo_slider_excerpt {
    width: 100% !important;
}

.post-title {
    sfont-size: 18px;
    font-weight: bold;
    line-height: 22px;
    margin-bottom: 10px;
}

.post-title a {
    scolor: #696969 !important;    
}

.hentry {
    padding: 0px !important;
}

span {
   font-size: 14px; 
}

.spacer4 {
    margin-left: -10px;
    color:#ffffff;
    float:right;
}

.author_card_display {
    margin-left: 14px;
    margin-top: -10px;
    color: #fff;
    float:left;
    font-size: 12px;
    padding: 2px 20px;
    background: #006600;
    
}

.background-maroon {
    padding: 2px 20px;
    background: #EE3333;
}

#core {
    padding: 0px 14px;
    margin-top: 40px;
}

.entry-content {
    font-size: 14px;
}

.comments-link a {
    margin-left: 15px;
}

.print_email_links {
    margin-top: -7px;
    margin-right: 17px;
}

.left_pane_single {
    width: 65%;
    float: left;
}

.header {
    margin: 0 auto;
    padding: 16px 0px 6px 0px;
    width: 992px;
}

.header_top_links {
    float: left;
    margin: 0 0 0 0;
    padding: 0;
    margin-left: -63px;
}

.header_top_links ul li {
    border-right: 1px solid #E4E3E3;
    display: inline-block;
    float: left;
    margin: 0;
    padding: 0 30px;
}

.top_bg {
    background: url("images/top_bg.gif") repeat-x scroll 0 0 rgba(0, 0, 0, 0);
    height: 21px;
    margin: 0;
    padding: 0;
}


.logo {
    background: url("../twentythirteen/images/logo.png") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
    border-bottom: medium none !important;
    float: left;
    height: 92px;
    margin: 0 0 0 22px;
    padding: 0 0 5px;
    width: 280px;
}


.content_bg {
    float: left;
    min-height: 224px;
    width: 100%;
}

/*.top_corner_links {
    float: right;
    width: 350px;
    background: #E6402A;
    border-radius: 0px 0px 0px 10px;
    margin: -16px 0 0;
    box-shadow:0 1px black;
}

.top_corner_links ul, .top_corner_links li {
    list-style: none outside none !important;
    display: inline !important;
}

.top_corner_links ul {
   padding: 4px;    
}

.top_corner_links li {
    width: 150px;
    padding: 4px;
    font-size: 12px;
    color: #ffffff;   
    border-right: 1px solid #ffffff;
    padding: 0px 13px 0px 13px;
}

.top_corner_links li a {
    color: #ffffff;   
}
*/
.search_form {
    margin-top: 7px;
}

li .search_form #s {
   height: 20px; 
   border: none; 
   padding: 0;
}


.nonveg {
    background: #E6402A;
}

.entry-thumbnail > img {
    sheight: 175px;
    swidth: 334px;
}

#right_top_bar {
    float: left;
    padding: 7px 0 0 7px;
    width: 24%;
}

.homepage .pod:first-child {
    margin-top: 14px;
}
.pod {
    border: 4px double #CC0033;
    border-radius: 4px; 
}

.pod ul li{
    list-style-type: none;
    border-bottom: 1px dotted #ccc;
}

.pod ul li a{
    font-size: 18px;
    aaafont-weight: bold ;
}

.pod ul {
    margin: 31px 29px 22px -20px;
}

.pod_box {
    background: #CC0033;
    color: #ffffff;
    margin: 4px 4px -18px 4px; 
    border-radius: 4px; 
    text-align: center;    
}

.site-main {
    margin: 0 auto;
    position: relative;
    width: 1080px;
}

.featured_content {
    float: left;
    padding: 7px 0 0 7px;
    width: 55%;
}

.second_middle_homepage {
    float: left;
    padding: 7px 0 0 7px;
}

.featured_content_main_div {
    margin-top: 18px;
    border-right: 1px dotted #c0c0c0;
    margin-right: 4px;
}

.normal {
    margin: 0px;
}

.second_middle_homepage {
    width: 28%
}

.second_middle_homepage_content {
    margin: -4px 5px 0;
    width: 150px;   
}

.list_style_small_disc ul {
    margin: 10px 0px 0px -26px;
}

.list_style_small_disc li {
    list-style-type: disc;
    line-height: 16px;
}

.list_style_small_disc li  a{
    font-size: 14px;
}

.list_style_small_disc{
    smargin-top: 25px;
}

.right_side_homepage {
    float: left;
    margin-top: 22px;
    width: 20%;
}
.list_style_small_disc_2 {
    margin: 5px 3px 5px 18px;
    padding: 0px;
}

.list_style_small_disc_2 li{
    border-bottom: 1px dotted #808080 !important;
    font-size: 14px !important;
    list-style: circle outside none !important;
    margin: 0 !important;
    padding: 0 !important;
}

h3 {
    margin: 3px; 0 !important;
}

.small_comments-link a:before {
    display: inline-block;
    font: inherit;
    font-size: 16px;
    line-height: 1;
    vertical-align: text-bottom;
    content: "•";
    margin-right: 2px;
    position: relative;
    top: 1px;
}

.small_comments-link a{
  margin-left: 0px;;
}

.small {
   font-size: 12px;  
}

h1,
h2,
h3,
h4,
h5,
h6 {
	color: #00709B !important;
}


h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a{
	color: #00709B !important;
}

.right_side_homepage .promo_slider_title {
    stop: 144px !important;
    font-size: 14px !important;
    background: #ffffff;
    padding: 0px;
    width: auto;
}

.right_side_homepage .promo_slider_title a{
    scolor: #696969 !important;
}

.lower_content {
    border-right: 1px dotted #c0c0c0;
    margin-right: 4px;
    padding-right: 4px;
}

.kids_section {
    float:left; 
    width: 150px;
}

h2, h3 {
    sfont-family: 'Bigelow Rules', cursive;
}

.list_style_small_disc > ul > li > a{
     aacolor: #696969;
}

p {
    line-height: 1.3;
}

h1 {
     font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
}

.type-recipe {
     width: 100%  
}

.recipe_background_single {
    ssbackground:#;
}

.navbar {
    background-color: #61C443;
    border-bottom: 1px outset #00ff00;
}

.pod ul li {
   font-size: 13px;
   color: #BC360A
}

.author-infoo {
    background: none repeat scroll 0 0 #EEEEEE;
    font-size: 12px !important;
    height: 95px;
    padding-top: 9px;
   
}

.breadcrumbs {
    font-size: 10px;
}

.author-title {
    margin: 0px !important;
}

.italic-style {
    clear: none;
    font: italic 300 20px "Space Grotesk", "Segoe UI", sans-serif;
    margin: 0 0 8px;
}

.execphpwidget > div > div > a {
    margin: 0 17px 0px 0px !important;
}

.promo_slider_excerpt {
    clear: both;
}

.login {
    float: left;
    width: 100px;
    height: 40px;
    margin-right: 15px;
    margin-left: 25px;
    background-repeat: no-repeat;
    background: url(../twentythirteen/images/buttons.png);
    background-position: -577px -38px;
}

.register {
    float: left;
    width: 110px;
    height: 40px;
    background-repeat: no-repeat;
    background: url(../twentythirteen/images/buttons.png);
    background-position: -465px -38px;
}

.searchform_div {
   float:right;
}

.searchform_div > form > input {
    width: 165px;
    border: 1px solid #006505;
    font: italic 300 17px "Space Grotesk", "Segoe UI", sans-serif;
   
}
    
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {
    .navbar {
        width: 150%;
    }
    
/*    .site-footer .sidebar-container .widget-area{
        margin-left: 150px;
    }    
    */
/*    .comments-area {
        width: 150% !important;
    }*/
    .site-main {
        margin-left:100px;    
    }

    .site-footer {
        width: 150% !important;
    } 
}

#core > h2 {
    font: italic 400 22px "Space Grotesk", "Segoe UI", sans-serif;
}

#profile-details-section-wysija {
    float: left !important;
    width: 100% !important;
}
/*
.snippet_summary {
    sborder: 1px dotted green;
    background: #e0e0e0;
}*/

.snippet_summary > p{
    color: #000000 !important;
    font-size: 14px;
    padding: 1px;
}

.summary { 
    font-size: 24px;
}

.widget li {
    padding: 0px !important;
}

.twitter-share-button {
    width: 84px !important;
}

.promo_slider_wrapper {
    padding-top:15px;
    font-size: 12px;
}

.content {
    width:70%; 
    padding-right: 5px;
}
    
.menu-main-menu-container {
    width: 70%;
    float:left;
}

.small_comments-link {
    background: none repeat scroll 0 0 #00BA00;
    border-radius: 3px;
    padding: 3px;
    margin-top: -15px;
    margin-bottom: 4px;
    text-align: center;
    width: 99%;
}

.small_comments-link a {
    color: #FFFFFF;
    font-weight: bold;
    font-size: 14px;
}

.small_comments-link a:hover {
    color: #b00000;
}

.c_comments-link > a{
    border-radius: 3px;
    background: none repeat scroll 0 0 #CA3C08;
    color: #FFFFFF;
    padding: 3px;
    margin: 0 auto;
    font-weight: 500;
}

.c_comments-link a:before {
    display: inline-block;
    font: inherit;
    font-size: 16px;
    line-height: 1;
    vertical-align: text-bottom;
    content: "•";
    margin-right: 2px;
    position: relative;
}

.comment_count > a, .view_count {
    border-radius: 3px;
    background: none repeat scroll 0 0 #00BA00;
    color: #FFFFFF;
    padding: 3px;
    margin: 0 auto;
    font-weight: 500;
}

.personal_list {
   width: 52%;
   text-align: center;
}

.personal_list ul {
    list-style-type: none;
}

.add_to_listing {
    font-size: 14px;
    border-radius: 3px;
    background: none repeat scroll 0 0 #00BA00;
    padding: 3px;
}

.add_to_listing  a {
    color: #ffffff;
    font-weight: 800;
} 

.remove_from_list {
    border-radius: 3px;
    background: none repeat scroll 0 0 #CA3C08;
    padding: 3px;
    margin: 0 auto;
}

.remove_from_list a{
    color: #FFFFFF !important;
    font-weight: 500 !important;
}

.alphalist {
    font-size: 24px;
    text-align: center;
    margin-top: 10px;
}

ul.nav-menu {
    padding: 0px !important;
}

.right_side_homepage_second {
    float: left;
    margin-top: 0px;
    width: 20%;
}

.right {
    float: right;
}

.right_margin_10 {
    margin-right: 10px;
}

.btn_style_1 {
    height: 32px;
    margin: 0 22px 4px 3px;
    vertical-align: middle;
    width: 32px !important;
    padding: 4px !important;
    
}

.deco img {
    border-radius: 1000px;
    height: 171px;
    margin-left: 42px;
    margin-top: 43px;
    max-width: 67%;
}

/* Next UX Preview */
.next-theme-notice {
    background: #084c61;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 8px 14px;
    text-transform: uppercase;
}

.next-homepage,
.next-archive {
    max-width: 1120px;
    margin: 0 auto;
    padding: 20px 16px 30px;
}

.next-hero {
    background: linear-gradient(120deg, #f3f9ff 0%, #fff8ed 100%);
    border: 1px solid #e2ebf4;
    border-radius: 14px;
    margin-bottom: 24px;
    padding: 22px;
}

.next-hero h1 {
    color: #17324d;
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 8px;
}

.next-hero p {
    color: #3a4d60;
    font-size: 16px;
    margin-bottom: 14px;
}

.next-hero-search {
    margin-bottom: 14px;
}

.next-hero-links a {
    display: inline-block;
    margin: 0 10px 8px 0;
    background: #0a7c8d;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
}

.next-section {
    margin-bottom: 26px;
}

.next-section-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.next-section-head h2,
.next-archive-header h1 {
    color: #102a43;
    font-size: 28px;
    margin: 0;
}

.next-card-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.next-card {
    background: #fff;
    border: 1px solid #d9e2ec;
    border-radius: 10px;
    overflow: hidden;
}

.next-card-thumb img {
    display: block;
    width: 100%;
    height: auto;
}

.next-card-content {
    padding: 12px;
}

.next-card-content h2,
.next-card-content h3 {
    font-size: 19px;
    line-height: 1.3;
    margin: 0 0 8px;
}

.next-card-content p {
    color: #334e68;
    font-size: 14px;
    margin: 0 0 10px;
}

.next-card-cta {
    color: #005f73;
    font-weight: 700;
    text-decoration: none;
}

.next-card-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.next-whatsapp-share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 999px;
    padding: 8px 12px;
    text-decoration: none;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.next-home-ad-section {
    margin: 16px 0 28px;
}

.next-home-ad-banner {
    background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
    border: 1px solid #d9e2ec;
    border-radius: 12px;
    padding: 10px;
}

.next-home-ad-slot {
    margin: 0 auto;
    overflow-x: auto;
    text-align: center;
    min-height: 90px;
}

.next-home-ad-slot .adsbygoogle {
    display: block;
    max-width: 100%;
}

.next-latest-list {
    columns: 2;
    margin: 0;
    padding-left: 20px;
}

.next-latest-list li {
    margin-bottom: 8px;
}

.next-archive-description {
    color: #486581;
    margin-top: 8px;
}

.next-search-hero {
    display: grid;
    gap: 2px;
    padding: 10px 16px;
}

.next-search-hero h1 {
    font-size: 20px;
    margin-bottom: 0;
}

.next-search-hero .next-hero-eyebrow {
    margin-bottom: 0;
    font-size: 11px;
}

.next-search-hero .next-archive-description {
    margin-top: 2px;
    font-size: 12px;
}

.next-search-empty {
    background: linear-gradient(135deg, #fffaf3 0%, #f7fbff 100%);
    border: 1px solid #e4d5bf;
    border-radius: 16px;
    padding: 22px;
}

.next-search-empty h2 {
    color: #17324d;
    font-size: 24px;
    margin: 0 0 10px;
}

.next-search-empty p {
    color: #486581;
    margin: 0 0 14px;
}

.next-resource-page {
    max-width: 1180px;
}

.next-resource-page-tips {
    max-width: 1220px;
}

.next-resource-hero {
    align-items: stretch;
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.75fr);
}

.next-resource-hero-copy {
    background: linear-gradient(135deg, #f7fbff 0%, #fff7ec 100%);
    border-radius: 16px;
    padding: 22px;
}

.next-resource-page-tips .next-resource-hero-copy {
    background: linear-gradient(135deg, #fff5eb 0%, #f0fbff 100%);
}

.next-resource-hero-copy p {
    margin-bottom: 0;
}

.next-resource-hero-card {
    align-self: stretch;
    background: #17324d;
    border-radius: 16px;
    color: #f5f9ff;
    padding: 20px;
}

.next-resource-page-tips .next-resource-hero-card {
    background: linear-gradient(180deg, #14304a 0%, #0f766e 100%);
}

.next-resource-hero-card h2 {
    color: #fff;
    font-size: 20px;
    margin: 0 0 10px;
}

.next-resource-hero-card ul {
    margin: 0;
    padding-left: 18px;
}

.next-resource-hero-card li {
    margin-bottom: 8px;
}

.next-resource-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
    margin-top: 18px;
}

.next-resource-highlights {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 18px;
}

.next-tip-card {
    background: #fff;
    border: 1px solid #dbe4ee;
    border-left: 5px solid #0f766e;
    border-radius: 16px;
    padding: 18px;
}

.next-tip-number {
    color: #0f766e;
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin-bottom: 8px;
}

.next-tip-card p {
    color: #26384d;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.next-resource-panel {
    background: #fff;
    border: 1px solid #d9e2ec;
    border-radius: 16px;
    padding: 20px;
}

.next-resource-prose .entry-content {
    color: #2f4156;
    font-size: 16px;
    line-height: 1.7;
}

.next-resource-prose .entry-content ul,
.next-resource-prose .entry-content ol {
    background: #f9fbfe;
    border: 1px solid #dce6ef;
    border-radius: 14px;
    margin: 18px 0;
    padding: 18px 22px 18px 38px;
}

.next-resource-prose .entry-content li + li {
    margin-top: 10px;
}

.next-resource-prose .entry-content li {
    padding-left: 4px;
}

.next-resource-page-tips .next-resource-prose .entry-content p {
    margin-bottom: 12px;
}

.next-resource-sidebar {
    display: grid;
    gap: 18px;
}

.next-resource-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.next-resource-pill {
    background: #f0f6fc;
    border: 1px solid #d7e3ef;
    border-radius: 999px;
    color: #17324d;
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    padding: 7px 11px;
    text-decoration: none;
}

.next-resource-link-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.next-resource-link-list li + li {
    margin-top: 8px;
}

.next-resource-link-list a {
    color: #0f766e;
    font-weight: 700;
    text-decoration: none;
}

.next-resource-link-list a:hover,
.next-resource-pill:hover {
    text-decoration: underline;
}

.next-archive-tools {
    margin: 14px 0 16px;
}

.next-alpha-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
}

.next-alpha-list a {
    background: #f0f4f8;
    border-radius: 4px;
    color: #102a43;
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 8px;
    text-decoration: none;
}

@media (max-width: 768px) {
    .next-hero h1 {
        font-size: 25px;
    }

    .next-latest-list {
        columns: 1;
    }

    .next-resource-hero,
    .next-resource-grid {
        grid-template-columns: 1fr;
    }

    .next-resource-highlights {
        grid-template-columns: 1fr;
    }
}

/* Modern Layer: Twenty Thirteen Child Next */
.rm-next-theme {
    --rm-bg: #f4f7fb;
    --rm-surface: #ffffff;
    --rm-ink: #15243a;
    --rm-muted: #53657e;
    --rm-accent: #0f766e;
    --rm-accent-strong: #0a5d56;
    --rm-border: #d7e2ef;
    --rm-shadow: 0 18px 38px rgba(13, 35, 66, 0.08);
    background: radial-gradient(circle at 10% 0%, #eef7ff 0, transparent 38%), radial-gradient(circle at 90% 8%, #fff4e5 0, transparent 36%), var(--rm-bg);
    color: var(--rm-ink);
    font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
}

.rm-next-theme h1,
.rm-next-theme h2,
.rm-next-theme h3,
.rm-next-theme h4,
.rm-next-theme h5,
.rm-next-theme h6 {
    color: #0f2238;
    font-family: 'Source Serif 4', Georgia, serif;
    letter-spacing: 0.01em;
}

.rm-next-theme a {
    color: #0a5d56;
}

.rm-next-theme #page {
    background: transparent;
    max-width: 1240px;
    margin: 0 auto;
}

.rm-next-theme .site-main {
    padding: 18px 14px 30px;
}

.rm-next-theme .site-header {
    border-radius: 14px;
    box-shadow: var(--rm-shadow);
    overflow: hidden;
    margin: 10px 14px 0;
}

.rm-next-theme .next-theme-notice {
    background: #0e344d;
}

.rm-next-theme .next-site-topbar {
    background: linear-gradient(120deg, #ffffff 0%, #ecf5ff 58%, #fef5e7 100%);
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    justify-content: space-between;
    padding: 14px 18px;
}

.rm-next-theme .next-brand {
    align-items: center;
    display: inline-flex;
    gap: 10px;
    text-decoration: none;
}

.rm-next-theme .next-brand-logo {
    display: block;
    height: 40px;
    width: auto;
    max-width: 176px;
    object-fit: contain;
    flex: 0 0 auto;
}

.rm-next-theme .next-brand-text {
    color: #0d2338;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.rm-next-theme .next-site-social {
    align-items: center;
    display: flex;
    flex: 1 1 200px;
    flex-wrap: wrap;
    gap: 12px 18px;
    justify-content: center;
    min-height: 28px;
    min-width: 0;
}

.rm-next-theme .next-site-social-link {
    align-items: center;
    background: #fff;
    border: 1px solid var(--rm-border);
    border-radius: 999px;
    color: #12324d;
    display: inline-flex;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    padding: 8px 14px;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.rm-next-theme .next-site-social-link:hover {
    background: #f7f9fb;
    color: #0e2a40;
}

.rm-next-theme .next-site-social-link--twitter {
    padding-inline: 16px;
}

.rm-next-theme .next-site-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-left: auto;
}

.rm-next-theme .next-site-actions a {
    background: #fff;
    border: 1px solid var(--rm-border);
    border-radius: 999px;
    color: #12324d;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 12px;
    text-decoration: none;
}

.rm-next-theme .navigation.post-navigation .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.rm-next-theme .navigation.post-navigation .nav-links a {
    align-items: center;
    background: #fff;
    border: 1px solid var(--rm-border);
    border-radius: 999px;
    color: #102a43;
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    min-height: 44px;
    padding: 10px 14px;
    text-decoration: none;
}

.rm-next-theme .navigation.post-navigation .nav-links a:hover {
    background: #f7f9fb;
    text-decoration: none;
}

.rm-next-theme .navbar {
    background: #102a43;
    padding: 10px 14px;
}

.rm-next-theme .main-navigation {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.rm-next-theme .nav-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0;
}

.rm-next-theme .nav-menu li a {
    color: #d8e8fb;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 11px;
    border-radius: 8px;
    text-decoration: none;
}

.rm-next-theme .nav-menu li a:hover,
.rm-next-theme .nav-menu li.current-menu-item a {
    background: #0f766e;
    color: #fff;
}

.rm-next-theme .searchform_div {
    margin-left: auto;
}

.rm-next-theme .next-search-form {
    display: flex;
    gap: 8px;
}

.rm-next-theme .next-search-form input[type="search"],
.rm-next-theme .next-search-form input[type="text"] {
    border: 1px solid #80a0c0;
    border-radius: 999px;
    font-size: 14px;
    min-width: 280px;
    padding: 9px 13px;
}

.rm-next-theme .next-search-form button,
.rm-next-theme .next-search-form .btn_style_1 {
    background: var(--rm-accent);
    border: 0;
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 14px;
}

.rm-next-theme .next-hero,
.rm-next-theme .next-card,
.rm-next-theme .featured_content_main_div,
.rm-next-theme .recipe_background_single,
.rm-next-theme #secondary,
.rm-next-theme .site-footer {
    border-radius: 14px;
    box-shadow: var(--rm-shadow);
}

.rm-next-theme .next-card,
.rm-next-theme .featured_content_main_div,
.rm-next-theme .recipe_background_single,
.rm-next-theme #secondary,
.rm-next-theme .site-footer {
    background: var(--rm-surface);
    border: 1px solid var(--rm-border);
}

.rm-next-theme .next-card-cta {
    color: #0a5d56;
}

.rm-next-theme .next-latest-list li a,
.rm-next-theme .next-card-content a,
.rm-next-theme .entry-title a {
    text-decoration: none;
}

.rm-next-theme .next-latest-list li a:hover,
.rm-next-theme .next-card-content a:hover,
.rm-next-theme .entry-title a:hover {
    text-decoration: underline;
}

.rm-next-theme .next-single-layout {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 2.2fr) minmax(260px, 1fr);
    margin: 0 auto;
    max-width: 1120px;
}

.rm-next-theme .left_pane_single {
    float: none;
    width: 100%;
}

.rm-next-theme .recipe_background_single {
    padding: 22px;
}

.rm-next-theme .recipe_background_single .entry-title {
    font-size: 38px;
    line-height: 1.15;
    margin-bottom: 18px;
}

.rm-next-theme .snippet_summary,
.rm-next-theme .next-recipe-description,
.rm-next-theme .next-recipe-ingredients-list,
.rm-next-theme .next-recipe-steps-list {
    color: #22364f;
    font-size: 16px;
    line-height: 1.75;
}

.rm-next-theme .next-recipe-ingredients-list,
.rm-next-theme .next-recipe-steps-list {
    background: #fbfdff;
    border: 1px solid var(--rm-border);
    border-radius: 10px;
    margin-bottom: 14px;
    padding: 14px 14px 14px 36px;
}

.rm-next-theme .next-archive-header,
.rm-next-theme .next-section-head,
.rm-next-theme .next-latest {
    margin-bottom: 16px;
}

.rm-next-theme .site-footer {
    margin: 18px 14px;
    padding: 18px;
}

.rm-next-theme .next-footer-meta {
    color: #344e68;
    font-size: 14px;
    text-align: center;
}

.rm-next-theme .next-footer-meta p {
    margin: 0 0 10px;
}

.rm-next-theme .next-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.rm-next-theme .next-footer-links a {
    background: #f0f6fc;
    border: 1px solid var(--rm-border);
    border-radius: 999px;
    color: #12324d;
    padding: 6px 12px;
    text-decoration: none;
}

@media (max-width: 980px) {
    .rm-next-theme .next-single-layout {
        grid-template-columns: 1fr;
    }

    .rm-next-theme #secondary {
        width: 100%;
    }

    .rm-next-theme .next-search-form input[type="search"],
    .rm-next-theme .next-search-form input[type="text"] {
        min-width: 180px;
    }
}

@media (max-width: 740px) {
    .rm-next-theme .site-header,
    .rm-next-theme .site-footer {
        margin-left: 8px;
        margin-right: 8px;
    }

    .rm-next-theme .next-site-topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .rm-next-theme .next-site-social {
        flex: none;
        justify-content: flex-start;
        width: 100%;
    }

    .rm-next-theme .next-site-actions {
        margin-left: 0;
        width: 100%;
    }

    .rm-next-theme .next-brand-text {
        font-size: 21px;
    }

    .rm-next-theme .next-brand-logo {
        height: 34px;
        max-width: 150px;
    }

    .rm-next-theme .main-navigation {
        flex-direction: column;
        align-items: stretch;
    }

    .rm-next-theme .searchform_div,
    .rm-next-theme .next-search-form {
        width: 100%;
    }

    .rm-next-theme .next-search-form input[type="search"],
    .rm-next-theme .next-search-form input[type="text"] {
        flex: 1;
        min-width: 0;
        width: 100%;
    }
}

/* Homepage Refresh v2 */
.rm-next-theme .next-homepage {
    padding-top: 8px;
}

.rm-next-theme .next-hero-shell {
    background: linear-gradient(130deg, #0f2942 0%, #0a5d56 48%, #0a7c8d 100%);
    border: 0;
    color: #f3faff;
    position: relative;
    overflow: hidden;
}

.rm-next-theme .next-hero-shell::after {
    content: "";
    position: absolute;
    inset: auto -80px -90px auto;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

.rm-next-theme .next-hero-eyebrow {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: #c9e9ef;
    font-weight: 700;
}

.rm-next-theme .next-hero-shell h1 {
    color: #ffffff;
    font-size: 42px;
    max-width: 780px;
    margin-bottom: 10px;
}

.rm-next-theme .next-hero-sub {
    color: #def5ff;
    font-size: 17px;
    line-height: 1.65;
    max-width: 700px;
}

.rm-next-theme .next-hero-links a {
    background: #ffffff;
    color: #0f2942;
    font-weight: 700;
}

.rm-next-theme .next-hero-links a + a {
    background: #10324f;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.rm-next-theme .next-chip-section {
    margin-top: -10px;
}

.rm-next-theme .next-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rm-next-theme .next-chip-row a {
    background: #eef7f4;
    border: 1px solid #cfe8e1;
    border-radius: 999px;
    color: #145f56;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 12px;
    text-decoration: none;
}

.rm-next-theme .next-spotlight-card {
    background: var(--rm-surface);
    border: 1px solid var(--rm-border);
    border-radius: 14px;
    box-shadow: var(--rm-shadow);
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    overflow: hidden;
}

.rm-next-theme .next-spotlight-media {
    display: block;
    background: #e9eef5;
    min-height: 260px;
}

.rm-next-theme .next-spotlight-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rm-next-theme .next-spotlight-content {
    padding: 22px;
}

.rm-next-theme .next-spotlight-label {
    color: #0a7c8d;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.rm-next-theme .next-spotlight-content h2 {
    font-size: 34px;
    line-height: 1.2;
    margin: 0 0 10px;
}

.rm-next-theme .next-spotlight-content h2 a {
    color: #102a43;
    text-decoration: none;
}

.rm-next-theme .next-spotlight-content p {
    color: #415a74;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 12px;
}

.rm-next-theme .next-card-grid-tight {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

.rm-next-theme .next-card {
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.rm-next-theme .next-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 42px rgba(13, 35, 66, 0.14);
}

.rm-next-theme .next-card-thumb {
    background: #e8eff7;
    display: block;
    min-height: 160px;
}

.rm-next-theme .next-card-thumb img {
    width: 100%;
    height: 100%;
    min-height: 160px;
    object-fit: cover;
}

@media (max-width: 980px) {
    .rm-next-theme .next-hero-shell h1 {
        font-size: 34px;
    }

    .rm-next-theme .next-spotlight-card {
        grid-template-columns: 1fr;
    }

    .rm-next-theme .next-spotlight-content h2 {
        font-size: 29px;
    }
}

@media (max-width: 740px) {
    .rm-next-theme .next-hero-shell h1 {
        font-size: 28px;
    }

    .rm-next-theme .next-hero-sub {
        font-size: 15px;
    }

    .rm-next-theme .next-card-thumb,
    .rm-next-theme .next-card-thumb img {
        min-height: 140px;
    }
}

/* Compact Header + Stable Search Layout */
.rm-next-theme .site-header {
    margin-top: 6px;
}

.rm-next-theme .next-theme-notice {
    font-size: 10px;
    letter-spacing: 0.08em;
    padding: 4px 10px;
}

.rm-next-theme .next-site-topbar {
    padding: 10px 14px;
}

.rm-next-theme .next-brand-logo {
    height: 34px;
    max-width: 150px;
}

.rm-next-theme .next-brand-text {
    font-size: 21px;
}

.rm-next-theme .next-site-actions a {
    font-size: 12px;
    padding: 6px 10px;
}

.rm-next-theme .navbar {
    padding: 8px 10px;
}

.rm-next-theme .main-navigation {
    align-items: center;
    column-gap: 10px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
}

.rm-next-theme .nav-menu {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    justify-content: center;
    margin: 0;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    white-space: nowrap;
}

.rm-next-theme .nav-menu li {
    float: none;
    flex: 0 0 auto;
}

.rm-next-theme .nav-menu li a {
    font-size: 13px;
    padding: 7px 9px;
}

.rm-next-theme .searchform_div {
    margin-left: 0;
    min-width: 230px;
    width: clamp(230px, 22vw, 300px);
}

.rm-next-theme .next-search-form {
    align-items: center;
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    width: 100%;
}

.rm-next-theme .next-search-form input[type="search"],
.rm-next-theme .next-search-form input[type="text"] {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    padding: 8px 12px;
}

.rm-next-theme .next-search-form button,
.rm-next-theme .next-search-form .btn_style_1 {
    align-items: center;
    display: inline-flex;
    font-size: 12px;
    line-height: 1;
    padding: 8px 12px;
    white-space: nowrap;
}

.rm-next-theme .next-homepage {
    padding-top: 2px;
}

.rm-next-theme .next-hero-shell {
    padding: 16px 18px;
}

.rm-next-theme .next-hero-shell h1 {
    font-size: 36px;
    margin-bottom: 8px;
}

.rm-next-theme .next-hero-sub {
    line-height: 1.5;
    margin-bottom: 10px;
}

@media (max-width: 980px) {
    .rm-next-theme .main-navigation {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .rm-next-theme .searchform_div {
        flex: 0 1 auto;
        min-width: 230px;
        max-width: 440px;
        width: min(100%, 340px);
    }
}

@media (max-width: 740px) {
    .rm-next-theme .next-hero-shell {
        padding: 14px;
    }

    .rm-next-theme .next-hero-shell h1 {
        font-size: 26px;
    }

    .rm-next-theme .next-site-actions {
        gap: 8px;
    }
}

/* Full Width Mode (Next Theme) */
.rm-next-theme #page {
    max-width: none;
    width: 100%;
    margin: 0;
}

.rm-next-theme .site-header,
.rm-next-theme .site-footer {
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
}

.rm-next-theme .site-main {
    width: 100%;
    max-width: none;
    padding-left: 18px;
    padding-right: 18px;
}

.rm-next-theme .next-homepage,
.rm-next-theme .next-archive,
.rm-next-theme .content-area {
    max-width: none;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.rm-next-theme .next-homepage > .site-content,
.rm-next-theme .next-archive,
.rm-next-theme .next-single-layout,
.rm-next-theme #content.site-content {
    max-width: none;
    width: 100%;
}

.rm-next-theme .next-card-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.rm-next-theme .next-card-grid-tight {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.rm-next-theme .next-single-layout {
    grid-template-columns: minmax(0, 2.6fr) minmax(300px, 1fr);
    gap: 22px;
}

@media (max-width: 980px) {
    .rm-next-theme .site-main {
        padding-left: 12px;
        padding-right: 12px;
    }

    .rm-next-theme .next-single-layout {
        grid-template-columns: 1fr;
    }
}

/* Layout Tuning: hero matches homepage content column width */
.rm-next-theme .next-hero-shell {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    box-sizing: border-box;
}

.rm-next-theme .next-section {
    width: 100%;
}

.rm-next-theme .next-home-intro {
    width: 100%;
    max-width: none;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--rm-border);
    border-radius: 20px;
    box-shadow: var(--rm-shadow);
    padding: 24px 24px 18px;
}

.rm-next-theme .next-home-intro .next-section-head {
    align-items: flex-start;
    display: block;
    justify-content: initial;
    margin-bottom: 14px;
    width: 100%;
}

.rm-next-theme .next-home-intro .next-section-head h2 {
    display: block;
    width: 100%;
}

.rm-next-theme .next-section-copy {
    color: var(--rm-muted);
    font-size: 16px;
    line-height: 1.7;
    margin: 0 0 10px;
    max-width: none;
}

.rm-next-theme .next-section-copy-left {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.rm-next-theme .next-page-intro {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--rm-border);
    border-radius: 16px;
    box-shadow: var(--rm-shadow);
    color: var(--rm-muted);
    line-height: 1.7;
    margin: 0 0 20px;
    padding: 18px 20px;
}

.rm-next-theme .next-page-intro p {
    margin: 0 0 10px;
}

.rm-next-theme .next-page-intro p:last-child {
    margin-bottom: 0;
}

.rm-next-theme .next-section-head-fullwidth {
    width: 100%;
}

.rm-next-theme .next-single-layout {
    margin-left: auto;
    margin-right: auto;
    max-width: 1180px;
}

.rm-next-theme .next-section-head a {
    background: #edf5ff;
    border: 1px solid #cfe0f3;
    border-radius: 999px;
    color: #124168;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 12px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.rm-next-theme .next-section-head a:hover {
    background: #d9ebff;
}

/* Visual Variant C: Clean Editorial */
.rm-next-theme {
    --rm-bg: #f6f2ea;
    --rm-surface: #fffdf8;
    --rm-ink: #1d2d44;
    --rm-muted: #5f6c7b;
    --rm-accent: #c2410c;
    --rm-accent-strong: #9a3412;
    --rm-border: #e7ddcf;
    --rm-shadow: 0 16px 34px rgba(58, 42, 23, 0.08);
    background: linear-gradient(180deg, #fefbf4 0%, #f6f2ea 35%, #f6f2ea 100%);
}

.rm-next-theme .site-header {
    box-shadow: none;
    border-bottom: 1px solid #e4d7c6;
}

.rm-next-theme .next-site-topbar {
    background: #fff8ea;
    padding: 8px 14px;
}

.rm-next-theme .next-brand-logo {
    height: 34px;
    max-width: 150px;
}

.rm-next-theme .next-brand-text {
    color: #3a2a17;
    font-size: 20px;
}

.rm-next-theme .navbar {
    background: #3a2a17;
}

.rm-next-theme .nav-menu li a {
    color: #fcefdc;
}

.rm-next-theme .nav-menu li a:hover,
.rm-next-theme .nav-menu li.current-menu-item a {
    background: #c2410c;
}

.rm-next-theme .next-homepage {
    max-width: 1360px;
    margin: 0 auto;
    padding: 10px 16px 34px;
}

.rm-next-theme .next-hero-shell {
    background: #2f2416;
    border-radius: 18px;
    margin-bottom: 16px;
    width: 100%;
    box-sizing: border-box;
}

.rm-next-theme .next-hero-shell::after {
    background: rgba(255, 190, 92, 0.2);
}

.rm-next-theme .next-hero-eyebrow {
    color: #f4c97a;
}

.rm-next-theme .next-hero-shell h1 {
    font-size: 34px;
    color: #fff7ea;
    max-width: none;
    width: 100%;
}

.rm-next-theme .next-hero-sub {
    color: #f6e7cf;
    max-width: none;
    width: 100%;
}

.rm-next-theme .next-hero-links a {
    background: #c2410c;
    color: #fff;
}

.rm-next-theme .next-hero-links a + a {
    background: transparent;
    color: #fcefdc;
    border-color: rgba(252, 239, 220, 0.45);
}

.rm-next-theme .next-hero-links a.next-hero-share-link {
    background: #147a4b;
    border-color: #0f6840;
    color: #fff;
}

.rm-next-theme .next-chip-row a {
    background: #fff6e8;
    border-color: #edd8b8;
    color: #7a3f12;
}

.rm-next-theme .next-section-head h2 {
    font-size: 30px;
    color: #2d1f10;
}

.rm-next-theme .next-spotlight-card,
.rm-next-theme .next-card {
    background: #fffdf8;
    border-color: #ecdcc5;
    box-shadow: 0 10px 24px rgba(82, 62, 34, 0.09);
}

.rm-next-theme .next-spotlight-content h2 a,
.rm-next-theme .next-card-content h2 a,
.rm-next-theme .next-card-content h3 a {
    color: #2b1d0f;
}

.rm-next-theme .next-card-content p,
.rm-next-theme .next-spotlight-content p {
    color: #5d5d5d;
}

.rm-next-theme .next-card-meta {
    align-items: center;
    color: #6b4b2d;
    display: flex;
    flex-wrap: wrap;
    font-size: 12px;
    font-weight: 600;
    gap: 12px;
    margin: 4px 0 8px;
}

.rm-next-theme .next-card-chef {
    background: #fff2de;
    border: 1px solid #ecd3af;
    border-radius: 999px;
    padding: 2px 8px;
}

.rm-next-theme .next-card-rating {
    color: #9a3412;
}

.rm-next-theme .next-card-cta {
    color: #9a3412;
    font-weight: 700;
}

.rm-next-theme .next-card-actions {
    margin-top: 10px;
}

.rm-next-theme .next-whatsapp-share {
    background: #128c7e;
    border: 1px solid #128c7e;
    color: #fff;
    font-size: 13px;
    padding: 8px 12px;
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.rm-next-theme .next-whatsapp-share:hover {
    background: #0f7a6d;
    border-color: #0f7a6d;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.rm-next-theme .next-card-share-link {
    box-shadow: none;
}

.rm-next-theme .next-home-ad-banner {
    background: linear-gradient(135deg, #fffaf1 0%, #fff 100%);
    border: 1px solid #f0ddd2;
    box-shadow: 0 12px 24px rgba(82, 62, 34, 0.06);
}

.rm-next-theme .next-home-ad-slot {
    padding: 2px 0;
}

.rm-next-theme .next-card-cta:hover {
    color: #7c2d12;
}

/* Single Recipe: layout + scan-friendly UX (.rm-next-theme) */
.rm-next-theme .next-recipe-sheet {
    position: relative;
}

.rm-next-theme .next-recipe-header {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 14px;
}

.rm-next-theme .next-recipe-header .entry-title {
    flex: 1 1 min(260px, 100%);
    margin-bottom: 0;
}

.rm-next-theme .next-recipe-header-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
}

.rm-next-theme .next-recipe-header-tools .next-recipe-tool a {
    color: var(--rm-accent-strong, #9a3412);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.rm-next-theme .next-recipe-header-tools .next-recipe-tool--whatsapp a {
    background: #128c7e;
    border: 1px solid #128c7e;
    border-radius: 999px;
    color: #fff !important;
    padding: 6px 10px;
}

.rm-next-theme .next-recipe-header-tools .next-recipe-tool--whatsapp a:hover {
    background: #0f7a6d;
    border-color: #0f7a6d;
    color: #fff !important;
    text-decoration: none;
}

.rm-next-theme .next-recipe-byline {
    margin-bottom: 12px;
}

.rm-next-theme .next-recipe-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 12px 0 18px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid var(--rm-border);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
}

.rm-next-theme .next-recipe-jump-label {
    color: var(--rm-muted);
    font-weight: 700;
}

.rm-next-theme .next-recipe-jump a {
    color: var(--rm-accent-strong, #9a3412);
    padding: 4px 8px;
    border-radius: 999px;
    text-decoration: none;
    border: 1px solid transparent;
}

.rm-next-theme .next-recipe-jump a:hover {
    border-color: rgba(194, 65, 12, 0.35);
    background: rgba(255, 255, 255, 0.7);
}

.rm-next-theme .recipe_background_single > .next-recipe-jump.next-recipe-jump--fullbleed {
    margin-left: -22px;
    margin-right: -22px;
    padding-left: 22px;
    padding-right: 22px;
    width: calc(100% + 44px);
    max-width: none;
    border-radius: 0;
}

.rm-next-theme .next-recipe-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 1fr);
    gap: clamp(14px, 3vw, 28px);
    align-items: stretch;
}

.rm-next-theme .next-recipe-media {
    margin: 0;
}

.rm-next-theme .next-recipe-gallery-main {
    display: block;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--rm-border);
    line-height: 0;
}

.rm-next-theme .next-recipe-gallery-main img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Two-column layout: left media column stretches to match taller intro + About section */
@media (min-width: 721px) {
    .rm-next-theme .next-recipe-media {
        display: flex;
        flex-direction: column;
        height: 100%;
        min-height: 0;
    }

    .rm-next-theme .next-recipe-gallery-main {
        flex: 1 1 0;
        min-height: 240px;
        position: relative;
        line-height: 0;
    }

    .rm-next-theme .next-recipe-gallery-main img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .rm-next-theme .next-recipe-gallery-hint {
        flex-shrink: 0;
    }

    .rm-next-theme .next-recipe-pinterest {
        flex-shrink: 0;
    }

    .rm-next-theme .next-recipe-intro {
        min-height: 0;
    }
}

.rm-next-theme .next-recipe-gallery-hint {
    margin: 10px 0 6px;
    font-size: 13px;
    color: var(--rm-muted);
    font-style: normal;
    font-weight: 600;
    text-align: center;
}

.rm-next-theme .next-recipe-pinterest {
    text-align: center;
    margin: 4px 0 0;
}

.rm-next-theme .next-recipe-intro {
    margin: 0;
    padding: 0;
}

.rm-next-theme .next-recipe-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
}

.rm-next-theme .next-recipe-stat {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--rm-border);
    border-radius: 10px;
    padding: 8px 10px;
}

.rm-next-theme .next-recipe-stat-label {
    display: block;
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--rm-muted);
    font-style: normal;
}

.rm-next-theme .next-recipe-stat-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--rm-ink, #2b1d0f);
    font-style: normal;
}

.rm-next-theme .next-recipe-stat-total .next-recipe-stat-value {
    font-size: 22px;
}

.rm-next-theme .next-recipe-stat-total {
    grid-column: 1 / -1;
}

@media (min-width: 520px) {
    .rm-next-theme .next-recipe-stat-total {
        grid-column: auto;
    }
}

.rm-next-theme .next-recipe-engagement {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: baseline;
    font-size: 14px;
    margin-bottom: 12px;
}

.rm-next-theme .next-recipe-about {
    background: linear-gradient(165deg, #fffbf4 0%, #fdf6ee 42%, #fffcf7 100%);
    border: 1px solid var(--rm-border);
    border-radius: 12px;
    box-shadow: 0 10px 26px rgba(43, 29, 15, 0.07);
    margin: 0 0 16px;
    padding: clamp(14px, 2.5vw, 20px);
    scroll-margin-top: 12px;
}

.rm-next-theme .next-recipe-about-title {
    border-bottom: 2px solid rgba(194, 65, 12, 0.25);
    color: var(--rm-accent-strong, #9a3412);
    font-size: clamp(20px, 2.8vw, 24px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0 0 14px;
    padding-bottom: 10px;
}

.rm-next-theme .next-recipe-about-body {
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(236, 220, 197, 0.85);
    border-radius: 10px;
    padding: clamp(12px, 2vw, 18px);
    margin: 0;
}

.rm-next-theme .next-recipe-about-body > span[itemprop="description"],
.rm-next-theme .next-recipe-about-body [itemprop="description"] {
    display: block;
}

.rm-next-theme .next-recipe-about-body > *:last-child {
    margin-bottom: 0;
}

.rm-next-theme .next-recipe-description {
    font-style: normal;
    margin-bottom: 10px;
}

.rm-next-theme .next-recipe-about .next-recipe-description {
    margin-bottom: 0;
}

.rm-next-theme .next-recipe-intro.italic-style .next-recipe-description {
    font-style: italic;
}

.rm-next-theme .next-recipe-save {
    margin-top: 8px;
}

.rm-next-theme .next-recipe-section h2 {
    scroll-margin-top: 12px;
}

/* Ingredient & Steps lists: restore normal list appearance inside the card wrapper. */
.rm-next-theme .next-recipe-ingredients-list {
    list-style: disc;
}

.rm-next-theme .next-recipe-steps-list {
    list-style: decimal;
}

.rm-next-theme .next-recipe-ingredients-list li,
.rm-next-theme .next-recipe-steps-list li {
    padding: 2px 0;
    line-height: 1.7;
}

.rm-next-theme .next-recipe-ad-slot {
    margin: 18px auto 22px;
    text-align: center;
    overflow-x: auto;
    max-width: 100%;
    min-height: 250px;
}

.rm-next-theme .next-recipe-ad-slot .adsbygoogle {
    display: block;
    max-width: min(650px, 100%);
}

.rm-next-theme .next-recipe-pin-footer {
    text-align: center;
    margin: 14px 0 4px;
}

.rm-next-theme .next-recipe-related {
    margin-top: 26px;
    padding-top: 8px;
    border-top: 1px solid var(--rm-border);
}

.rm-next-theme .next-recipe-related-inner {
    margin-top: 8px;
}

.rm-next-theme .next-recipe-comment-nudge {
    margin: 16px 0 4px;
    font-size: 16px;
    font-weight: 600;
    color: var(--rm-accent-strong, #9a3412);
}

@media (max-width: 720px) {
    .rm-next-theme #primary,
    .rm-next-theme #content.site-content.next-single-layout,
    .rm-next-theme .next-single-layout {
        max-width: 100%;
        width: 100%;
    }

    .rm-next-theme .recipe_background_single {
        display: flex;
        flex-direction: column;
    }

    .rm-next-theme .recipe_background_single > * {
        order: 0;
        width: 100%;
    }

    .rm-next-theme .recipe_background_single > .next-recipe-hero-grid {
        order: 1;
    }

    .rm-next-theme .recipe_background_single > .next-recipe-ad-slot {
        order: 2;
    }

    .rm-next-theme .recipe_background_single > #next-recipe-ingredients {
        order: 3;
    }

    .rm-next-theme .recipe_background_single > #next-recipe-directions {
        order: 4;
    }

    .rm-next-theme .recipe_background_single > .next-recipe-pin-footer {
        order: 5;
    }

    .rm-next-theme .recipe_background_single > .next-recipe-related {
        order: 6;
    }

    .rm-next-theme .recipe_background_single > .next-recipe-footer-cta {
        order: 7;
    }

    .rm-next-theme .next-recipe-hero-grid {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 12px;
    }

    .rm-next-theme .site-main {
        padding-left: 10px;
        padding-right: 10px;
    }

    .rm-next-theme .recipe_background_single {
        padding: 14px 12px;
    }

    .rm-next-theme #secondary {
        display: none;
    }

    .rm-next-theme .left_pane_single {
        float: none;
        width: 100%;
    }

    .rm-next-theme .recipe_background_single .entry-title {
        font-size: clamp(26px, 7vw, 32px);
        margin-bottom: 12px;
        word-break: break-word;
    }

    .rm-next-theme .next-recipe-header {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .rm-next-theme .next-recipe-header-tools {
        justify-content: flex-start;
        width: 100%;
    }

    .rm-next-theme .next-recipe-header-tools .next-recipe-tool a {
        white-space: normal;
    }

    .rm-next-theme .next-recipe-jump {
        margin-left: 0;
        margin-right: 0;
        padding: 10px;
    }

    .rm-next-theme .recipe_background_single > .next-recipe-jump.next-recipe-jump--fullbleed {
        margin-left: 0;
        margin-right: 0;
        padding-left: 10px;
        padding-right: 10px;
        width: 100%;
    }

    .rm-next-theme .next-recipe-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rm-next-theme .next-recipe-stat {
        padding: 8px;
    }

    .rm-next-theme .next-recipe-stat-value {
        font-size: 16px;
    }

    .rm-next-theme .next-recipe-stat-total .next-recipe-stat-value {
        font-size: 19px;
    }

    .rm-next-theme .next-recipe-engagement {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .rm-next-theme .next-recipe-about {
        padding: 12px;
        order: 2;
    }

    .rm-next-theme .next-recipe-about-title {
        margin-bottom: 10px;
        padding-bottom: 8px;
    }

    .rm-next-theme .next-recipe-about-body {
        padding: 12px;
    }

    .rm-next-theme .next-recipe-ingredients-list,
    .rm-next-theme .next-recipe-steps-list {
        padding: 12px 12px 12px 28px;
    }

    .rm-next-theme .next-recipe-about,
    .rm-next-theme .next-recipe-stats,
    .rm-next-theme .next-recipe-engagement,
    .rm-next-theme .next-recipe-save {
        order: 2;
    }

    .rm-next-theme .next-recipe-ad-slot {
        margin: 14px 0 18px;
        overflow-x: auto;
    }

    .rm-next-theme .next-recipe-ad-slot .adsbygoogle {
        display: block !important;
        width: 100% !important;
        max-width: 100%;
        min-width: 0;
    }

    .rm-next-theme .next-recipe-related {
        margin-top: 18px;
    }

    .rm-next-theme .next-recipe-jump {
        display: none;
    }

    .rm-next-theme .next-recipe-related-inner .relpost-thumb-wrapper,
    .rm-next-theme .next-recipe-related-inner .relpost-thumb-container,
    .rm-next-theme .next-recipe-related-inner .relpost-block-container {
        width: 100% !important;
    }

    .rm-next-theme .next-recipe-related-inner .relpost-block-container {
        display: grid !important;
        gap: 10px;
        grid-template-columns: 1fr;
    }

    .rm-next-theme .next-recipe-related-inner .relpost-block-single {
        width: 100% !important;
    }

    .rm-next-theme .next-recipe-related-inner .relpost-custom-block-single {
        width: 100% !important;
        height: auto !important;
    }

    .rm-next-theme .next-recipe-related-inner .relpost-block-single-image {
        width: 100% !important;
        height: clamp(140px, 40vw, 180px) !important;
        background-position: center center !important;
        background-size: cover !important;
    }

    .rm-next-theme .next-recipe-footer-cta {
        margin-top: 12px;
    }

    .rm-next-theme .next-recipe-intro {
        order: 2;
    }

    .rm-next-theme .next-recipe-media {
        order: 1;
        display: block;
        height: auto;
    }

    .rm-next-theme .next-recipe-gallery-main {
        flex: none;
        min-height: 0;
        position: static;
    }

    .rm-next-theme .next-recipe-gallery-main img {
        position: static;
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    .rm-next-theme .next-recipe-gallery-hint {
        font-size: 12px;
    }

    .rm-next-theme .next-recipe-pinterest {
        margin-top: 2px;
    }

    .rm-next-theme .next-recipe-byline,
    .rm-next-theme .next-recipe-header-tools,
    .rm-next-theme .next-recipe-jump,
    .rm-next-theme .next-recipe-about,
    .rm-next-theme .next-recipe-stats,
    .rm-next-theme .next-recipe-engagement,
    .rm-next-theme .next-recipe-save {
        width: 100%;
    }
}

body.single.rm-next-theme {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    body.single.rm-next-theme {
        scroll-behavior: auto;
    }
}

/* Single Recipe: Keep Contained */
.rm-next-theme #content.site-content.next-single-layout,
.rm-next-theme .next-single-layout {
    margin-left: auto;
    margin-right: auto;
    max-width: 1220px;
    width: min(1220px, 100%);
}

.rm-next-theme .next-single-layout {
    grid-template-columns: minmax(0, 2.15fr) minmax(280px, 1fr);
}

@media (max-width: 720px) {
    .rm-next-theme #content.site-content.next-single-layout,
    .rm-next-theme .next-single-layout {
        display: block;
        grid-template-columns: 1fr !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .rm-next-theme .left_pane_single,
    .rm-next-theme .recipe_background_single,
    .rm-next-theme .next-recipe-sheet,
    .rm-next-theme .next-recipe-header,
    .rm-next-theme .next-recipe-byline,
    .rm-next-theme .next-recipe-hero-grid,
    .rm-next-theme .next-recipe-intro,
    .rm-next-theme .next-recipe-about,
    .rm-next-theme .next-recipe-stats,
    .rm-next-theme .next-recipe-engagement,
    .rm-next-theme .next-recipe-ingredients,
    .rm-next-theme .next-recipe-ingredients-list,
    .rm-next-theme .next-recipe-steps-list,
    .rm-next-theme .next-recipe-related,
    .rm-next-theme .next-recipe-footer-cta {
        box-sizing: border-box;
        display: block;
        max-width: 100% !important;
        width: 100% !important;
    }

    .rm-next-theme .left_pane_single {
        float: none;
    }

    .rm-next-theme .recipe_background_single {
        display: block;
        padding-left: 12px;
        padding-right: 12px;
    }

    .rm-next-theme .next-recipe-header,
    .rm-next-theme .next-recipe-byline,
    .rm-next-theme .next-recipe-hero-grid,
    .rm-next-theme .next-recipe-intro {
        clear: both;
    }

    .rm-next-theme .next-recipe-header {
        display: block;
        margin-bottom: 12px;
    }

    .rm-next-theme .next-recipe-header .entry-title {
        display: block;
        width: 100%;
        margin: 0 0 10px;
    }

    .rm-next-theme .next-recipe-header-tools {
        display: flex;
        width: 100%;
    }

    .rm-next-theme .next-recipe-hero-grid {
        display: block;
        margin-top: 6px;
    }

    .rm-next-theme .next-recipe-media {
        display: block;
        height: auto;
        margin: 0 0 10px;
    }

    .rm-next-theme .next-recipe-gallery-main {
        display: block;
        min-height: 0;
        position: static;
    }

    .rm-next-theme .next-recipe-gallery-main img {
        position: static;
        inset: auto;
        height: auto;
        width: 100%;
    }

    .rm-next-theme .next-recipe-hero-grid {
        padding-left: 0;
        padding-right: 0;
    }

    .rm-next-theme .next-recipe-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rm-next-theme .author-infoo {
        height: auto;
        overflow: visible;
        padding: 12px;
    }

    .rm-next-theme .author-avatar {
        float: none;
        margin: 0 0 10px;
    }

    .rm-next-theme .author-avatar .avatar {
        display: block;
        float: none;
        margin: 0 auto 10px;
    }

    .rm-next-theme .author-description {
        clear: both;
        display: block;
        overflow: visible;
    }

    .rm-next-theme .author-bio {
        clear: both;
    }

    .rm-next-theme .author-bio > div {
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .rm-next-theme .author-bio .post-ratings,
    .rm-next-theme .author-bio .post-ratings-loading {
        display: block;
        max-width: 100%;
        width: 100%;
    }

    .rm-next-theme .author-bio .post-ratings img,
    .rm-next-theme .author-bio .post-ratings-loading img {
        display: inline-block;
        max-width: 100%;
        height: auto;
    }

    .rm-next-theme .author-bio .post-ratings-text {
        display: inline;
        overflow-wrap: anywhere;
    }

    .rm-next-theme .author-title {
        line-height: 1.5;
        margin-bottom: 6px !important;
    }
}

/* Card Rating Output from WP-PostRatings */
.rm-next-theme .next-card-rating-output {
    align-items: center;
    color: #9a3412;
    display: inline-flex;
    font-size: 12px;
    gap: 6px;
}

.rm-next-theme .next-card-rating-output img {
    height: 13px;
    width: auto;
    vertical-align: middle;
}

/* Single Recipe Review Link Contrast */
.rm-next-theme .c_comments-link a,
.rm-next-theme .comment_count a {
    color: #ffffff !important;
    font-weight: 700;
    align-items: center;
    display: inline-flex;
    min-height: 44px;
    padding: 0 8px;
    text-decoration: none;
}

.rm-next-theme .c_comments-link a:hover,
.rm-next-theme .comment_count a:hover {
    color: #ffffff !important;
    text-decoration: underline;
}

.rm-next-theme .must-log-in {
    color: #1d3a54;
    font-weight: 600;
}

/* Un-hide the wp-postratings aggregateRating container so Google can read
   the schema.org microdata. The div only contains <meta> tags so it has
   zero visual footprint; the plugin's inline display:none is overridden here. */
.rm-next-theme [itemprop="aggregateRating"] {
    display: block !important;
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    line-height: 0;
    font-size: 0;
}

/* Card Ratings: stars only, keep voting controls */
.rm-next-theme .next-card-rating-stars-only {
    display: inline-flex;
    align-items: center;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
}

.rm-next-theme .next-card-rating-stars-only .post-ratings-text,
.rm-next-theme .next-card-rating-stars-only em,
.rm-next-theme .next-card-rating-stars-only strong,
.rm-next-theme .next-card-rating-stars-only small {
    display: none !important;
}

.rm-next-theme .next-card-rating-stars-only img {
    display: inline-block;
    font-size: initial;
    line-height: normal;
    margin-right: 1px;
}

/* Footer Detail Line: match legacy clarity */
.rm-next-theme .next-footer-line {
    color: #4b3a28;
    font-size: 13px;
    line-height: 1.8;
    margin: 0;
}

.rm-next-theme .next-footer-line a {
    color: #7c2d12;
    font-weight: 600;
    text-decoration: none;
}

.rm-next-theme .next-footer-line a:hover {
    color: #5a1f0d;
    text-decoration: underline;
}

/* Category + Tag Directory */
.rm-next-theme .next-directory-section {
    background: #fffaf1;
    border: 1px solid #ecd9bb;
    border-radius: 14px;
    padding: 16px;
}

.rm-next-theme .next-directory-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rm-next-theme .next-directory-panel {
    background: #fffdf8;
    border: 1px solid #eddcc2;
    border-radius: 12px;
    padding: 12px;
}

.rm-next-theme .next-directory-panel h3 {
    color: #3a2a17;
    font-size: 18px;
    margin: 0 0 10px;
}

.rm-next-theme .next-directory-list {
    columns: 2;
    column-gap: 18px;
    list-style: none;
    margin: 0;
    max-height: 260px;
    overflow: auto;
    padding: 0;
}

.rm-next-theme .next-directory-list li {
    break-inside: avoid;
    margin: 0 0 6px;
}

.rm-next-theme .next-directory-list a {
    color: #6a3b12;
    font-size: 13px;
    text-decoration: none;
}

.rm-next-theme .next-directory-list a:hover {
    color: #4a280d;
    text-decoration: underline;
}

@media (max-width: 980px) {
    .rm-next-theme .next-directory-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .rm-next-theme .next-directory-list {
        columns: 1;
        max-height: 300px;
    }
}

/* Card meta alignment: author + stars side-by-side with wrap fallback */
.rm-next-theme .next-card-meta {
    align-items: center;
    column-gap: 10px;
    row-gap: 6px;
    flex-wrap: wrap;
}

.rm-next-theme .next-card-meta .next-card-chef {
    flex: 0 0 auto;
}

.rm-next-theme .next-card-meta .next-card-rating-output,
.rm-next-theme .next-card-meta .next-card-rating-stars-only,
.rm-next-theme .next-card-meta .post-ratings,
.rm-next-theme .next-card-meta .post-ratings-loading {
    align-items: center;
    display: inline-flex !important;
    flex: 0 0 auto;
    margin: 0 !important;
    min-width: 0;
    width: auto !important;
}

.rm-next-theme .next-card-meta .post-ratings img,
.rm-next-theme .next-card-meta .next-card-rating-stars-only img {
    display: inline-block;
    margin-right: 1px;
}

/* Unified Pagination Scheme */
.rm-next-theme .next-paging-navigation {
    align-items: center;
    border: 1px solid #e6d9c8;
    border-radius: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    margin: 12px 0 16px;
    padding: 10px 12px;
    background: #fffaf2;
}

.rm-next-theme .next-pagination-status {
    color: #5f4a31;
    font-size: 13px;
    font-weight: 700;
    margin: 0;
}

.rm-next-theme .next-pagination-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.rm-next-theme .next-pagination-links .page-numbers {
    background: #ffffff;
    border: 1px solid #d8c7b1;
    border-radius: 8px;
    color: #5b2f11;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 7px 10px;
    text-decoration: none;
}

.rm-next-theme .next-pagination-links .page-numbers.current {
    background: #c2410c;
    border-color: #c2410c;
    color: #fff;
}

.rm-next-theme .next-pagination-links .page-numbers:hover {
    background: #f7ece0;
}

@media (max-width: 640px) {
    .rm-next-theme .next-paging-navigation {
        align-items: flex-start;
        flex-direction: column;
    }

    .rm-next-theme .next-pagination-links {
        justify-content: flex-start;
    }
}

/* Pagination Revamp: modern glass pill controls */
.rm-next-theme .next-paging-navigation {
    background: linear-gradient(135deg, #fffdf8 0%, #fff5e6 52%, #fffdf7 100%);
    border: 1px solid #ebd7bd;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(87, 55, 19, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 10px;
    margin: 14px 0 18px;
    padding: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
}

.rm-next-theme .next-pagination-head {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    flex: 0 0 auto;
    gap: 10px;
}

.rm-next-theme .next-pagination-status {
    background: #2f2416;
    border-radius: 999px;
    color: #fff6e8;
    display: inline-flex;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin: 0;
    padding: 6px 11px;
    text-transform: uppercase;
}

.rm-next-theme .next-pagination-jump {
    display: flex;
    gap: 6px;
}

.rm-next-theme .next-pagination-jump-link {
    background: #fff;
    border: 1px solid #d9c3a5;
    border-radius: 999px;
    color: #77401a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 6px 10px;
    text-decoration: none;
    text-transform: uppercase;
}

.rm-next-theme .next-pagination-jump-link:hover {
    background: #fef1de;
}

.rm-next-theme .next-pagination-track {
    display: inline-flex;
    justify-content: center;
    flex: 0 0 auto;
    overflow: visible;
    padding-bottom: 0;
}

.rm-next-theme .next-pagination-links {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 6px;
    justify-content: center;
    margin: 0 auto;
    min-width: max-content;
}

.rm-next-theme .next-pagination-links .page-numbers {
    align-items: center;
    background: #ffffff;
    border: 1px solid #d9c6ab;
    border-radius: 10px;
    color: #6e3814;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    justify-content: center;
    min-height: 34px;
    min-width: 34px;
    padding: 0 10px;
    text-decoration: none;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.rm-next-theme .next-pagination-links .page-numbers:hover {
    background: #fff4e4;
    box-shadow: 0 4px 10px rgba(122, 69, 17, 0.14);
    transform: translateY(-1px);
}

.rm-next-theme .next-pagination-links .page-numbers.current {
    background: linear-gradient(160deg, #c2410c 0%, #9a3412 100%);
    border-color: #9a3412;
    color: #fff;
    box-shadow: 0 6px 12px rgba(146, 55, 18, 0.24);
}

.rm-next-theme .next-pagination-links .page-numbers.prev,
.rm-next-theme .next-pagination-links .page-numbers.next {
    min-width: auto;
    padding: 0 12px;
}

@media (max-width: 640px) {
    .rm-next-theme .next-pagination-head {
        align-items: center;
        flex-direction: row;
    }

    .rm-next-theme .next-pagination-links {
        justify-content: center;
        margin: 0 auto;
        min-width: max-content;
    }
}

/* Directory section moved lower: cleaner secondary styling */
.rm-next-theme .next-directory-section-bottom {
    background: #fffdf8;
    border: 1px solid #e9dbc6;
    border-radius: 16px;
    margin-top: 22px;
    padding: 16px;
}

.rm-next-theme .next-directory-section-bottom .next-section-head {
    margin-bottom: 12px;
}

.rm-next-theme .next-directory-section-bottom .next-section-head h2 {
    font-size: 26px;
}

.rm-next-theme .next-directory-section-bottom .next-directory-grid {
    gap: 12px;
}

.rm-next-theme .next-directory-section-bottom .next-directory-panel {
    background: #fffaf1;
    border: 1px solid #ead8be;
}

.rm-next-theme .next-directory-section-bottom .next-directory-panel h3 {
    border-bottom: 1px solid #eddcc4;
    margin-bottom: 8px;
    padding-bottom: 6px;
}

.rm-next-theme .next-directory-section-bottom .next-directory-list {
    max-height: 220px;
}

.rm-next-theme .next-directory-more {
    margin-top: 10px;
}

.rm-next-theme .next-directory-more summary {
    color: #7a4511;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    list-style: none;
}

.rm-next-theme .next-directory-more summary::-webkit-details-marker {
    display: none;
}

.rm-next-theme .next-directory-more summary::after {
    content: " +";
}

.rm-next-theme .next-directory-more[open] summary::after {
    content: " -";
}

.rm-next-theme .next-directory-list-all {
    margin-top: 8px;
    max-height: 280px;
}

/* Footer Contrast Fix: prevent white-on-white widget text */
.rm-next-theme .site-footer > .sidebar-container {
    background: #fff4e2;
    border-bottom: 1px solid #ead7bd;
    padding: 16px 14px;
}

.rm-next-theme .site-footer .widget,
.rm-next-theme .site-footer .widget-title,
.rm-next-theme .site-footer .widget-title a,
.rm-next-theme .site-footer .wp-caption-text {
    color: #4b3a28;
}

.rm-next-theme .site-footer .widget a {
    color: #8a2b0f;
}

.rm-next-theme .site-footer .widget a:hover,
.rm-next-theme .site-footer .widget a:focus {
    color: #5f1f0b;
}

.rm-next-theme .site-footer .next-footer-meta,
.rm-next-theme .site-footer .next-footer-line {
    color: #4b3a28;
}

.rm-next-theme .site-footer .next-footer-line a {
    color: #7c2d12;
}

/* Header/Nav Final Layout Fix */
.rm-next-theme .navbar {
    width: 100%;
}

.rm-next-theme .main-navigation {
    align-items: center;
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    margin: 0;
    min-height: 0;
    width: 100%;
}

.rm-next-theme .menu-main-menu-container {
    float: none;
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
}

.rm-next-theme ul.nav-menu,
.rm-next-theme div.nav-menu > ul,
.rm-next-theme .main-navigation ul.menu,
.rm-next-theme .nav-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: flex-start;
    margin: 0;
    overflow: visible;
    padding: 0;
    white-space: normal;
    width: 100%;
}

.rm-next-theme .nav-menu li {
    float: none;
    flex: 0 0 auto;
}

.rm-next-theme .main-navigation ul.menu li {
    float: none;
    flex: 0 0 auto;
}

.rm-next-theme .nav-menu li a {
    padding: 7px 9px;
}

.rm-next-theme .main-navigation ul.menu li a {
    color: #fcefdc;
    display: block;
    padding: 7px 9px;
    text-decoration: none;
}

.rm-next-theme .main-navigation ul.menu li a:hover {
    background: #c2410c;
    color: #fff;
}

.rm-next-theme .searchform_div {
    float: none;
    flex: 0 0 290px;
    margin: 0 0 0 auto;
    min-width: 260px;
    width: 290px;
}

.rm-next-theme .next-search-form {
    display: flex;
    width: 100%;
}

.rm-next-theme .next-search-form input[type="search"],
.rm-next-theme .next-search-form input[type="text"] {
    flex: 1 1 auto;
    width: auto;
}

@media (max-width: 1140px) {
    .rm-next-theme .main-navigation {
        flex-wrap: wrap;
    }

    .rm-next-theme .menu-main-menu-container {
        flex-basis: 100%;
        order: 1;
    }

    .rm-next-theme .searchform_div {
        flex: 1 1 100%;
        margin: 0;
        max-width: 420px;
        min-width: 0;
        order: 2;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .rm-next-theme ul.nav-menu,
    .rm-next-theme div.nav-menu > ul,
    .rm-next-theme .main-navigation ul.menu,
    .rm-next-theme .nav-menu {
        display: flex !important;
    }
}

/* Popular Picks mode tabs */
.rm-next-theme #popular-picks {
    scroll-margin-top: 120px;
}

.rm-next-theme .next-section-head-popular {
    align-items: center;
    gap: 10px;
}

.rm-next-theme .next-popular-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.rm-next-theme .next-popular-tab {
    line-height: 1;
}

.rm-next-theme .next-popular-tab.is-active {
    background: linear-gradient(160deg, #c2410c 0%, #9a3412 100%);
    border-color: #9a3412;
    color: #fff;
}

.rm-next-theme .next-popular-tab.is-active:hover {
    background: linear-gradient(160deg, #b33a09 0%, #8c2f10 100%);
}

@media (max-width: 760px) {
    .rm-next-theme .next-section-head-popular {
        align-items: flex-start;
        flex-direction: column;
    }

    .rm-next-theme .next-popular-tabs {
        justify-content: flex-start;
    }
}

/* Directory horizontal rails: explicit scroll UX */
.rm-next-theme .next-directory-hint {
    color: #7a5837;
    font-size: 12px;
    font-weight: 600;
    margin: 0 0 8px;
}

.rm-next-theme .next-directory-list.next-directory-scroll {
    -webkit-overflow-scrolling: touch;
    columns: auto;
    column-gap: 0;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 8px;
    scrollbar-color: #c8a077 #f4e6d2;
    scrollbar-width: thin;
    white-space: nowrap;
}

.rm-next-theme .next-directory-list.next-directory-scroll::-webkit-scrollbar {
    height: 8px;
}

.rm-next-theme .next-directory-list.next-directory-scroll::-webkit-scrollbar-track {
    background: #f4e6d2;
    border-radius: 999px;
}

.rm-next-theme .next-directory-list.next-directory-scroll::-webkit-scrollbar-thumb {
    background: #c8a077;
    border-radius: 999px;
}

.rm-next-theme .next-directory-list.next-directory-scroll li {
    break-inside: auto;
    flex: 0 0 auto;
    margin: 0;
}

.rm-next-theme .next-directory-list.next-directory-scroll a {
    background: #fff3df;
    border: 1px solid #e9cfad;
    border-radius: 999px;
    color: #6a3b12;
    display: inline-block;
    font-size: 13px;
    padding: 7px 11px;
    text-decoration: none;
}

.rm-next-theme .next-directory-list.next-directory-scroll a:hover {
    background: #ffe9c8;
    color: #4a280d;
    text-decoration: none;
}
