* {
    box-sizing: border-box;
}

body {
    background: #f7f3ee;
    color: #1b2a33;
    font-family: "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 14px;
    margin: 0;
}

a,
a:hover {
    text-decoration: none;
}

.new-feed-page {
    min-height: 100vh;
}

.new-feed-topbar {
    align-items: center;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(23, 40, 57, 0.08);
    box-shadow: 0 10px 28px rgba(23, 40, 57, 0.08);
    display: grid;
    gap: 18px;
    grid-template-columns: 190px minmax(220px, 360px) 1fr auto;
    min-height: 76px;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.new-feed-logo img {
    max-height: 54px;
}

.new-feed-search,
.new-hero-search {
    align-items: center;
    background: #f0f2f5;
    border: 1px solid rgba(23, 40, 57, 0.06);
    border-radius: 999px;
    display: flex;
    gap: 10px;
    padding: 0 16px;
}

.new-feed-search input,
.new-hero-search input {
    background: transparent;
    border: 0;
    color: #172839;
    height: 46px;
    outline: 0;
    width: 100%;
}

.new-feed-search i {
    color: #758294;
}

.new-feed-nav {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: center;
}

.new-feed-nav a {
    border-radius: 999px;
    color: #52616f;
    font-size: 14px;
    font-weight: 800;
    padding: 10px 15px;
}

.new-feed-nav a.active,
.new-feed-nav a:hover {
    background: #fff0e8;
    color: #ff6422;
}

.new-feed-actions {
    align-items: center;
    display: flex;
    gap: 10px;
}

.new-icon-action {
    align-items: center;
    background: #f0f2f5;
    border: 0;
    border-radius: 14px;
    color: #172839;
    display: inline-flex;
    height: 44px;
    justify-content: center;
    min-width: 44px;
    position: relative;
}

.new-icon-action.is-primary {
    background: #ff6422;
    color: #fff;
}

.new-icon-action span {
    background: #ff3d2e;
    border-radius: 999px;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    padding: 2px 6px;
    position: absolute;
    right: -5px;
    top: -5px;
}

.new-user-pill,
.new-login-link,
.new-create-link {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 13px;
    font-weight: 900;
    gap: 8px;
    min-height: 44px;
    padding: 0 15px;
}

.new-user-pill,
.new-login-link {
    background: #f0f2f5;
    color: #172839;
}

.new-create-link {
    background: #172839;
    color: #fff;
}

.new-user-pill img {
    border-radius: 50%;
    height: 34px;
    object-fit: cover;
    width: 34px;
}

.new-guest-hero {
    align-items: center;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 100, 34, 0.22), transparent 28%),
        linear-gradient(135deg, #fff7ef 0%, #fff 58%, #ffe7d7 100%);
    border: 1px solid rgba(255, 100, 34, 0.14);
    border-radius: 30px;
    display: grid;
    gap: 34px;
    grid-template-columns: 1.2fr 0.8fr;
    margin: 28px auto 0;
    max-width: 1420px;
    padding: 38px 44px;
}

.new-guest-hero span,
.new-join-card > span {
    color: #ff6422;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.new-guest-hero h1 {
    color: #172839;
    font-size: 48px;
    font-weight: 900;
    letter-spacing: -1.4px;
    line-height: 1.08;
    margin: 10px 0;
}

.new-guest-hero p {
    color: #52616f;
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
    max-width: 660px;
}

.new-hero-search {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 18px 48px rgba(23, 40, 57, 0.1);
    padding: 10px;
}

.new-hero-search button {
    background: #ff6422;
    border: 0;
    border-radius: 14px;
    color: #fff;
    font-weight: 900;
    height: 48px;
    padding: 0 20px;
    white-space: nowrap;
}

.new-feed-shell {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(220px, 280px) minmax(0, 760px) minmax(260px, 330px);
    margin: 0 auto;
    max-width: 1480px;
    padding: 28px;
}

.is-guest .new-feed-shell {
    padding-top: 24px;
}

.new-feed-sidebar {
    align-self: start;
    position: sticky;
    top: 98px;
}

.new-left-sidebar,
.new-right-sidebar {
    max-height: calc(100vh - 104px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: 10px;
    scrollbar-color: transparent transparent;
    scrollbar-width: thin;
    transition: scrollbar-color 0.2s ease;
}

.new-left-sidebar::-webkit-scrollbar,
.new-right-sidebar::-webkit-scrollbar {
    width: 8px;
}

.new-left-sidebar::-webkit-scrollbar-track,
.new-right-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.new-left-sidebar::-webkit-scrollbar-thumb,
.new-right-sidebar::-webkit-scrollbar-thumb {
    background: transparent;
    border: 2px solid transparent;
    border-radius: 999px;
    background-clip: content-box;
}

.new-left-sidebar:hover,
.new-right-sidebar:hover {
    scrollbar-color: rgba(233, 95, 36, 0.55) rgba(255, 247, 241, 0.75);
}

.new-left-sidebar:hover::-webkit-scrollbar-track,
.new-right-sidebar:hover::-webkit-scrollbar-track {
    background: rgba(255, 247, 241, 0.78);
    border-radius: 999px;
}

.new-left-sidebar:hover::-webkit-scrollbar-thumb,
.new-right-sidebar:hover::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff985f 0%, #e95f24 100%);
    border-radius: 999px;
}

