/*
Theme Name: Newsprint
Theme URI: https://harshitakitchen.com/
Author: Harshita's Kitchen
Description: A minimal, old-school newspaper-style recipe theme. Black and white, Georgia serif, one brick-red accent.
Version: 2.4
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: newsprint
*/

/* ---------- Colors & basics (change these to restyle the whole site) ---------- */
:root {
  --ink: #1a1a1a;
  --muted: #666666;
  --rule: #dddddd;
  --accent: #8b2c22;
  --paper: #ffffff;
  --soft: #f2f2f2;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Verdana, Geneva, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif); font-size: 17px; line-height: 1.65; }
a { color: var(--ink); }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 32px 32px 48px; }

/* ---------- Masthead ---------- */
.masthead { text-align: center; border-bottom: 1px solid var(--ink); padding-bottom: 18px; }
.site-title { font-size: 44px; line-height: 1.1; text-decoration: none; letter-spacing: .5px; display: inline-block; }
.site-tagline { display: block; font-style: italic; color: #555; font-size: 16px; margin-top: 6px; }

/* ---------- Menu ---------- */
.main-nav ul { list-style: none; margin: 0; padding: 6px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 22px; }
.main-nav a { display: inline-block; padding: 10px 0; font-family: var(--sans); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
.main-nav .current-menu-item > a, .main-nav .current-cat > a { color: var(--accent); }

/* ---------- Search ---------- */
.search-form { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 18px 0 28px; }
.search-form input[type="search"] { height: 46px; width: 380px; max-width: 100%; padding: 0 12px; font: 16px var(--serif); border: 1px solid var(--ink); background: #fff; }
.search-form button { height: 46px; padding: 0 20px; background: var(--ink); color: #fff; border: 1px solid var(--ink); font: 14px var(--sans); letter-spacing: 1px; text-transform: uppercase; cursor: pointer; }
.search-form button:hover { background: var(--accent); border-color: var(--accent); }
.screen-reader-text { position: absolute; left: -9999px; }

/* ---------- Layout ---------- */
.columns { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; align-items: start; }
.content { min-width: 0; }
.sidebar { min-width: 0; font-size: 15px; }
@media (max-width: 760px) { .columns { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
/* Widgets inside the sidebar stay narrow */
.sidebar .search-form { justify-content: flex-start; margin: 0; flex-wrap: nowrap; }
.sidebar .search-form input[type="search"], .sidebar input[type="search"], .sidebar input[type="text"] { width: 100%; min-width: 0; height: 44px; font-size: 15px; }
.sidebar .search-form button, .sidebar button { padding: 0 12px; height: 44px; font-size: 12px; }
.sidebar select { width: 100%; max-width: 100%; height: 40px; font: 14px var(--serif); border: 1px solid var(--ink); background: #fff; }
.sidebar .widget ul { padding-left: 18px; margin: 0; }
.sidebar .widget li { margin-bottom: 6px; }
.sidebar img, .sidebar iframe { max-width: 100%; }

.label { font-family: var(--sans); font-size: 12px; text-transform: uppercase; letter-spacing: 2px; color: #555; font-weight: normal; margin: 0 0 6px; }

/* ---------- Recipe list ---------- */
.entry-row { display: flex; flex-wrap: wrap; gap: 18px; padding: 18px 0; border-top: 1px solid var(--rule); }
.entry-thumb { flex: 0 0 140px; width: 140px; height: 105px; background: var(--soft); overflow: hidden; display: block; }
.entry-thumb img { width: 140px; height: 105px; object-fit: cover; display: block; }
.entry-text { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.entry-title { font-size: 22px; line-height: 1.25; margin: 0; font-weight: normal; }
.entry-title a { text-decoration: none; }
.entry-meta { font-family: var(--sans); font-size: 12px; color: var(--muted); }
.entry-meta a { color: var(--muted); }
.more-link { font-family: var(--sans); font-size: 13px; color: var(--accent); padding: 6px 0; align-self: flex-start; }

.pagination { border-top: 1px solid var(--rule); padding-top: 14px; font-family: var(--sans); font-size: 13px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.pagination .current { font-weight: bold; }

/* ---------- Sidebar ---------- */
.side-box { margin-bottom: 28px; }
.side-box .label { border-bottom: 1px solid var(--ink); padding-bottom: 6px; }
.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-list li { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; }
.cat-list .count { color: #777; font-family: var(--sans); font-size: 12px; }
.sidebar .widget ul { padding-left: 18px; }

/* ---------- Single recipe ---------- */
.crumbs { font-family: var(--sans); font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }
.post-title { font-size: 40px; line-height: 1.15; font-weight: normal; margin: 0 0 6px; }
.post-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 24px; }
.btn { display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; font: 14px var(--sans); letter-spacing: 1px; text-transform: uppercase; text-decoration: none; border: 1px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; }
.btn:hover { color: var(--accent); border-color: var(--accent); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--accent); color: #fff; }
/* Headings inside posts: always bigger than the 17px body text */
.post-body h1, .post-body h2, .post-body h3, .post-body h4, .post-body h5, .post-body h6 { font-family: var(--serif); color: var(--ink); line-height: 1.25; margin: 1.6em 0 0.5em; }
.post-body h1 { font-size: 32px; font-weight: normal; }
.post-body h2 { font-size: 28px; font-weight: normal; border-bottom: 1px solid var(--rule); padding-bottom: 4px; }
.post-body h3 { font-size: 24px; font-weight: normal; }
.post-body h4 { font-size: 21px; font-weight: bold; }
.post-body h5 { font-size: 19px; font-weight: bold; }
.post-body h6 { font-size: 18px; font-weight: bold; }
.post-body h1 strong, .post-body h2 strong, .post-body h3 strong, .post-body h4 strong, .post-body h5 strong, .post-body h6 strong { font-size: inherit; }
.post-body li { margin-bottom: 6px; }
.post-body blockquote { margin: 20px 0; padding: 4px 18px; border-left: 3px solid var(--ink); font-style: italic; }
.post-tags { font-family: var(--sans); font-size: 12px; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 12px; margin-top: 24px; }
.post-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-family: var(--sans); font-size: 13px; border-top: 1px solid var(--rule); margin-top: 18px; padding-top: 12px; }

/* ---------- Comments ---------- */
.comments { border-top: 1px solid var(--ink); margin-top: 32px; padding-top: 16px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { border-top: 1px solid var(--rule); padding: 12px 0; }
.comment-meta { font-family: var(--sans); font-size: 12px; color: var(--muted); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 10px; font: 16px var(--serif); border: 1px solid var(--ink); }
.comment-form .submit { height: 46px; padding: 0 20px; background: var(--ink); color: #fff; border: 0; font: 14px var(--sans); letter-spacing: 1px; text-transform: uppercase; cursor: pointer; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--ink); margin-top: 40px; padding-top: 14px; text-align: center; font-family: var(--sans); font-size: 12px; color: var(--muted); }
.site-footer ul { list-style: none; padding: 0; margin: 0 0 6px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; }

/* ---------- Phones ---------- */
@media (max-width: 600px) {
  .site-title { font-size: 34px; }
  .post-title { font-size: 30px; }
  .entry-title { font-size: 19px; }
}

/* ---------- Print: just the recipe ---------- */
@media print {
  .main-nav, .search-form, .sidebar, .post-actions, .comments, .post-nav, .site-footer { display: none !important; }
  .wrap { padding: 0; }
  body { font-size: 12pt; }
}

/* ---------- Kitchen Help (Q&A) ---------- */
.qa-intro { color: #444; margin: 0 0 18px; }
.qa-topics { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; font-family: var(--sans); font-size: 13px; padding: 10px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-bottom: 8px; }
.qa-index { list-style: none; margin: 0; padding: 0; }
.qa-index li { padding: 14px 0; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 4px; }
.qa-q { font-size: 21px; line-height: 1.3; text-decoration: none; }
.qa-a { color: var(--muted); font-size: 15px; }
.qa-short { border: 1px solid var(--ink); padding: 12px 16px; margin: 18px 0 22px; }
.qa-short .label { display: block; margin-bottom: 4px; }
.qa-short p { margin: 0; font-size: 18px; }
.qa-list { margin: 0 0 6px; padding-left: 18px; }
.qa-list li { margin-bottom: 6px; }

/* ---------- Uniform images inside posts ---------- */
.post-body img,
.post-body .wp-block-image img,
.post-body figure img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: min(100%, 560px) !important;
  max-height: 480px !important;
  margin: 18px auto !important;
}
.post-body figure { margin-left: auto; margin-right: auto; max-width: 100% !important; }
.post-body figcaption { text-align: center; font-family: var(--sans); font-size: 12px; color: var(--muted); }

/* ---------- WP Recipe Maker card: match the Newsprint look ---------- */
.wprm-recipe-container .wprm-recipe,
.wprm-recipe-container .wprm-recipe * {
  font-family: var(--serif) !important;
  color: var(--ink);
}
.wprm-recipe-container .wprm-recipe {
  border: 1px solid var(--ink) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #fff !important;
  padding: 24px !important;
  margin: 32px 0 !important;
  font-size: 17px !important;
  line-height: 1.6 !important;
}
/* Title */
.wprm-recipe-container .wprm-recipe-name {
  font-size: 30px !important;
  font-weight: normal !important;
  line-height: 1.2 !important;
  border-bottom: 1px solid var(--ink) !important;
  padding-bottom: 8px !important;
  margin-bottom: 10px !important;
}
.wprm-recipe-container .wprm-recipe-summary { font-size: 16px !important; color: #444 !important; }
.wprm-recipe-container .wprm-recipe-image img { border-radius: 0 !important; }
/* Section headings: INGREDIENTS, INSTRUCTIONS, NOTES... */
.wprm-recipe-container .wprm-recipe-header,
.wprm-recipe-container h3.wprm-recipe-header {
  font-family: var(--sans) !important;
  font-size: 12px !important;
  font-weight: normal !important;
  text-transform: uppercase !important;
  letter-spacing: 2px !important;
  color: #555 !important;
  border-bottom: 1px solid var(--ink) !important;
  padding-bottom: 6px !important;
  margin: 26px 0 10px !important;
}
.wprm-recipe-container .wprm-decoration-line,
.wprm-recipe-container .wprm-recipe-header::after,
.wprm-recipe-container .wprm-recipe-header::before { border-color: transparent !important; background: none !important; }
/* Time / servings boxes */
.wprm-recipe-container .wprm-recipe-details-label,
.wprm-recipe-container .wprm-recipe-tag-label {
  font-family: var(--sans) !important;
  font-size: 11px !important;
  text-transform: uppercase !important;
  letter-spacing: 1.5px !important;
  color: var(--muted) !important;
}
.wprm-recipe-container .wprm-recipe-details,
.wprm-recipe-container .wprm-recipe-details-unit,
.wprm-recipe-container .wprm-recipe-tag { font-size: 17px !important; color: var(--ink) !important; }
.wprm-recipe-container .wprm-recipe-icon svg,
.wprm-recipe-container .wprm-recipe-icon svg * { fill: var(--ink) !important; stroke: var(--ink) !important; }
/* Ingredients & steps */
.wprm-recipe-container .wprm-recipe-ingredient,
.wprm-recipe-container .wprm-recipe-instruction { font-size: 17px !important; margin-bottom: 8px !important; }
.wprm-recipe-container .wprm-recipe-ingredient-notes,
.wprm-recipe-container .wprm-recipe-ingredient-unit-system { color: var(--muted) !important; font-style: italic; }
.wprm-recipe-container .wprm-recipe-notes,
.wprm-recipe-container .wprm-recipe-notes * { font-size: 16px !important; }
.wprm-recipe-container a { color: var(--ink) !important; text-decoration: underline !important; }
.wprm-recipe-container a:hover { color: var(--accent) !important; }
/* Print / Pin buttons */
.wprm-recipe-container a.wprm-recipe-link,
.wprm-recipe-container .wprm-recipe-link {
  font-family: var(--sans) !important;
  font-size: 13px !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  text-decoration: none !important;
  border-radius: 0 !important;
  border: 1px solid var(--ink) !important;
  background: #fff !important;
  color: var(--ink) !important;
  min-height: 46px;
}
.wprm-recipe-container a.wprm-recipe-print,
.wprm-recipe-container .wprm-recipe-print { background: var(--ink) !important; color: #fff !important; }
.wprm-recipe-container a.wprm-recipe-link:hover { background: var(--accent) !important; border-color: var(--accent) !important; color: #fff !important; }
.wprm-recipe-container .wprm-recipe-link svg * { fill: currentColor !important; stroke: currentColor !important; }
/* Stars in the accent red */
.wprm-recipe-container .wprm-recipe-rating svg polygon,
.wprm-recipe-container .wprm-recipe-rating svg path { fill: var(--accent) !important; stroke: var(--accent) !important; }
.wprm-recipe-container .wprm-recipe-rating-details { font-family: var(--sans) !important; font-size: 12px !important; color: var(--muted) !important; }
/* Author line */
.wprm-recipe-container .wprm-recipe-author-container { font-family: var(--sans) !important; font-size: 13px !important; color: var(--muted) !important; }
/* Don't let the uniform-image rule shrink the card photo oddly */
.post-body .wprm-recipe-image img { max-height: 320px !important; margin: 0 !important; object-fit: cover; }


/* ---------- Nutrition & Tools page ---------- */
.tools-list { list-style: none; margin: 18px 0 0; padding: 0; }
.tools-list li { padding: 14px 0; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 4px; }
.tools-list a { font-size: 21px; text-decoration: none; }
.tools-list .kind { font-family: var(--sans); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); }
.tools-list .desc { color: var(--muted); font-size: 15px; }

/* ---------- Sidebar text, contact page ---------- */
.side-text { margin: 0; }
.contact-email { font-size: 19px; }
.admin-note { font-family: var(--sans); font-size: 13px; background: #fff8e1; border: 1px dashed #b8a14a; padding: 10px 12px; }

/* ---------- Recipe Calorie Calculator ---------- */
.calc { margin: 24px 0 8px; font-size: 16px; }
.calc .label { display: block; margin: 0 0 8px; }
.calc-form { display: flex; flex-direction: column; gap: 14px; border: 1px solid var(--ink); padding: 18px; }
.calc-form textarea { width: 100%; min-height: 200px; padding: 12px; font: 16px/1.6 var(--serif); border: 1px solid var(--ink); background: #fff; resize: vertical; }
.calc-row { display: flex; align-items: center; gap: 12px; }
.calc-inline-label { margin: 0 !important; }
.calc-row input { width: 90px; height: 44px; padding: 0 10px; font: 16px var(--serif); border: 1px solid var(--ink); }
.calc-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.calc-results { margin-top: 28px; }
.calc-results > .label { margin-top: 0; }
.calc-help { margin: 0 0 10px; color: var(--muted); font-size: 15px; }
.calc-table-wrap { overflow-x: auto; border-top: 1px solid var(--ink); }
.calc-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.calc-table th { font-family: var(--sans); font-size: 11px; font-weight: normal; letter-spacing: 1.5px; text-transform: uppercase; color: #555; text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--ink); white-space: nowrap; }
.calc-table td { padding: 8px 6px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.calc-table tr.is-warn td { background: #fdf3f1; }
.c-line { min-width: 180px; }
.c-note { display: block; font-family: var(--sans); font-size: 11px; color: var(--accent); margin-top: 3px; }
.c-select { width: 100%; min-width: 170px; height: 40px; font: 14px var(--serif); border: 1px solid #999; background: #fff; }
.c-input { width: 80px; height: 40px; padding: 0 8px; font: 15px var(--serif); border: 1px solid #999; }
.c-kcal { font-family: var(--sans); font-size: 14px; white-space: nowrap; text-align: right; padding-top: 16px !important; }
.c-remove { width: 36px; height: 40px; border: 1px solid #999; background: #fff; font-size: 20px; line-height: 1; cursor: pointer; color: var(--ink); }
.c-remove:hover { border-color: var(--accent); color: var(--accent); }
.calc-warning { font-family: var(--sans); font-size: 13px; color: var(--accent); margin: 10px 0 0; }
.calc-output { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 26px; align-items: flex-start; }
.calc-side { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.calc-side .label { margin-top: 16px; border-bottom: 1px solid var(--ink); padding-bottom: 6px; }
.calc-toggle { display: flex; flex-wrap: wrap; gap: 8px; }

/* Nutrition Facts panel: back-of-the-package look, in the blog's fonts */
.calc-label { flex: 0 1 300px; width: 300px; max-width: 100%; box-sizing: border-box; border: 1.5px solid #000; padding: 4px 7px 6px; font-family: var(--sans); color: #000; background: #fff; font-size: 13px; line-height: 1.35; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.nf-title { font-family: var(--serif); font-weight: bold; font-size: 33px; line-height: 1.05; letter-spacing: -0.3px; padding-bottom: 3px; border-bottom: 1px solid #000; }
.nf-servings { padding-top: 3px; font-size: 13px; }
.nf-size { display: flex; justify-content: space-between; font-size: 14px; padding-bottom: 2px; }
.nf-bar-thick { height: 9px; background: #000; margin: 2px 0; }
.nf-bar-mid { height: 4px; background: #000; margin: 2px 0; }
.nf-amount { font-weight: bold; font-size: 11px; padding-top: 2px; }
.nf-cal { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--serif); font-weight: bold; line-height: 1; padding-bottom: 2px; }
.nf-cal span:first-child { font-size: 26px; }
.nf-cal span:last-child { font-size: 36px; }
.nf-dv { text-align: right; font-weight: bold; font-size: 11px; padding: 2px 0; border-bottom: 1px solid #000; }
.nf-row { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; border-bottom: 1px solid #000; }
.nf-indent { padding-left: 14px; }
.nf-last { border-bottom: 0; }
.nf-foot { font-size: 9.5px; line-height: 1.35; padding-top: 4px; }

/* Calorie breakdown bars */
.bd-row { margin-bottom: 10px; }
.bd-top { display: flex; justify-content: space-between; gap: 8px; font-size: 15px; }
.bd-top span:last-child { font-family: var(--sans); font-size: 12px; color: var(--muted); white-space: nowrap; }
.bd-track { height: 12px; background: var(--soft); border: 1px solid #ccc; }
.bd-fill { height: 100%; }
.bd-carbs { background: #1a1a1a; }
.bd-fat { background: #8b2c22; }
.bd-protein { background: #8a8a8a; }
.calc-summary div { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.calc-summary b { font-family: var(--sans); font-size: 14px; }
.calc-note { font-family: var(--sans); font-size: 12px; color: var(--muted); margin-top: 22px; border-top: 1px solid var(--rule); padding-top: 10px; }

@media (max-width: 600px) {
  .calc-label { width: 100%; flex-basis: 100%; }
  .calc-form { padding: 12px; }
}
@media print {
  .calc-form, .calc-toggle, .c-remove, .calc-help { display: none !important; }
}

/* Small all-caps labels stay small, even inside posts and pages */
.post-body h2.label, .post-body h3.label, .post-body .calc .label, .comments h2.label {
  font-family: var(--sans); font-size: 12px; font-weight: normal; line-height: 1.4;
  letter-spacing: 2px; text-transform: uppercase; color: #555; margin: 0 0 8px; padding: 0; border: 0;
}
.post-body .calc-side h2.label, .post-body .calc-results > h2.label { border-bottom: 1px solid var(--ink); padding-bottom: 6px; margin-top: 16px; }
.post-body .calc-results > h2.label:first-child { margin-top: 0; }

/* Calculator table on phones: each ingredient becomes a small stacked card */
@media (max-width: 600px) {
  .calc-table-wrap { overflow: visible; }
  .calc-table thead { display: none; }
  .calc-table, .calc-table tbody { display: block; width: 100%; }
  .calc-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .calc-table tr.is-warn { background: #fdf3f1; }
  .calc-table td { display: block; padding: 0; border: 0; background: none !important; }
  .calc-table .c-line { grid-column: 1 / -1; min-width: 0; }
  .calc-table .c-food { grid-column: 1 / -1; }
  .calc-table .c-select { min-width: 0; }
  .calc-table .c-grams { grid-column: 1; }
  .calc-table .c-grams .c-input { width: 100%; }
  .calc-table .c-kcal { grid-column: 2; padding: 0 4px !important; }
  .calc-table .c-kcal::after { content: " kcal"; }
  .calc-table .c-del { grid-column: 3; }
}

/* ---------- Calculator: name field + printable label card ---------- */
.calc-row-wrap { flex-wrap: wrap; gap: 14px 24px; align-items: flex-end; }
.calc-field { display: flex; align-items: center; gap: 12px; }
.calc-field-grow { flex: 1 1 280px; }
.calc-field-grow input { flex: 1 1 auto; min-width: 0; width: auto; height: 44px; padding: 0 10px; font: 16px var(--serif); border: 1px solid var(--ink); }
.calc-optional { text-transform: none; letter-spacing: 0; color: #888; }

/* Print just the card */
#np-print-root { display: none; }
@media print {
  body.np-print-card > *:not(#np-print-root) { display: none !important; }
  body.np-print-card #np-print-root { display: block !important; }
  body.np-print-card #np-print-root .calc-label { width: 3.5in; margin: 0; page-break-inside: avoid; break-inside: avoid; }
}
.calc-field-grow { flex: 1 1 100%; flex-direction: column; align-items: stretch; gap: 6px; }
.calc-field-grow input { width: 100%; }

/* Sidebar: popular posts + archives */
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li { padding: 5px 0; border-bottom: 1px solid var(--rule); line-height: 1.4; }
.side-list li:last-child { border-bottom: 0; }
.side-select { width: 100%; height: 42px; padding: 0 8px; font: 15px var(--serif); color: var(--ink); border: 1px solid var(--ink); background: #fff; border-radius: 0; }
.side-box .label label { cursor: pointer; }

/* Print label button + the parts that only appear on the printed label */
.calc-print-row { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 4px; }
.calc-print-hint { font-family: var(--sans); font-size: 11px; color: var(--muted); }
.nf-recipe { font-family: var(--serif); font-size: 17px; line-height: 1.25; padding: 2px 0 4px; border-bottom: 1px solid #000; margin-bottom: 2px; }
.nf-site { margin-top: 5px; padding-top: 4px; border-top: 1px solid #000; text-align: center; font-family: var(--serif); font-weight: bold; font-size: 13px; }
.nf-est { text-align: center; font-size: 8.5px; color: #333; padding-top: 1px; }

/* ======================================================================
   Wider screens: use the space on laptops and big monitors
   ====================================================================== */
@media (min-width: 1100px) {
  body { font-size: 18px; }
  .site-title { font-size: 52px; }
  .post-title { font-size: 44px; }
  .entry-thumb { flex: 0 0 180px; width: 180px; height: 135px; }
  .entry-thumb img { width: 180px; height: 135px; }
  .entry-title { font-size: 24px; }
  .sidebar { font-size: 16px; }
}
@media (max-width: 1000px) and (min-width: 761px) {
  .columns { grid-template-columns: minmax(0, 1fr) 240px; gap: 40px; }
}

/* ======================================================================
   Nothing inside a post may be wider than the screen
   (YouTube videos, tables, images, long links, ads)
   ====================================================================== */
html, body { max-width: 100%; overflow-x: hidden; }
.content, .post-body { min-width: 0; overflow-wrap: break-word; word-wrap: break-word; }
.post-body a { overflow-wrap: anywhere; }
.post-body iframe, .post-body embed, .post-body object, .post-body video { max-width: 100%; }
.post-body iframe[src*="youtube"], .post-body iframe[src*="youtu.be"], .post-body iframe[src*="vimeo"], .post-body iframe[title*="YouTube"], .post-body iframe[title*="video" i] { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.post-body .wp-block-embed, .post-body figure { max-width: 100%; margin-left: 0; margin-right: 0; }
.post-body .wp-block-embed__wrapper { position: relative; }
.post-body .wp-has-aspect-ratio .wp-block-embed__wrapper::before { content: ""; display: block; padding-top: 56.25%; }
.post-body .wp-has-aspect-ratio iframe { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.post-body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; -webkit-overflow-scrolling: touch; }
.post-body td, .post-body th { border: 1px solid var(--rule); padding: 6px 10px; }
.post-body pre { max-width: 100%; overflow-x: auto; }
.adsbygoogle, ins.adsbygoogle, .google-auto-placed { max-width: 100% !important; overflow: hidden; }
.wprm-recipe-container, .wprm-recipe { max-width: 100% !important; }

/* ======================================================================
   Phones
   ====================================================================== */
@media (max-width: 600px) {
  .wrap { padding: 20px 16px 36px; }
  .masthead { padding-bottom: 14px; }
  .site-title { font-size: 32px; }
  .site-tagline { font-size: 15px; }
  .main-nav ul { gap: 0 16px; }
  .main-nav a { font-size: 12px; padding: 9px 0; letter-spacing: 0.5px; }
  /* search box and button on one line */
  .search-form { flex-wrap: nowrap; margin: 12px 0 22px; }
  .search-form input[type="search"] { flex: 1 1 auto; width: auto; min-width: 0; height: 44px; font-size: 16px; }
  .search-form button { flex: 0 0 auto; height: 44px; padding: 0 14px; font-size: 12px; }
  /* recipe lists: small photo beside the title */
  .entry-row { flex-wrap: nowrap; gap: 14px; padding: 14px 0; }
  .entry-thumb, .entry-thumb img { flex: 0 0 96px; width: 96px; height: 76px; }
  .entry-text { flex: 1 1 auto; min-width: 0; }
  .entry-title { font-size: 18px; }
  /* posts */
  body { font-size: 17px; }
  .post-title { font-size: 29px; }
  .post-body h2 { font-size: 24px; }
  .post-body h3 { font-size: 21px; }
  .post-body h4 { font-size: 19px; }
  .post-body h5, .post-body h6 { font-size: 18px; }
  .post-actions { margin: 12px 0 18px; }
  .post-actions .btn { flex: 1 1 auto; justify-content: center; }
  .post-body img { margin: 14px auto !important; }
  .post-nav { flex-direction: column; }
  .columns { gap: 36px; }
  .wprm-recipe-container .wprm-recipe { padding: 16px !important; }
}
