/* Stolen Moments Tonight: app-style overrides for the shared recipe-tool styles
   (experience.css, recipe-explorer.css, cooking-tools.css). Loaded after them. */

/* Recipe tools bar inside the recipe card */
.smc-recipe-toolbar { margin: 0 0 16px; padding: 12px; border: 0; border-radius: var(--r); background: var(--wash); }
.smc-recipe-toolbar .smc-button, .smc-recipe-toolbar .smc-save-button { min-height: 44px; padding: 9px 16px; border: 1.5px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 700; }
.smc-recipe-toolbar .smc-button:hover, .smc-recipe-toolbar .smc-save-button:hover { background: var(--yellow); border-color: var(--ink); color: var(--ink); }
.smc-recipe-toolbar [aria-pressed="true"], .smc-recipe-toolbar .smc-save-button[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: var(--paper); }
.smc-recipe-toolbar .smc-shopping-help { font-size: 14px; }

/* Generic buttons created by the tools script */
.smc-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border: 2px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 700; text-decoration: none; }
.smc-button:hover { background: var(--red); border-color: var(--red); color: var(--paper); }
.smc-button-outline { background: #fff; color: var(--ink); }
.smc-experience-save, [data-smc-save], .smc-experience-small-button { border-radius: 999px; border-width: 1.5px; background: #fff; font-size: 14px; }
.smc-save-button { border-radius: 999px; }

/* Recipe tools page */
.tn-tools-page { padding-block: 34px 70px; }
.tn-tools-head { max-width: 760px; margin-bottom: 22px; }
.tn-tools-head h1 { margin-bottom: 10px; }
.tn-tools-head p:not(.tn-eyebrow) { color: var(--ink-2); font-size: 17px; }
.smc-tools-tabs.tn-segments { position: sticky; top: calc(var(--bar) + 10px); z-index: 30; display: flex; gap: 4px; width: max-content; max-width: 100%; margin-bottom: 18px; padding: 5px; overflow-x: auto; border-radius: 999px; background: var(--ink); scrollbar-width: none; }
.admin-bar .smc-tools-tabs.tn-segments { top: calc(var(--bar) + 42px); }
@media (max-width: 782px) { .admin-bar .smc-tools-tabs.tn-segments { top: calc(var(--bar) + 56px); } }
@media (max-width: 600px) { .admin-bar .smc-tools-tabs.tn-segments { top: calc(var(--bar) + 10px); } }
.smc-tools-tabs.tn-segments::-webkit-scrollbar { display: none; }
.smc-tools-tabs.tn-segments { flex-wrap: nowrap; }
.smc-tools-tabs.tn-segments a { flex: 0 0 auto; text-align: left; padding: 9px 16px; border: 0; border-radius: 999px; background: transparent; color: var(--paper); font-size: 14px; font-weight: 650; white-space: nowrap; }
.smc-tools-tabs.tn-segments a:hover, .smc-tools-tabs.tn-segments a:focus-visible { background: var(--yellow); color: var(--ink); }
.smc-tool-section { padding-block: 40px; border-top: 1px solid var(--line); scroll-margin-top: 64px; }
.smc-tool-section h2 { font-size: clamp(26px, 3vw, 36px); }
.smc-shopping-guide, .smc-notice { border: 0; border-radius: var(--r); background: var(--wash); }
.smc-tools-privacy { margin-top: 26px; padding: 14px 20px; border-radius: var(--r); background: var(--wash); }
.smc-tools-privacy summary { font-weight: 700; cursor: pointer; }

/* Explorer, recipe box, dinner picker, seasonal */
.smc-experience-filters { gap: 14px; padding: 20px; border: 0; border-radius: var(--r-lg); background: var(--yellow); }
.smc-experience-field { font-size: 14px; }
.smc-experience-field input, .smc-experience-field select { min-height: 48px; border: 1.5px solid var(--ink); border-radius: var(--r-sm); background: #fff; }
.smc-experience-grid { gap: 22px; }
.smc-experience-card { padding: 0; border: 0; border-radius: var(--r); background: transparent; }
.smc-experience-card-link img { margin-bottom: 12px; border-radius: var(--r); background: var(--wash); }
.smc-experience-card h3 { margin-bottom: 4px; font-size: 19px; letter-spacing: -.01em; }
.smc-experience-meta { margin-bottom: 8px; font-size: 14px; }
.smc-experience-card-actions { gap: 8px; padding-top: 4px; }
.smc-experience-shopping-choices { border-radius: var(--r); background: #fff; }
.smc-experience-status { border-radius: var(--r); bottom: calc(var(--tabbar) + 16px); }
[data-smc-recent] .smc-experience-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
[data-smc-recent] .smc-experience-card h3 { font-size: 17px; }

/* Recipe extras below the article */
.smc-recipe-help, .smc-meal-pairings, .smc-reader-photos { margin-block: 44px; padding-top: 0; border-top: 0; }
.smc-recipe-help h2, .smc-meal-pairings h2 { font-size: clamp(24px, 2.6vw, 30px); }
.smc-recipe-help details { border: 0; border-radius: var(--r); background: var(--wash); }
.smc-recipe-help summary { min-height: 52px; padding: 14px 20px; }
.smc-meal-grid { gap: 20px; }
.smce-community, .smc-reader-photos .smce-community { border: 0; border-radius: var(--r-lg); background: var(--wash); }
.smce-community button, .smce-community input[type="text"], .smce-community textarea { border-radius: var(--r-sm); }
.smce-community button[type="submit"] { border-radius: 999px; }

/* Cook mode */
.smc-cook-dialog { border: 0; border-radius: var(--r-lg); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); }
.smc-cook-header { border-bottom: 0; }
.smc-cook-button { border-radius: 999px; }

@media (max-width: 900px) {
	[data-smc-recent] .smc-experience-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
	.smc-experience-field input, .smc-experience-field select, .smc-notes-field, .smce-community input[type="text"], .smce-community textarea { font-size: 16px; } /* no iOS focus zoom */
	.smc-tools-tabs.tn-segments { width: auto; margin-inline: -16px; border-radius: 0; padding-inline: 12px; }
	.smc-experience-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
	.smc-experience-card h3 { font-size: 16px; }
	.smc-experience-card-actions .smc-experience-save, .smc-experience-card-actions .smc-experience-small-button { flex: 1 1 100%; font-size: 13px; padding-inline: 8px; }
	.smc-cook-dialog { width: 100vw; max-height: 100dvh; border-radius: 0; }
}
