/* ============================================
   KONKANI KITCHEN – CUSTOM CSS
   ============================================ */

/* ---- Page loader ---- */
#kk-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #fff8f7;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.38s ease, visibility 0.38s ease;
}
#kk-loader.kk-done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.kk-loader-badge {
    display: block;
    width: 60px;
    height: 60px;
    color: #441736;
    animation: kk-spin 2.4s linear infinite;
}
.kk-loader-badge svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: currentColor;
}
@keyframes kk-spin {
    to { transform: rotate(360deg); }
}

/* ---- Footer brand badge (rotating) ---- */
.kk-footer-badge {
    display: block;
    width: 68px;
    height: 68px;
    color: rgba(232, 213, 227, 0.22);
    animation: kk-spin 40s linear infinite;
    margin-bottom: 14px;
}
.kk-footer-badge svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: currentColor;
}

/* ---- 404 badge emblem ---- */
.kk-page-badge {
    display: block;
    width: 72px;
    height: 72px;
    color: #441736;
    opacity: 0.15;
}
.kk-page-badge svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: currentColor;
}

@media (prefers-reduced-motion: reduce) {
    .kk-loader-badge,
    .kk-footer-badge { animation: none; }
}

/* ---- Global container (reliable side padding) ---- */
.kk-container {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}
@media (min-width: 1024px) {
    .kk-container {
        padding-left: 64px;
        padding-right: 64px;
    }
}

/* ---- Material Symbols defaults ---- */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
    line-height: 1;
}

/* ---- Grain paper texture ---- */
.grain-bg {
    background-image: url("https://www.transparenttextures.com/patterns/natural-paper.png");
}

/* ---- Torn paper bottom edge ---- */
.torn-edge {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M0 10 L5 8 L10 10 L15 7 L20 10 L25 9 L30 10 L35 7 L40 10 L45 8 L50 10 L55 7 L60 10 L65 9 L70 10 L75 7 L80 10 L85 8 L90 10 L95 7 L100 10 Z' fill='black'/%3E%3C/svg%3E");
    mask-size: 100% 12px;
    mask-repeat: no-repeat;
    mask-position: bottom;
    padding-bottom: 12px;
}

/* ---- Ambient purple-tinted shadow ---- */
.ambient-shadow {
    box-shadow: 0 20px 40px -15px rgba(68, 23, 54, 0.08);
}

/* ---- Literata italic captions ---- */
.scrapbook-caption {
    font-family: 'Literata', serif;
    font-style: italic;
}

/* ============================================
   STRUCTURAL RESETS
   ============================================ */
body {
    background-color: #fff8f7;
    color: #241919;
    margin: 0;
    padding: 0;
}

/* Strip GeneratePress wrapper interference */
.site, .grid-container, .site-content, .site-content-contain {
    all: unset;
    display: block;
}

/* ============================================
   HEADER
   ============================================ */
#masthead {
    background-color: rgba(255, 248, 247, 0.96);
    border-bottom: 1px solid rgba(129, 115, 122, 0.12);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

/* Logo */
#site-logo {
    display: flex;
    align-items: center;
    color: #441736;
    text-decoration: none;
    transition: opacity 0.2s;
    line-height: 1;
}
#site-logo:hover { opacity: 0.72; }
#site-logo svg {
    display: block;
    height: 38px;
    width: auto;
    fill: currentColor;
}
#site-logo svg path,
#site-logo svg polygon,
#site-logo svg .cls-1 {
    fill: currentColor;
}

/* Dark footer logo */
.kk-footer-logo {
    display: block;
    color: #fff8f7;
    text-decoration: none;
    margin-bottom: 20px;
    opacity: 0.9;
    transition: opacity 0.2s;
}
.kk-footer-logo:hover { opacity: 1; }

/* Dark footer 4-column grid */
.kk-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
@media (min-width: 640px) {
    .kk-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
    .kk-footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}