.new-card {
    background: #fff;
    border: 1px solid rgba(23, 40, 57, 0.08);
    border-radius: 22px;
    box-shadow: 0 16px 42px rgba(23, 40, 57, 0.08);
    margin-bottom: 18px;
    overflow: hidden;
}

.new-profile-card,
.new-join-card {
    padding: 20px;
    text-align: center;
}

.new-profile-card img {
    border: 5px solid #fff0e8;
    border-radius: 50%;
    height: 86px;
    object-fit: cover;
    width: 86px;
}

.new-profile-card h3 {
    color: #172839;
    font-size: 20px;
    font-weight: 900;
    margin: 12px 0 2px;
}

.new-profile-card p {
    color: #758294;
    margin-bottom: 14px;
}

.new-profile-card a,
.new-start-btn {
    background: linear-gradient(135deg, #ff6422, #ff824d);
    border-radius: 12px;
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    padding: 10px 16px;
    box-shadow: 0 4px 10px rgba(255, 100, 34, 0.18);
    transition: all 0.2s ease-in-out;
    border: 0;
    text-decoration: none !important;
}

.new-profile-card a:hover,
.new-start-btn:hover {
    background: linear-gradient(135deg, #e04f0f, #ff6422);
    box-shadow: 0 6px 14px rgba(255, 100, 34, 0.3);
    transform: translateY(-1.5px);
    color: #fff !important;
}

.new-profile-card a:active,
.new-start-btn:active {
    transform: translateY(0);
}

.new-menu-card,
.new-filter-card,
.new-trending-card,
.new-foodies-card {
    padding: 12px;
}

.new-menu-card a,
.new-filter-card a {
    align-items: center;
    border-radius: 14px;
    color: #172839;
    display: flex;
    font-weight: 800;
    gap: 12px;
    padding: 12px;
}

.new-menu-card a i {
    align-items: center;
    background: #fff0e8;
    border-radius: 50%;
    color: #ff6422;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.new-menu-card a.active,
.new-menu-card a:hover,
.new-filter-card a:hover {
    background: #fff7ef;
    color: #ff6422;
}

.new-filter-card h4,
.new-card-title h4,
.new-section-heading h2 {
    color: #172839;
    font-weight: 900;
    margin: 0;
}

.new-filter-card h4 {
    font-size: 16px;
    padding: 8px 12px 10px;
}

.new-composer-card {
    padding: 16px;
}

.new-composer-card > img {
    border-radius: 50%;
    float: left;
    height: 48px;
    margin-right: 12px;
    object-fit: cover;
    width: 48px;
}

.new-composer-input {
    align-items: center;
    background: #f0f2f5;
    border-radius: 999px;
    color: #758294;
    display: flex;
    min-height: 48px;
    padding: 0 18px;
}

.new-composer-tools {
    border-top: 1px solid #edf0f3;
    clear: both;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 16px;
    padding-top: 12px;
}

.new-composer-tools a {
    border-radius: 12px;
    color: #52616f;
    font-weight: 800;
    padding: 10px;
    text-align: center;
}

.new-composer-tools a:hover {
    background: #f7f8fa;
}

.new-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.new-chip-row a {
    background: #fff;
    border: 1px solid rgba(23, 40, 57, 0.08);
    border-radius: 999px;
    color: #52616f;
    font-size: 13px;
    font-weight: 900;
    padding: 10px 15px;
}

.new-chip-row a.active,
.new-chip-row a:hover {
    background: #172839;
    color: #fff;
}

.new-section-heading {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin: 4px 0 16px;
}

.new-section-heading span {
    background: #fff;
    border-radius: 999px;
    color: #758294;
    font-size: 12px;
    font-weight: 900;
    padding: 8px 12px;
}

.new-recipe-showcase {
    display: grid;
    gap: 18px;
    grid-template-columns: 1.2fr 0.8fr;
    margin-bottom: 24px;
}

.new-recipe-showcase .new-recipe-card:first-child {
    grid-row: span 2;
}

.new-recipe-card {
    display: grid;
    grid-template-columns: minmax(220px, 42%) minmax(0, 58%);
}

.new-recipe-card.is-featured,
.new-recipe-card.is-compact {
    display: block;
}

.new-recipe-card.is-featured .new-recipe-media img {
    aspect-ratio: 16 / 11;
}

.new-recipe-card.is-compact .new-card-head,
.new-recipe-card.is-compact .new-recipe-badges,
.new-recipe-card.is-compact .new-recipe-footer .yc-like-btn,
.new-recipe-card.is-compact .new-recipe-footer .yc-save-btn {
    display: none;
}

.new-recipe-card.is-compact .new-recipe-content {
    padding: 14px;
}

.new-recipe-media,
.new-tile-media,
.new-post-media {
    background: #172839;
    display: block;
    overflow: hidden;
    position: relative;
}

.new-recipe-media {
    border-radius: 18px;
    margin: 16px 0 16px 16px;
}

.new-recipe-card.is-featured .new-recipe-media,
.new-recipe-card.is-compact .new-recipe-media {
    border-radius: 0;
    margin: 0;
}

.new-recipe-media img,
.new-tile-media img,
.new-post-media img,
.new-post-media iframe {
    aspect-ratio: 16 / 10;
    border: 0;
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.new-recipe-media span,
.new-tile-media span {
    background: rgba(23, 40, 57, 0.84);
    border-radius: 999px;
    bottom: 12px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    padding: 7px 10px;
    position: absolute;
    right: 12px;
}

.new-recipe-content {
    display: flex;
    flex-direction: column;
    padding: 16px 18px 16px;
}

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

.new-author {
    align-items: center;
    color: #172839;
    display: flex;
    gap: 10px;
}

.new-author img {
    border-radius: 50%;
    height: 42px;
    object-fit: cover;
    width: 42px;
}

.new-author strong,
.new-author small {
    display: block;
}

.new-author strong {
    color: #172839;
    font-size: 14px;
    font-weight: 900;
}

.new-author small {
    color: #758294;
    font-size: 12px;
}

.new-type-pill {
    background: #fff0e8;
    border-radius: 999px;
    color: #ff6422;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
    padding: 8px 11px;
}

.new-type-pill.is-post {
    background: #f0ecff;
    color: #7057d6;
}

.new-recipe-content h2 {
    font-size: 23px;
    font-weight: 900;
    line-height: 1.2;
    margin: 0 0 8px;
}

.new-recipe-content h2 a,
.new-tile-body h3 a {
    color: #172839;
}

.new-recipe-content p,
.new-post-caption {
    color: #52616f;
    font-size: 14px;
    line-height: 1.55;
}

.new-recipe-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 14px;
}

.new-recipe-badges span {
    background: #f0f2f5;
    border-radius: 999px;
    color: #52616f;
    font-size: 12px;
    font-weight: 800;
    padding: 7px 10px;
}

.new-recipe-badges .veg {
    background: #eaf8ec;
    color: #27823a;
}

.new-recipe-badges .non-veg {
    background: #fff0e8;
    color: #d84d19;
}

.new-recipe-footer {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.new-ajax-btn,
.new-local-action {
    align-items: center;
    background: #f0f2f5;
    border: 0;
    border-radius: 12px;
    color: #52616f;
    display: inline-flex;
    font-weight: 900;
    gap: 7px;
    min-height: 42px;
    padding: 0 12px;
}

.new-ajax-btn.is-active,
.new-ajax-btn:hover,
.new-local-action:hover {
    background: #fff0e8;
    color: #ff6422;
}

.new-recipe-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.new-recipe-tile .new-tile-media img {
    aspect-ratio: 16 / 12;
}

.new-tile-body {
    padding: 14px;
}

.new-tile-body h3 {
    font-size: 16px;
    font-weight: 900;
    line-height: 1.3;
    margin: 0 0 8px;
}

.new-tile-body p {
    color: #758294;
    font-size: 12px;
    font-weight: 700;
}

.new-tile-body div {
    display: flex;
    gap: 8px;
}

.new-post-card {
    padding-top: 1px;
}

.new-post-card .new-card-head {
    padding: 15px 16px 0;
}

.new-post-caption {
    color: #2d3a48;
    margin: 0;
    padding: 0 16px 14px;
}

.new-post-media iframe {
    aspect-ratio: 16 / 9;
    min-height: 320px;
}

.new-linked-recipe {
    background: #fff7f1;
    border: 1px solid #ffe0cf;
    border-radius: 12px;
    color: #ff6422;
    display: inline-flex;
    font-weight: 900;
    gap: 8px;
    margin: 14px 16px;
    padding: 10px 12px;
}

.new-post-actions {
    border-top: 1px solid #edf0f3;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.new-post-actions .new-local-action {
    background: transparent;
    border-radius: 0;
    justify-content: center;
    padding: 12px 8px;
}

.new-join-card {
    background: radial-gradient(circle at 12% 10%, rgba(255, 100, 34, 0.26), transparent 36%), #172839;
    color: #fff;
    text-align: left;
}

.new-join-card h3 {
    color: #fff;
    font-size: 21px;
    font-weight: 900;
    margin: 8px 0;
}

.new-join-card p {
    color: rgba(255, 255, 255, 0.76);
    font-size: 13px;
    line-height: 1.6;
}

.new-join-card .new-join-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.new-join-card a {
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 900;
    padding: 12px 16px !important;
    text-align: center;
    transition: all 0.2s ease;
    width: 100%;
    display: flex !important;
}

.new-join-card a.new-join-primary {
    background: #ff6422 !important;
    color: #fff !important;
}

.new-join-card a.new-join-primary:hover {
    background: #e04f12 !important;
    box-shadow: 0 4px 12px rgba(255, 100, 34, 0.2) !important;
}

.new-join-card a.new-join-secondary {
    background: transparent !important;
    border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
    color: #fff !important;
}

.new-join-card a.new-join-secondary:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
}

.new-card-title {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: 6px 6px 12px;
}

.new-card-title h4 {
    font-size: 16px;
}

.new-card-title a {
    color: #ff6422;
    font-size: 12px;
    font-weight: 900;
}

.new-trending-item,
.new-foodie-item {
    align-items: center;
    border-radius: 14px;
    color: #172839;
    display: flex;
    gap: 11px;
    padding: 9px 6px;
}

.new-trending-item:hover,
.new-foodie-item:hover {
    background: #f7f8fa;
}

.new-trending-item img,
.new-foodie-item img {
    border-radius: 12px;
    height: 56px;
    object-fit: cover;
    width: 70px;
}

.new-foodie-item img {
    border-radius: 50%;
    width: 56px;
}

.new-trending-item strong,
.new-trending-item small,
.new-foodie-item strong,
.new-foodie-item small {
    display: block;
}

.new-trending-item strong,
.new-foodie-item strong {
    color: #172839;
    font-size: 13px;
    font-weight: 900;
}

.new-trending-item small,
.new-foodie-item small {
    color: #758294;
    font-size: 12px;
}

.new-foodie-item em {
    border: 1px solid #ffe0cf;
    border-radius: 999px;
    color: #ff6422;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
    margin-left: auto;
    padding: 7px 11px;
}

.new-toast {
    background: #172839;
    border-radius: 14px;
    bottom: 26px;
    box-shadow: 0 16px 40px rgba(23, 40, 57, 0.25);
    color: #fff;
    font-weight: 800;
    left: 50%;
    opacity: 0;
    padding: 13px 18px;
    pointer-events: none;
    position: fixed;
    transform: translate(-50%, 20px);
    transition: all 0.25s ease;
    z-index: 100;
}

.new-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* Compact visual scale for the isolated new portal UI. */
.new-feed-topbar {
    border-bottom-color: rgba(92, 63, 41, 0.08);
    box-shadow: 0 8px 24px rgba(72, 49, 33, 0.07);
    gap: 14px;
    grid-template-columns: 170px minmax(200px, 320px) 1fr auto;
    min-height: 64px;
    padding: 0 24px;
}

.new-feed-logo img {
    max-height: 44px;
}

.new-feed-search,
.new-hero-search,
.new-composer-input,
.new-ajax-btn,
.new-local-action,
.new-icon-action,
.new-user-pill,
.new-login-link,
.new-create-link {
    font-size: 12px;
}

.new-feed-search,
.new-hero-search,
.new-composer-input {
    background: #fffaf5;
    border-color: rgba(117, 86, 61, 0.14);
}

.new-feed-search input,
.new-hero-search input {
    height: 38px;
}

.new-feed-search i,
.new-hero-search i {
    color: #9a8067;
    font-size: 12px;
}

.new-feed-nav a {
    color: #6b5949;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 12px;
}

.new-feed-nav a.active,
.new-feed-nav a:hover {
    background: #fff2e8;
    color: #e95f24;
}

.new-feed-actions {
    gap: 8px;
}

.new-icon-action {
    background: #fff6ef;
    border: 1px solid rgba(117, 86, 61, 0.12);
    border-radius: 12px;
    color: #243646;
    height: 36px;
    min-width: 36px;
}

.new-icon-action i {
    font-size: 13px;
}

.new-icon-action.is-primary,
.new-hero-search button,
.new-start-btn,
.new-profile-card a {
    background: linear-gradient(135deg, #ff7a2f 0%, #f15a24 100%);
    box-shadow: 0 8px 18px rgba(241, 90, 36, 0.2);
}

.new-icon-action span {
    background: #d9422f;
    font-size: 9px;
    padding: 1px 5px;
}

.new-user-pill,
.new-login-link,
.new-create-link {
    font-weight: 800;
    min-height: 36px;
    padding: 0 12px;
}

.new-user-pill,
.new-login-link {
    background: #fff6ef;
    color: #243646;
}

.new-create-link {
    background: #243646;
    color: #fff;
}

.new-user-pill img {
    height: 28px;
    width: 28px;
}

.new-guest-hero {
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 122, 47, 0.18), transparent 28%),
        linear-gradient(135deg, #fff9f1 0%, #fff 58%, #fce4d4 100%);
    border-color: rgba(229, 113, 49, 0.16);
    border-radius: 24px;
    gap: 28px;
    margin-top: 22px;
    max-width: 1320px;
    padding: 30px 36px;
}

.new-guest-hero span,
.new-join-card > span {
    color: #e95f24;
    font-size: 10px;
    letter-spacing: 0.12em;
}

.new-guest-hero h1 {
    color: #1f3342;
    font-size: 36px;
    letter-spacing: -0.8px;
    line-height: 1.14;
}

.new-guest-hero p {
    color: #6b5949;
    font-size: 13px;
    line-height: 1.65;
}

.new-hero-search {
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(72, 49, 33, 0.1);
    padding: 8px;
}

.new-hero-search button {
    border-radius: 12px;
    font-size: 12px;
    height: 38px;
    padding: 0 16px;
}

.new-feed-shell {
    gap: 20px;
    grid-template-columns: minmax(210px, 250px) minmax(0, 700px) minmax(240px, 300px);
    max-width: 1340px;
    padding: 22px;
}

.new-feed-sidebar {
    top: 84px;
}

.new-left-sidebar,
.new-right-sidebar {
    max-height: calc(100vh - 92px);
}

.new-card {
    border-color: rgba(117, 86, 61, 0.11);
    border-radius: 17px;
    box-shadow: 0 12px 30px rgba(72, 49, 33, 0.08);
    margin-bottom: 14px;
}

.new-profile-card,
.new-join-card {
    padding: 16px;
}

.new-profile-card img {
    border-color: #fff1e7;
    border-width: 4px;
    height: 68px;
    width: 68px;
}

.new-profile-card h3 {
    font-size: 16px;
    margin-top: 9px;
}

.new-profile-card p,
.new-tile-body p,
.new-trending-item small,
.new-foodie-item small {
    color: #827466;
    font-size: 11px;
}

.new-profile-card a,
.new-start-btn {
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    padding: 8px 12px;
}

.new-menu-card,
.new-filter-card,
.new-trending-card,
.new-foodies-card {
    padding: 10px;
}

.new-menu-card a,
.new-filter-card a {
    border-radius: 11px;
    color: #263746;
    font-size: 12px;
    font-weight: 700;
    gap: 9px;
    padding: 9px 10px;
}

.new-menu-card a i {
    background: #fff1e7;
    color: #e95f24;
    font-size: 11px;
    height: 28px;
    width: 28px;
}

.new-menu-card a.active,
.new-menu-card a:hover,
.new-filter-card a:hover {
    background: #fff7f1;
    color: #e95f24;
}

.new-filter-card h4,
.new-card-title h4 {
    font-size: 14px;
}

.new-section-heading h2 {
    color: #1f3342;
    font-size: 18px;
}

.new-composer-card {
    padding: 13px;
}

.new-composer-card > img {
    height: 38px;
    margin-right: 10px;
    width: 38px;
}

.new-composer-input {
    min-height: 38px;
    padding: 0 14px;
}

.new-composer-tools {
    gap: 8px;
    margin-top: 12px;
    padding-top: 10px;
}

.new-composer-tools a {
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    padding: 8px;
}

.new-composer-tools i,
.new-chip-row i,
.new-recipe-badges i,
.new-post-actions i {
    font-size: 12px;
}

.new-chip-row {
    gap: 8px;
    margin-bottom: 14px;
}

.new-chip-row a {
    border-color: rgba(117, 86, 61, 0.12);
    color: #6b5949;
    font-size: 11px;
    font-weight: 800;
    padding: 8px 12px;
}

.new-chip-row a.active,
.new-chip-row a:hover {
    background: #243646;
    color: #fff;
}

.new-section-heading {
    margin: 2px 0 12px;
}

.new-section-heading span {
    color: #827466;
    font-size: 11px;
    padding: 7px 10px;
}

.new-recipe-showcase,
.new-recipe-grid {
    gap: 14px;
}

.new-recipe-media {
    border-radius: 14px;
    margin: 13px 0 13px 13px;
}

.new-recipe-media span,
.new-tile-media span {
    background: rgba(31, 51, 66, 0.86);
    bottom: 10px;
    font-size: 10px;
    font-weight: 800;
    padding: 5px 8px;
    right: 10px;
}

.new-recipe-content {
    padding: 13px 15px;
}

.new-card-head {
    margin-bottom: 9px;
}

.new-author {
    gap: 8px;
}

.new-author img {
    height: 34px;
    width: 34px;
}

.new-author strong {
    font-size: 12px;
    font-weight: 800;
}

.new-author small {
    color: #827466;
    font-size: 10px;
}

.new-type-pill {
    background: #fff1e7;
    color: #e95f24;
    font-size: 10px;
    font-weight: 800;
    padding: 6px 9px;
}

.new-type-pill.is-post {
    background: #edf1ff;
    color: #5b65c8;
}

.new-recipe-content h2 {
    font-size: 18px;
    line-height: 1.25;
    margin-bottom: 6px;
}

.new-recipe-content h2 a,
.new-tile-body h3 a,
.new-author strong,
.new-trending-item strong,
.new-foodie-item strong {
    color: #1f3342;
}

.new-recipe-content p,
.new-post-caption {
    color: #6b5949;
    font-size: 12px;
    line-height: 1.5;
}

.new-recipe-badges {
    gap: 6px;
    margin: 2px 0 11px;
}

.new-recipe-badges span {
    background: #f5eee7;
    color: #6b5949;
    font-size: 10px;
    font-weight: 700;
    padding: 6px 8px;
}

.new-recipe-badges .veg {
    background: #edf7eb;
    color: #357b42;
}

.new-recipe-badges .non-veg {
    background: #fff0e7;
    color: #bc4f24;
}

.new-recipe-footer {
    gap: 8px;
}

.new-ajax-btn,
.new-local-action {
    background: #f5eee7;
    border-radius: 10px;
    color: #6b5949;
    font-weight: 800;
    gap: 6px;
    min-height: 34px;
    padding: 0 10px;
}

.new-ajax-btn i,
.new-local-action i {
    font-size: 12px;
}

.new-ajax-btn.is-active,
.new-ajax-btn:hover,
.new-local-action:hover {
    background: #fff1e7;
    color: #e95f24;
}

.new-tile-body {
    padding: 12px;
}

.new-tile-body h3 {
    font-size: 14px;
    font-weight: 800;
}

.new-post-card .new-card-head {
    padding: 13px 14px 0;
}

.new-post-caption {
    padding: 0 14px 12px;
}

.new-linked-recipe {
    background: #fff7f1;
    border-color: #f7d7c2;
    border-radius: 10px;
    color: #e95f24;
    font-size: 12px;
    font-weight: 800;
    margin: 12px 14px;
    padding: 8px 10px;
}

.new-post-actions .new-local-action {
    font-size: 12px;
    padding: 10px 6px;
}

.new-join-card {
    background: radial-gradient(circle at 12% 10%, rgba(255, 122, 47, 0.24), transparent 36%), #243646;
}

.new-join-card h3 {
    font-size: 17px;
}

.new-join-card p {
    font-size: 12px;
}

.new-join-card a {
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    padding: 8px;
}

.new-card-title {
    padding: 5px 5px 10px;
}

.new-card-title a {
    color: #e95f24;
    font-size: 11px;
}

.new-trending-item,
.new-foodie-item {
    border-radius: 12px;
    gap: 9px;
    padding: 7px 5px;
}

.new-trending-item img {
    border-radius: 10px;
    height: 46px;
    width: 60px;
}

.new-foodie-item img {
    height: 46px;
    width: 46px;
}

.new-trending-item strong,
.new-foodie-item strong {
    font-size: 12px;
    font-weight: 800;
}

.new-foodie-item em {
    border-color: #f7d7c2;
    color: #e95f24;
    font-size: 10px;
    padding: 5px 8px;
}

.new-toast {
    background: #243646;
    border-radius: 12px;
    font-size: 12px;
    padding: 11px 15px;
}

@media (max-width: 1240px) {
    .new-feed-topbar {
        grid-template-columns: 170px 1fr auto;
    }

    .new-feed-nav {
        display: none;
    }

    .new-feed-shell {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    }

    .new-left-sidebar {
        display: none;
    }
}

@media (max-width: 991px) {
    .new-right-sidebar {
        display: none;
    }

    .new-feed-shell,
    .new-guest-hero {
        grid-template-columns: 1fr;
        margin-left: 16px;
        margin-right: 16px;
        padding-left: 18px;
        padding-right: 18px;
    }

    .new-feed-topbar {
        grid-template-columns: 150px 1fr;
    }

    .new-feed-actions {
        grid-column: 1 / -1;
        justify-content: center;
        padding-bottom: 12px;
    }

    .new-recipe-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .new-feed-topbar {
        grid-template-columns: 1fr;
        padding: 12px 16px;
    }

    .new-feed-logo,
    .new-feed-actions {
        justify-content: center;
        text-align: center;
    }

    .new-guest-hero h1 {
        font-size: 34px;
    }

    .new-hero-search {
        border-radius: 18px;
        display: block;
    }

    .new-hero-search button {
        margin-top: 10px;
        width: 100%;
    }

    .new-recipe-showcase,
    .new-recipe-card,
    .new-recipe-grid {
        display: block;
    }

    .new-recipe-media {
        border-radius: 0;
        margin: 0;
    }

    .new-recipe-tile,
    .new-recipe-card {
        margin-bottom: 16px;
    }

    .new-post-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Pinterest/Facebook inspired finishing pass: lighter type, softer icons, smaller controls. */
.new-feed-page {
    font-family: "Segoe UI", Helvetica, Arial, sans-serif;
}

.new-feed-page strong,
.new-feed-page h1,
.new-feed-page h2,
.new-feed-page h3,
.new-feed-page h4,
.new-feed-page a,
.new-feed-page button,
.new-feed-page em,
.new-feed-page span {
    letter-spacing: 0;
}

.new-feed-nav a,
.new-login-link,
.new-create-link,
.new-user-pill,
.new-menu-card a,
.new-filter-card a,
.new-composer-tools a,
.new-chip-row a,
.new-type-pill,
.new-recipe-badges span,
.new-ajax-btn,
.new-local-action,
.new-start-btn,
.new-profile-card a,
.new-card-title a,
.new-foodie-item em {
    font-weight: 600;
}

.new-author strong,
.new-trending-item strong,
.new-foodie-item strong,
.new-tile-body h3,
.new-recipe-content h2,
.new-card-title h4,
.new-section-heading h2,
.new-profile-card h3,
.new-join-card h3 {
    font-weight: 650;
}

.new-guest-hero h1 {
    font-weight: 700;
}

.new-feed-search,
.new-hero-search,
.new-composer-input {
    box-shadow: inset 0 0 0 1px rgba(38, 55, 70, 0.04);
}

.new-icon-action,
.new-menu-card a i,
.new-ajax-btn,
.new-local-action {
    box-shadow: none;
}

.new-icon-action {
    border-radius: 50%;
}

.new-menu-card a i {
    background: transparent;
    border-radius: 0;
    color: #536471;
    font-size: 19px;
    height: auto;
    width: 26px;
}

.new-menu-card a.active i,
.new-menu-card a:hover i {
    background: transparent;
    color: #e95f24;
}

.new-menu-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 246, 0.96));
    border-radius: 24px;
    padding: 10px;
}

.new-menu-card a {
    border-radius: 16px;
    color: #243646;
    font-size: 14px;
    gap: 14px;
    min-height: 46px;
    padding: 10px 14px;
}

.new-menu-card a i {
    color: #5d6f7e;
    display: inline-flex;
    flex: 0 0 24px;
    font-size: 18px;
    justify-content: center;
}

.new-menu-card a.active,
.new-menu-card a:hover {
    background: #fff9f5;
    color: #d8521f;
}

.new-menu-card a.active {
    background: linear-gradient(135deg, #fff0e7 0%, #fff7ef 100%);
    color: #ff6422;
    box-shadow: inset 3px 0 0 #ff6422;
}

.new-menu-card a:hover:not(.active) {
    box-shadow: inset 3px 0 0 rgba(255, 100, 34, 0.22);
}

.new-card {
    box-shadow: 0 4px 18px rgba(31, 51, 66, 0.06);
}

.new-feed-stream .new-card {
    margin-bottom: 12px;
}

.new-recipe-card {
    grid-template-columns: minmax(190px, 38%) minmax(0, 62%);
}

.new-recipe-content h2 {
    font-size: 16px;
}

.new-recipe-content p,
.new-post-caption {
    font-size: 12px;
}

.new-recipe-footer {
    border-top: 1px solid rgba(38, 55, 70, 0.07);
    padding-top: 10px;
}

.new-ajax-btn,
.new-local-action {
    min-height: 30px;
    padding: 0 9px;
}

.new-card-tools {
    align-items: center;
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.new-edit-link {
    align-items: center;
    background: #f4f7f9;
    border: 1px solid rgba(31, 51, 66, 0.08);
    border-radius: 999px;
    color: #536471;
    display: inline-flex;
    font-size: 11px;
    font-weight: 750;
    gap: 5px;
    min-height: 28px;
    padding: 0 10px;
}

.new-edit-link:hover {
    background: #1f3342;
    color: #fff;
}

.new-start-btn {
    min-height: 30px;
    padding: 6px 11px;
}

.new-post-actions {
    background: #fff;
}

.new-post-actions .new-local-action {
    color: #536471;
    min-height: 36px;
}

.new-feed-loader,
.new-feed-empty {
    align-items: center;
    color: #6b7280;
    display: none;
    justify-content: center;
    margin: 14px 0 24px;
    text-align: center;
}

.new-feed-loader.is-visible {
    display: flex;
    gap: 10px;
}

.new-feed-loader span {
    animation: newFeedSpin 0.8s linear infinite;
    border: 2px solid #f2dfd0;
    border-top-color: #e95f24;
    border-radius: 50%;
    height: 20px;
    width: 20px;
}

.new-feed-loader strong {
    font-size: 12px;
    font-weight: 500;
}

.new-feed-empty {
    background: #fff;
    border: 1px solid rgba(117, 86, 61, 0.1);
    border-radius: 16px;
    display: block;
    padding: 30px 18px;
}

.new-feed-empty.d-none {
    display: none !important;
}

.new-feed-empty i {
    color: #e95f24;
    font-size: 24px;
    margin-bottom: 8px;
}

.new-feed-empty h3 {
    color: #1f3342;
    font-size: 16px;
    font-weight: 650;
    margin: 0 0 6px;
}

.new-feed-empty p {
    color: #827466;
    font-size: 12px;
    margin: 0;
}

@keyframes newFeedSpin {
    to {
        transform: rotate(360deg);
    }
}

/* ═══════════════════════════════════════════════════════════════
   DARK MODE — Windows 11-inspired indigo/violet palette
   Deep, rich, layered dark. Violet tints, not black + orange.
   ═══════════════════════════════════════════════════════════════ */

html.yc-dark-mode .new-feed-page {
    background:
        radial-gradient(circle at 10% 0%, rgba(124, 58, 237, 0.16), transparent 32%),
        radial-gradient(circle at 88% 22%, rgba(99, 102, 241, 0.11), transparent 28%),
        #0f0f1a;
    color: #e8e6f0;
}

/* Cards / surfaces */
html.yc-dark-mode .new-card,
html.yc-dark-mode .new-menu-card,
html.yc-dark-mode .new-post-actions,
html.yc-dark-mode .new-feed-empty,
html.yc-dark-mode .new-linked-recipe {
    background: linear-gradient(160deg, rgba(28, 25, 52, 0.97), rgba(19, 17, 40, 0.98));
    border-color: rgba(139, 92, 246, 0.14);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 1px 0 rgba(139, 92, 246, 0.08) inset;
}

/* Active sidebar menu item */
html.yc-dark-mode .new-menu-card a.active {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.28), rgba(99, 102, 241, 0.22));
    box-shadow: inset 3px 0 0 #8b5cf6;
    color: #c4b5fd;
}

html.yc-dark-mode .new-menu-card a {
    color: #c8c4de;
}

html.yc-dark-mode .new-menu-card a:hover:not(.active) {
    background: rgba(139, 92, 246, 0.1);
    box-shadow: inset 3px 0 0 rgba(139, 92, 246, 0.35);
    color: #ddd8f8;
}

html.yc-dark-mode .new-menu-card a i,
html.yc-dark-mode .new-menu-card a.active i,
html.yc-dark-mode .new-menu-card a:hover i {
    color: #a78bfa;
}

/* Composer & chip row */
html.yc-dark-mode .new-composer-input {
    background: rgba(28, 25, 52, 0.95);
    border-color: rgba(139, 92, 246, 0.14);
    color: #b4b0cc;
}

html.yc-dark-mode .new-chip-row a {
    background: rgba(28, 25, 52, 0.95);
    border-color: rgba(139, 92, 246, 0.2);
    color: #a5a3b8;
}

html.yc-dark-mode .new-chip-row a.active,
html.yc-dark-mode .new-chip-row a:hover {
    background: linear-gradient(135deg, #7c3aed, #6366f1);
    border-color: rgba(139, 92, 246, 0.5);
    color: #fff;
}

/* Section heading */
html.yc-dark-mode .new-section-heading h2 {
    color: #f5f3ff;
}

html.yc-dark-mode .new-section-heading span {
    color: #7c7a95;
}

/* Card text */
html.yc-dark-mode .new-recipe-content h2,
html.yc-dark-mode .new-recipe-content h2 a,
html.yc-dark-mode .new-tile-body h3,
html.yc-dark-mode .new-tile-body h3 a,
html.yc-dark-mode .new-author strong,
html.yc-dark-mode .new-trending-item strong,
html.yc-dark-mode .new-foodie-item strong {
    color: #f0eeff;
}

html.yc-dark-mode .new-recipe-content p,
html.yc-dark-mode .new-post-caption,
html.yc-dark-mode .new-author small,
html.yc-dark-mode .new-trending-item small {
    color: #9490ac;
}

/* Type pills */
html.yc-dark-mode .new-type-pill {
    background: rgba(124, 58, 237, 0.2);
    color: #c4b5fd;
}

html.yc-dark-mode .new-type-pill.is-post {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
}

/* Recipe badges */
html.yc-dark-mode .new-recipe-badges span {
    background: rgba(139, 92, 246, 0.14);
    color: #b4b0cc;
}

html.yc-dark-mode .new-recipe-badges .veg {
    background: rgba(52, 211, 153, 0.15);
    color: #6ee7b7;
}

html.yc-dark-mode .new-recipe-badges .non-veg {
    background: rgba(251, 113, 133, 0.15);
    color: #fda4af;
}

/* Action buttons */
html.yc-dark-mode .new-ajax-btn,
html.yc-dark-mode .new-local-action {
    background: rgba(28, 25, 52, 0.8);
    border-color: rgba(139, 92, 246, 0.18);
    color: #a5a3b8;
}

html.yc-dark-mode .new-ajax-btn.is-active,
html.yc-dark-mode .new-ajax-btn:hover,
html.yc-dark-mode .new-local-action:hover {
    background: rgba(124, 58, 237, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
    color: #c4b5fd;
}

html.yc-dark-mode .new-post-actions .new-local-action {
    color: #9490ac;
}

/* Card footer separator */
html.yc-dark-mode .new-recipe-footer {
    border-top-color: rgba(139, 92, 246, 0.12);
}

/* Edit link */
html.yc-dark-mode .new-edit-link {
    background: rgba(28, 25, 52, 0.8);
    border-color: rgba(139, 92, 246, 0.18);
    color: #9490ac;
}

html.yc-dark-mode .new-edit-link:hover {
    background: rgba(124, 58, 237, 0.25);
    border-color: rgba(139, 92, 246, 0.4);
    color: #c4b5fd;
}

/* Media time badge */
html.yc-dark-mode .new-recipe-media span,
html.yc-dark-mode .new-tile-media span {
    background: rgba(15, 12, 30, 0.88);
    color: #d8d4f5;
}

/* Join card */
html.yc-dark-mode .new-join-card {
    background:
        radial-gradient(circle at 12% 10%, rgba(124, 58, 237, 0.3), transparent 40%),
        linear-gradient(135deg, #1e1a3f, #13102b);
    border-color: rgba(139, 92, 246, 0.22);
}

html.yc-dark-mode .new-join-card h3 {
    color: #f0eeff;
}

html.yc-dark-mode .new-join-card p {
    color: #9490ac;
}

/* Profile card */
html.yc-dark-mode .new-profile-card h3 {
    color: #f0eeff;
}

html.yc-dark-mode .new-profile-card p {
    color: #9490ac;
}

html.yc-dark-mode .new-profile-card img {
    border-color: rgba(139, 92, 246, 0.3);
}

/* Linked recipe */
html.yc-dark-mode .new-linked-recipe {
    border-color: rgba(139, 92, 246, 0.25);
    color: #a78bfa;
}

/* Feed loader */
html.yc-dark-mode .new-feed-loader {
    color: #7c7a95;
}

html.yc-dark-mode .new-feed-loader span {
    border-color: rgba(139, 92, 246, 0.2);
    border-top-color: #8b5cf6;
}

/* Feed empty */
html.yc-dark-mode .new-feed-empty i {
    color: #8b5cf6;
}

html.yc-dark-mode .new-feed-empty h3 {
    color: #f0eeff;
}

html.yc-dark-mode .new-feed-empty p {
    color: #9490ac;
}

/* Toast */
html.yc-dark-mode .new-toast {
    background: rgba(28, 25, 52, 0.97);
    border: 1px solid rgba(139, 92, 246, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    color: #e8e6f0;
}

/* Foodies card "Follow" button border */
html.yc-dark-mode .new-foodie-item em {
    border-color: rgba(139, 92, 246, 0.3);
    color: #a78bfa;
}

/* Filter card links */
html.yc-dark-mode .new-filter-card a {
    color: #c8c4de;
}

html.yc-dark-mode .new-filter-card a:hover {
    background: rgba(139, 92, 246, 0.12);
    color: #c4b5fd;
}

/* Card title link */
html.yc-dark-mode .new-card-title a {
    color: #a78bfa;
}

/* Composer tools */
html.yc-dark-mode .new-composer-tools a {
    color: #9490ac;
}

html.yc-dark-mode .new-composer-tools a:hover {
    background: rgba(139, 92, 246, 0.12);
    color: #c4b5fd;
}

/* Guest Sidebar Scroll Behavior */
.is-guest .new-left-sidebar {
    max-height: calc(100vh - 120px) !important;
    overflow-y: auto !important;
}

/* Post Actions Focus Outline Reset */
.new-post-actions .new-local-action:focus,
.new-post-actions .new-local-action:active,
.new-post-actions .new-local-action:focus-visible {
    outline: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    border: 0 !important;
}

@media (max-width: 720px) {
    .new-feed-page {
        padding-bottom: 75px !important;
    }

    .new-feed-shell,
    .new-guest-hero {
        margin-left: 6px !important;
        margin-right: 6px !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
}

