/* Persian Spoon: compact discovery and a complete, readable cooking path. */
[hidden] { display: none !important; }
button, input { font: inherit; }
button, input[type="search"] { border: 1px solid var(--muted); border-radius: 6px; background: #fff; color: var(--text); min-height: 44px; padding: 10px 14px; }
button { cursor: pointer; }
button:hover { border-color: var(--accent); background: #f3eee4; }
button:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.collection { max-width: 1400px; margin: auto; }
.cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.card { padding: 0; border-radius: 16px; border-color: #e4dfd4; box-shadow: 0 3px 12px #30251a06; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.card:hover { transform: translateY(-3px); border-color: #c5ad96; box-shadow: 0 8px 24px #30251a10; }
.card:focus-within { border-color: var(--accent); }
.card-main { display: flex; flex-direction: column; height: 100%; border-radius: 16px; }
.card-main:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.card-main img { width: 100%; height: auto; aspect-ratio: 3 / 2; max-height: none; object-fit: contain; background: var(--paper); border-radius: 15px 15px 0 0; margin: 0; }
.card-body { display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 19px 18px 17px; }
.card-title { display: flex; align-items: baseline; gap: 12px; }
.card h2, .card h3 { flex: 1; font-size: 1.35rem; line-height: 1.25; margin: 0 0 10px; font-weight: 400; }
.card-main:hover h2, .card-main:hover h3 { color: var(--accent); }
.card .card-arrow { flex: 0 0 auto; color: var(--accent); font-size: 1.05rem; font-weight: 400; }
.card .card-description { margin: 0; line-height: 1.55; font-size: .9rem; color: #596052; }
.card-bottom { margin-top: auto; padding-top: 17px; }
.card .card-time-note { margin: 0 0 12px; font-size: .76rem; line-height: 1.45; color: #80503b; }
.card-meta { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 10px 12px; margin: 0; padding-top: 13px; border-top: 1px solid #ece7dd; }
.card-meta > div { min-width: 0; }
.card-meta dt { font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 650; color: #686e5f; margin: 0 0 6px; }
.card-meta dd { margin: 0; min-height: 26px; display: flex; align-items: center; font-size: .87rem; font-weight: 600; color: #30382c; }
.card-time { white-space: nowrap; font-variant-numeric: tabular-nums; }
.card .difficulty { display: inline-flex; align-items: center; gap: 6px; border-radius: 5px; padding: 4px 7px; font-size: .75rem; font-weight: 600; line-height: 1.5; color: #405d42; background: #eef3e9; white-space: nowrap; }
.card .difficulty-moderate { color: #805c28; background: #f8f1e4; }
.card .difficulty-involved { color: #8b4939; background: #faeee9; }
.card .effort-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; color: inherit; }
.effort-bars i { display: block; width: 3px; background: currentColor; border-radius: 1px; opacity: .22; }
.effort-bars i:nth-child(1) { height: 5px; opacity: 1; }
.effort-bars i:nth-child(2) { height: 8px; }
.effort-bars i:nth-child(3) { height: 11px; }
.difficulty-moderate i:nth-child(2), .difficulty-involved i { opacity: 1; }
.recipe-key { color: var(--muted); font-size: .86rem; max-width: 720px; line-height: 1.65; }
.recipe-key summary { cursor: pointer; min-height: 44px; padding: 10px 0; text-underline-offset: 4px; }
.recipe-key summary:hover { text-decoration: underline; }
.recipe-key summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.recipe-key p { margin: 6px 0 12px; }
main > #home-recipes .home-more { display:flex; gap:12px 28px; flex-wrap:wrap; justify-content:flex-start; text-align:left; font-size:1rem; }
.category-nav { display:flex; flex-wrap:wrap; gap:8px; margin:24px 0; }
.category-nav a { padding:10px 14px; min-height:44px; border:1px solid var(--line); border-radius:6px; background:#fff; text-decoration:none; }
.category-nav a:hover { border-color:var(--accent); }
.recipe-group { margin-top:40px; scroll-margin-top:24px; }
.recipe-group > h2 { font-size:1.8rem; border-bottom:1px solid var(--line); padding-bottom:12px; }
.recipe-search { max-width:640px; padding:20px; background:#efece3; border-radius:8px; }
.recipe-search label { display:block; font-weight:700; margin-bottom:8px; }
.search-row { display:flex; gap:10px; }
.search-row input { flex:1; min-width:0; width:100%; }
.recipe-search [role="status"] { margin:12px 0 0; color:var(--muted); }
.article { padding-top:32px; }
.article h1 { margin:18px 0; }
.article .deck { font-size:1.06rem; line-height:1.65; }
.persian-recipe > figure { max-width:540px; margin:24px auto; }
.persian-recipe > figure img { display:block; width:100%; max-height:360px; object-fit:contain; }
.recipe-actions { gap:8px; margin:20px 0; }
.recipe-actions a, .recipe-actions button { min-height:44px; padding:10px 13px; font-size:.9rem; }
.recipe-actions a:not(:first-child) { background:#fff; color:var(--accent); border:1px solid var(--accent); }
.advance-summary { border-left:3px solid var(--accent); padding:8px 14px; line-height:1.6; background:#efece3; }
.timing-note { color:var(--muted); line-height:1.6; }
.recipe { margin-top:24px; line-height:1.75; }
#ingredients, #method { scroll-margin-top:24px; }
.ingredient-checklist ul { padding:0; list-style:none; }
.ingredient-checklist label { display:flex; align-items:flex-start; gap:12px; min-height:44px; padding:9px 0; cursor:pointer; }
.ingredient-checklist li { margin:0; }
.ingredient-checklist input { flex:0 0 auto; width:20px; height:20px; margin:5px 0 0; accent-color:var(--accent); }
.ingredient-checklist input:checked + span { text-decoration:line-through; }
@media(max-width:1279px) { .cards { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:959px) { .cards { grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; } }
@media(max-width:639px) { .cards { grid-template-columns:1fr; } }
@media(prefers-reduced-motion:reduce) { .card { transition:none; } .card:hover { transform:none; } }
@media(max-width:560px) {
  .cards { grid-template-columns:1fr; }
  .masthead { padding:18px 5%; }
  .masthead p { font-size:.8rem; }
  .collection { padding:28px 5% 56px; }
  .article { padding:24px 5% 56px; }
  .card { padding:0; }
  .card-body { padding:18px 20px; }
  .recipe { padding:16px; }
  .recipe-search { padding:16px; }
}
@media print {
  @page { margin:16mm; }
  .masthead, .eyebrow, .persian-recipe > figure, .ingredient-checklist button, .ingredient-checklist input,
  .advance-summary, .recipe-search, .category-nav { display:none !important; }
  .article { padding:0; }
  .article h1 { font-size:21pt; margin:0 0 10pt; }
  .article .deck, .timing-note, .recipe-facts { font-size:10pt; line-height:1.4; }
  .recipe { border:0; padding:0; margin:14pt 0; line-height:1.45; }
  .ingredient-checklist label { padding:0; min-height:0; display:block; }
  .ingredient-checklist input:checked + span { text-decoration:none; }
  .ingredient-checklist li { margin:0 0 5pt; }
  .article-section { font-size:10pt; line-height:1.45; margin-top:12pt; }
  .recipe h2, .article-section h2 { font-size:14pt; }
}

/* The owner's analytics choice lives only on Privacy, without a banner. */
.analytics-privacy-choice { font-size: .85rem; line-height: 1.7; }
.analytics-privacy-choice button { border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; padding: .2rem; }