/* Footer nav links */
.kk-footer-link {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: rgba(232, 213, 227, 0.6);
    text-decoration: none;
    transition: color 0.18s;
    display: inline-block;
}
.kk-footer-link:hover { color: #fff8f7; }

/* Legacy footer-brand-logo (kept for backwards compat) */
.footer-brand-logo {
    display: inline-block;
    color: #441736;
    text-decoration: none;
    margin-bottom: 16px;
    transition: opacity 0.2s;
}
.footer-brand-logo:hover { opacity: 0.75; }
.footer-brand-logo svg {
    display: block;
    height: 38px;
    width: auto;
    fill: currentColor;
}
.footer-brand-logo svg path,
.footer-brand-logo svg .cls-1 {
    fill: currentColor;
}

/* ── Desktop nav list (WordPress wp_nav_menu output) ── */
ul.kk-nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    padding: 0;
    margin: 0;
}
ul.kk-nav-menu > li {
    list-style: none;
    margin: 0;
    padding: 0;
}
ul.kk-nav-menu > li > a {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-decoration: none;
    color: #504349;
    transition: color 0.22s;
    padding-bottom: 2px;
    display: block;
    white-space: nowrap;
}
ul.kk-nav-menu > li > a:hover { color: #a43b28; }

/* WordPress active-state classes on <li> */
ul.kk-nav-menu > li.current-menu-item > a,
ul.kk-nav-menu > li.current_page_ancestor > a,
ul.kk-nav-menu > li.current-menu-ancestor > a,
ul.kk-nav-menu > li.current_page_parent > a {
    color: #a43b28;
    border-bottom: 2px solid #a43b28;
    padding-bottom: 0;
}
/* Hide sub-menus on desktop for now */
ul.kk-nav-menu .sub-menu { display: none; }

/* ── Mobile nav list ── */
ul.kk-nav-menu-mobile {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}
ul.kk-nav-menu-mobile > li { list-style: none; margin: 0; }
ul.kk-nav-menu-mobile > li > a {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #504349;
    text-decoration: none;
    display: block;
    padding: 11px 0;
    border-bottom: 1px solid rgba(129,115,122,.08);
    transition: color 0.2s, padding-left 0.15s;
}
ul.kk-nav-menu-mobile > li > a:hover {
    color: #441736;
    padding-left: 5px;
}
ul.kk-nav-menu-mobile > li.current-menu-item > a {
    color: #a43b28;
    font-weight: 600;
}
/* Sub-menu in mobile – show as indented list */
ul.kk-nav-menu-mobile .sub-menu {
    list-style: none;
    padding: 0 0 4px 16px;
    margin: 0;
}
ul.kk-nav-menu-mobile .sub-menu li a {
    font-size: 14px;
    color: #81737a;
    padding: 7px 0;
    border-bottom: none;
    display: block;
}
ul.kk-nav-menu-mobile .sub-menu li a:hover { color: #a43b28; }

/* Admin notice when no menu is assigned */
.kk-nav-setup-notice {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
}
.kk-nav-setup-notice a {
    color: #a43b28;
    text-decoration: none;
    border-bottom: 1px solid rgba(164,59,40,.3);
}

/* Legacy class kept for any template still using it */
.kk-nav-link {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-decoration: none;
    color: #504349;
    transition: color 0.25s;
}

/* Header CTA button */
.kk-btn-primary {
    background-color: #441736;
    color: #ffffff;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 10px 24px;
    border-radius: 0.25rem;
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.2s, transform 0.15s;
    border: none;
    cursor: pointer;
}
.kk-btn-primary:hover { opacity: 0.88; color: #ffffff; }

/* Mobile nav hidden by default */
#mobile-navigation {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.25s ease;
}
#mobile-navigation.is-open {
    max-height: 500px;
    opacity: 1;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-headline {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(34px, 4.5vw, 52px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #441736;
    margin-bottom: 32px;
    position: relative;
}
.hero-headline .italic-accent {
    font-style: italic;
    font-weight: 400;
    color: #a43b28;
    display: block;
}

.hero-body {
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    line-height: 28px;
    color: #504349;
    max-width: 440px;
    margin-bottom: 40px;
}

/* ============================================
   SECTION HEADINGS
   ============================================ */
.kk-section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(32px, 3.5vw, 48px);
    font-weight: 700;
    line-height: 1.15;
    color: #441736;
    letter-spacing: -0.01em;
}
.kk-section-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    line-height: 28px;
    color: #504349;
}
.kk-section-link {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #a43b28;
    text-decoration: none;
    border-bottom: 2px solid #a43b28;
    padding-bottom: 3px;
    transition: color 0.2s, border-color 0.2s;
}
.kk-section-link:hover { color: #441736; border-color: #441736; }

/* ============================================
   RECIPE CARDS
   ============================================ */
.recipe-card-placeholder {
    background: linear-gradient(135deg, #ffe9e8 0%, #f9e3e3 55%, #f3dedd 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Card title */
.recipe-card-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 30px;
    color: #441736;
    text-decoration: none;
    display: block;
    transition: color 0.2s;
}
.recipe-card-title:hover { color: #a43b28; }

/* Aaji's Wisdom callout */
.aajis-wisdom {
    background: rgba(164, 59, 40, 0.08);
    border-left: 4px solid #a43b28;
    padding: 32px;
    border-radius: 0 0.5rem 0.5rem 0;
}
.aajis-wisdom p {
    font-family: 'Literata', serif;
    font-style: italic;
    font-size: 18px;
    line-height: 28px;
    color: #441736;
}

/* ============================================
   FOOTER
   ============================================ */
#colophon {
    background-color: #fff0f0;
    border-top: 1px solid rgba(129, 115, 122, 0.12);
}

.footer-brand-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 24px;
    font-weight: 700;
    color: #441736;
    margin-bottom: 16px;
    display: block;
}
.footer-tagline {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: #504349;
    margin-bottom: 24px;
}
.footer-col-title {
    font-family: 'Literata', serif;
    font-size: 20px;
    font-weight: 600;
    color: #441736;
    margin-bottom: 24px;
    display: block;
}
.footer-link {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    color: #504349;
    text-decoration: none;
    display: inline-block;
    transition: color 0.2s, transform 0.15s;
}
.footer-link:hover { color: #441736; transform: translateX(3px); }

.footer-social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(129, 115, 122, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #441736;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.footer-social-btn:hover { background: #441736; color: #ffffff; }

.footer-email-input {
    width: 100%;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid rgba(129, 115, 122, 0.2);
    border-radius: 0.25rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    color: #241919;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.footer-email-input:focus { border-color: #441736; }
.footer-newsletter-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: #504349;
    margin-bottom: 16px;
    display: block;
}

.footer-bottom {
    border-top: 1px solid rgba(129, 115, 122, 0.08);
}
.footer-copyright {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    color: #504349;
}
.footer-legal-link {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    letter-spacing: 0.04em;
    color: #504349;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-legal-link:hover { color: #441736; }

/* ============================================
   CATEGORY ARCHIVE PAGE
   ============================================ */

/* Filter chips */
.kk-chip {
    display: inline-flex;
    align-items: center;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #504349;
    background: transparent;
    border: 1px solid rgba(129, 115, 122, 0.25);
    padding: 6px 14px;
    border-radius: 30px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.12s;
    white-space: nowrap;
    line-height: 1;
}
.kk-chip:hover {
    background: rgba(68, 23, 54, 0.07);
    border-color: rgba(68, 23, 54, 0.25);
    color: #441736;
    transform: translateY(-1px);
}
.kk-chip--active {
    font-weight: 600;
}

.kk-filter-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #81737a;
    padding: 0 4px;
}

/* Pagination */
.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #504349;
    text-decoration: none;
    border: 1px solid rgba(129, 115, 122, 0.2);
    border-radius: 0.25rem;
    margin: 0 3px;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.page-numbers:hover {
    background: rgba(68, 23, 54, 0.06);
    border-color: rgba(68, 23, 54, 0.25);
    color: #441736;
}
.page-numbers.current {
    background: #441736;
    color: #ffffff;
    border-color: #441736;
    font-weight: 600;
}
.page-numbers.dots {
    border: none;
    background: none;
    color: #81737a;
}
.page-numbers.prev,
.page-numbers.next {
    background: #f9e3e3;
    border-color: rgba(164, 59, 40, 0.2);
    color: #a43b28;
}
.page-numbers.prev:hover,
.page-numbers.next:hover {
    background: #a43b28;
    color: #ffffff;
    border-color: #a43b28;
}
/* Paginate links list wrapper */
nav .page-numbers ul,
.pagination ul {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ============================================
   INGREDIENT SPOTLIGHT
   ============================================ */
.ingredient-img {
    transition: transform 0.5s ease;
    overflow: hidden;
    border-radius: 1rem;
}
.ingredient-img:hover { transform: translateY(-8px); }

/* ============================================
   FAB
   ============================================ */
.fab-btn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 56px;
    height: 56px;
    background: #a43b28;
    color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(164, 59, 40, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: transform 0.2s;
    z-index: 40;
}
.fab-btn:hover { transform: scale(1.1); }
.fab-tooltip {
    position: absolute;
    right: 68px;
    background: #441736;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}
.fab-btn:hover .fab-tooltip { opacity: 1; }

/* ============================================
   SEARCH TOGGLE BUTTON
   ============================================ */
#search-toggle {
    background: transparent;
    border: none;
    padding: 8px;
    border-radius: 8px;
    color: #504349;
    cursor: pointer;
    line-height: 0;
    transition: background 0.18s, color 0.18s;
}
#search-toggle:hover {
    background: rgba(68, 23, 54, 0.07);
    color: #441736;
}
#search-toggle:focus-visible {
    outline: 2px solid rgba(68, 23, 54, 0.3);
    outline-offset: 2px;
}

/* ============================================
   SEARCH OVERLAY
   ============================================ */
#search-overlay .search-field,
#search-overlay input[type="search"] {
    flex: 1;
    padding: 16px 24px;
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    color: #241919;
    background: #ffffff;
    border: none;
    border-radius: 0.25rem;
    outline: none;
}
#search-overlay .search-submit,
#search-overlay button[type="submit"] {
    background: #441736;
    color: #ffffff;
    padding: 16px 24px;
    border: none;
    border-radius: 0.25rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
}
#search-overlay .search-submit:hover { opacity: 0.9; }

/* ============================================
   SINGLE POST
   ============================================ */
.kk-single .entry-content { max-width: 100%; }
.kk-single .kk-printable  { box-shadow: 0 2px 20px rgba(68,23,54,.06); }

/* ============================================
   WORDPRESS CONTENT (single post)
   ============================================ */
.entry-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 30px; line-height: 38px; font-weight: 600; color: #441736; margin-bottom: 16px;
}
.entry-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px; line-height: 32px; font-weight: 600; color: #441736; margin-bottom: 12px;
}
.entry-content p {
    font-family: 'DM Sans', sans-serif;
    font-size: 18px; line-height: 28px; color: #504349; margin-bottom: 24px;
}
.entry-content a { color: #441736; }
.entry-content ul, .entry-content ol {
    font-family: 'DM Sans', sans-serif;
    font-size: 18px; line-height: 28px; color: #504349; padding-left: 24px; margin-bottom: 24px;
}
.entry-content blockquote {
    font-family: 'Literata', serif;
    font-style: italic; font-size: 20px; color: #441736;
    border-left: 4px solid #a43b28;
    padding: 16px 24px; margin: 32px 0;
    background: rgba(164, 59, 40, 0.05);
    border-radius: 0 0.5rem 0.5rem 0;
}

/* ============================================
   COMMENTS
   ============================================ */

#comments {
    font-family: 'DM Sans', sans-serif;
}
#comments .kk-comments-title {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    color: #441736;
    margin: 0 0 28px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(164, 59, 40, 0.15);
}

/* Comment list */
.kk-comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 48px;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.kk-comment-item {
    padding: 22px 0;
    border-bottom: 1px solid rgba(129, 115, 122, 0.1);
}
.kk-comment-item:last-child { border-bottom: none; }

.kk-comment-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    flex-shrink: 0;
}
.kk-comment-meta-wrap {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.kk-comment-author-name {
    font-size: 14px;
    font-weight: 700;
    color: #241919;
    margin-bottom: 2px;
}
.kk-comment-date {
    font-size: 12px;
    color: #81737a;
    letter-spacing: 0.02em;
}
.kk-comment-body {
    margin: 12px 0 10px 56px;
    font-size: 15px;
    line-height: 25px;
    color: #504349;
}
.kk-comment-body p { margin: 0 0 10px; }
.kk-comment-body p:last-child { margin-bottom: 0; }

.kk-comment-pending {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #a43b28;
    background: rgba(164, 59, 40, 0.08);
    border: 1px solid rgba(164, 59, 40, 0.15);
    border-radius: 30px;
    padding: 2px 10px;
    margin: 0 0 8px 56px;
}

.comment-reply-link {
    margin-left: 56px;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #a43b28;
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: color 0.15s;
}
.comment-reply-link:hover { color: #441736; }

/* Nested children indent */
.children {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid rgba(129, 115, 122, 0.07);
    padding-left: 56px;
}
.children .kk-comment-item { border-bottom: none; padding: 18px 0; }

/* ── Comment form ── */
#respond {
    background: #fff;
    border: 1px solid rgba(129, 115, 122, 0.12);
    border-radius: 1rem;
    padding: 32px;
}
#reply-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: #441736;
    margin: 0 0 24px;
}
#reply-title small { font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500; }
#reply-title small a { color: #81737a; text-decoration: none; }

#commentform .comment-notes,
#commentform .logged-in-as {
    font-size: 13px;
    color: #81737a;
    margin-bottom: 20px;
}

/* Row of name + email side by side on wider screens */
#commentform .comment-form-fields-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
@media (max-width: 560px) {
    #commentform .comment-form-fields-row { grid-template-columns: 1fr; }
}

#commentform label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #81737a;
    margin-bottom: 6px;
}
#commentform input[type="text"],
#commentform input[type="email"],
#commentform input[type="url"],
#commentform textarea {
    width: 100%;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: #241919;
    background: #fff8f7;
    border: 1.5px solid rgba(129, 115, 122, 0.2);
    border-radius: 0.375rem;
    padding: 11px 14px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}
#commentform input:focus,
#commentform textarea:focus {
    border-color: #441736;
    box-shadow: 0 0 0 3px rgba(68, 23, 54, 0.08);
}
#commentform textarea {
    min-height: 130px;
    resize: vertical;
    margin-bottom: 16px;
}
#commentform .comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #81737a;
    margin-bottom: 20px;
}
#commentform .comment-form-cookies-consent input { width: auto; }
#commentform #submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #441736;
    color: #fff8f7;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 13px 28px;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: opacity 0.2s;
}
#commentform #submit:hover { opacity: 0.85; }

/* ============================================
   MOBILE RESPONSIVE OVERRIDES  (≤ 640px)
   ============================================ */

/* Prev / Next navigation — stack on mobile, side-by-side on sm+ */
.kk-prevnext-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 60px;
}
@media (min-width: 480px) {
    .kk-prevnext-grid.has-both {
        flex-direction: row;
    }
    .kk-prevnext-grid.has-both > a { flex: 1; }
}

@media (max-width: 640px) {

    /* Typography scale-down */
    .kk-section-subtitle { font-size: 16px; line-height: 26px; }
    .hero-body           { font-size: 16px; line-height: 26px; }
    .entry-content p,
    .entry-content ul,
    .entry-content ol    { font-size: 16px; line-height: 27px; }

    /* Comment form — less padding on small screens */
    #respond { padding: 20px 16px; }

    /* Nested comment indent — reduce so text isn't crushed */
    .children                { padding-left: 28px; }
    .kk-comment-body         { margin-left: 40px; }
    .kk-comment-pending,
    .comment-reply-link      { margin-left: 40px; }

    /* FAB — bring closer to edge */
    .fab-btn { bottom: 20px; right: 14px; width: 48px; height: 48px; }

    /* Newsletter form — allow full width on mobile */
    #newsletter form,
    #newsletter .footer-email-input { max-width: 100%; }

    /* Single post hero — slightly shorter on mobile */
    .kk-single .relative[style*="clamp(360px"] {
        height: clamp(240px, 45vw, 360px) !important;
    }

    /* Recipe card header — tighten padding */
    #kk-recipe-card [style*="padding:20px 28px"] {
        padding: 16px 18px !important;
    }
    #kk-recipe-card [style*="padding:28px 28px"] {
        padding: 20px 18px !important;
    }
}
