/* Tailwind directives - keep these at the top */

*, ::before, ::after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

/* ! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com */

/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box;
  /* 1 */
  border-width: 0;
  /* 2 */
  border-style: solid;
  /* 2 */
  border-color: #e5e7eb;
  /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5;
  /* 1 */
  -webkit-text-size-adjust: 100%;
  /* 2 */
  -moz-tab-size: 4;
  /* 3 */
  -o-tab-size: 4;
     tab-size: 4;
  /* 3 */
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  /* 4 */
  font-feature-settings: normal;
  /* 5 */
  font-variation-settings: normal;
  /* 6 */
  -webkit-tap-highlight-color: transparent;
  /* 7 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0;
  /* 1 */
  line-height: inherit;
  /* 2 */
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0;
  /* 1 */
  color: inherit;
  /* 2 */
  border-top-width: 1px;
  /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

a {
  color: inherit;
  text-decoration: inherit;
}

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  /* 1 */
  font-feature-settings: normal;
  /* 2 */
  font-variation-settings: normal;
  /* 3 */
  font-size: 1em;
  /* 4 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0;
  /* 1 */
  border-color: inherit;
  /* 2 */
  border-collapse: collapse;
  /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  /* 1 */
  font-feature-settings: inherit;
  /* 1 */
  font-variation-settings: inherit;
  /* 1 */
  font-size: 100%;
  /* 1 */
  font-weight: inherit;
  /* 1 */
  line-height: inherit;
  /* 1 */
  letter-spacing: inherit;
  /* 1 */
  color: inherit;
  /* 1 */
  margin: 0;
  /* 2 */
  padding: 0;
  /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button;
  /* 1 */
  background-color: transparent;
  /* 2 */
  background-image: none;
  /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield;
  /* 1 */
  outline-offset: -2px;
  /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button;
  /* 1 */
  font: inherit;
  /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
Reset default styling for dialogs.
*/

dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1;
  /* 1 */
  color: #9ca3af;
  /* 2 */
}

input::placeholder,
textarea::placeholder {
  opacity: 1;
  /* 1 */
  color: #9ca3af;
  /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/

:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  /* 1 */
  vertical-align: middle;
  /* 2 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/* Make elements with the HTML hidden attribute stay hidden by default */

[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}

/* FoodStudio — OR-style layout (simple, readable) */

/* Garet font as default for entire website */

body {
  font-family: 'Garet', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  /* Regular weight */
  background: var(--bg);
  color: var(--text);
}

/* Headings with Garet */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Garet', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 600;
  /* Semi-bold for headings */
  color: var(--heading);
}

/* Logo and brand text */

.fs-logo, .footer-brand h6 {
  font-family: 'Garet', sans-serif;
  font-weight: 700;
  /* Bold for branding */
}

/* Navigation and buttons */

.fs-nav, .rc-btn, .fs-btn, button {
  font-family: 'Garet', sans-serif;
  font-weight: 500;
  /* Medium weight for UI elements */
}

/* Recipe titles */

.recipe-title, .rc-title {
  font-family: 'Garet', sans-serif;
  font-weight: 700;
  /* Bold for emphasis */
}

/* Page container and card */

body {
  background: #fafafa;
}

.recipe-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 20px;
}

.recipe-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 28px rgba(0,0,0,.08);
  overflow: hidden;
}

/* Header (image + title + source + pills + save) */

.recipe-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px;
}

.recipe-image {
  flex-shrink: 0;
}

.recipe-image img {
  width: 160px;
  height: 160px;
  border-radius: 12px;
  -o-object-fit: cover;
     object-fit: cover;
}

.recipe-info {
  flex: 1;
}

.recipe-title {
  margin: 0 0 6px;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
  color: #111827;
}

.recipe-source {
  margin: 0 0 14px;
  font-size: 14px;
  color: #6b7280;
}

.recipe-source a {
  color: inherit;
  text-decoration: none;
}

.recipe-source a:hover {
  text-decoration: underline;
}

/* Pills row */

.recipe-meta {
  display: flex;
  align-items: center;
  gap: 12px 16px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  color: #111827;
}

.servings .btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  line-height: 26px;
  text-align: center;
  cursor: pointer;
}

.save-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  background: #ef4444;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.save-button:hover {
  background: #dc2626;
}

.save-button.removed {
  background: #6b7280;
}

/* Controls row (copy/print/refresh) */

.recipe-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 28px 16px;
}

.control-button {
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #111827;
  cursor: pointer;
}

/* Two-column body (Ingredients | Directions) */

.recipe-body {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 40px;
  padding: 0 28px 28px;
}

@media (max-width: 900px) {
  .recipe-body {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 20px 24px;
  }
}

.section-title {
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #111827;
}

/* Ingredients */

.ingredients-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px dashed #e5e7eb;
  border-radius: 12px;
  background: #fff;
}

.ingredient-item {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #f3f4f6;
}

.ingredient-item:last-child {
  border-bottom: none;
}

/*.ingredient-checkbox { margin-top: 3px; }*/

/* Style both ingredient and modal checkboxes identically */

.ingredient-checkbox,
.form-check-input {
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  cursor: pointer;
  position: relative;
  margin-top: 3px;
  transition: all 0.2s ease;
}

.ingredient-checkbox:hover,
.form-check-input:hover {
  border-color: var(--accent);
}

.ingredient-checkbox:checked,
.form-check-input:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.ingredient-checkbox:checked::after,
.form-check-input:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Keep the existing text styling for ingredients */

.ingredient-checkbox:checked + .ingredient-text {
  color: var(--muted);
  opacity: .85;
}

/*.ingredient-checkbox:checked + .ingredient-text { color: #6b7280; opacity: .85; }*/

/* Directions */

.instructions-list {
  counter-reset: step;
  margin: 0;
  padding: 0;
  list-style: none;
}

.instruction-item {
  position: relative;
  padding: 14px 0 14px 44px;
  border-bottom: 1px solid #f3f4f6;
}

.instruction-item:last-child {
  border-bottom: none;
}

.instruction-item::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 14px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #ef4444;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Footer line */

.recipe-footer {
  padding: 0 28px 24px;
  color: #6b7280;
  font-size: 14px;
}

.recipe-footer a {
  color: inherit;
}

.subsection-title {
  margin: 18px 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

/* Print: single column, hide chrome */

@media print {
  .main-navigation, .recipe-controls, .recipe-actions {
    display: none !important;
  }

  .recipe-container {
    max-width: none;
    padding: 0;
  }

  .recipe-card {
    box-shadow: none;
    border: none;
  }

  .recipe-header {
    padding: 20px;
  }

  .recipe-body {
    display: block;
    padding: 0 20px 20px;
  }

  .section-title {
    font-size: 20px;
    border-bottom: 1px solid #000;
    padding-bottom: 6px;
  }
}

/* === Extract page (NEW) — does not touch .recipe-* styles === */

.extract-container {
  max-width: 980px;
  margin: 48px auto;
  padding: 0 16px;
}

.extract-card {
  background:#fff;
  border-radius:16px;
  box-shadow:0 1px 2px rgba(0,0,0,.06), 0 8px 28px rgba(0,0,0,.08);
  padding:32px;
}

.extract-head {
  margin-bottom: 20px;
}

.extract-title {
  margin:0 0 8px;
  font-size:42px;
  line-height:1.15;
  font-weight:800;
  letter-spacing:-0.5px;
  color:#111827;
}

.extract-subtitle {
  margin:0;
  color:#6b7280;
}

.extract-form {
  margin-top: 8px;
}

.extract-label {
  display:block;
  font-weight:600;
  margin-bottom:8px;
  color:#111827;
}

.extract-input {
  width:100%;
  height:56px;
  font-size:16px;
  border:1px solid #e5e7eb;
  border-radius:12px;
  padding:0 16px;
  outline:none;
}

.extract-input:focus {
  border-color:#ef4444;
  box-shadow:0 0 0 3px rgba(239,68,68,.15);
}

.extract-hint {
  margin:8px 0 20px;
  color:#6b7280;
  font-size:13px;
}

.extract-button {
  width:100%;
  height:56px;
  border:none;
  border-radius:999px;
  background:#ef4444;
  color:#fff;
  font-weight:700;
  font-size:16px;
  cursor:pointer;
}

.extract-button:hover {
  background:#dc2626;
}

.extract-alert {
  margin-top:16px;
  padding:12px 14px;
  border-radius:10px;
  background:#fee2e2;
  color:#991b1b;
  font-weight:600;
}

.extract-how {
  margin-top:28px;
}

.extract-how-title {
  margin:0 0 8px;
  font-size:24px;
  font-weight:800;
  letter-spacing:-0.01em;
  color:#111827;
}

.extract-how-list {
  list-style:none;
  margin:0;
  padding:0;
  color:#111827;
}

.extract-how-list li {
  margin-bottom:10px;
}

/* Mobile */

@media (max-width: 640px) {
  .extract-card {
    padding:24px;
  }

  .extract-title {
    font-size:32px;
  }

  .extract-input, .extract-button {
    height:52px;
  }
}

/* === FoodStudio modal (scoped) === */

body.fs-modal-open {
  overflow: hidden;
}

.fs-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1999;
}

.fs-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  pointer-events: none;
}

.fs-modal__panel {
  width: min(720px, 92vw);
  max-height: 88vh;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  pointer-events: auto;
}

.fs-modal__header, .fs-modal__footer {
  padding: 12px 16px;
  background: #fff;
}

.fs-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eef0f2;
}

.fs-modal__title {
  margin: 0;
  font: 800 18px/1.2 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto;
  letter-spacing: -0.2px;
}

.fs-iconbtn {
  border: 1px solid #e5e7eb;
  background:#fff;
  border-radius: 8px;
  width:32px;
  height:32px;
  cursor:pointer;
}

.fs-iconbtn:hover {
  background:#f8f9fa;
}

.fs-modal__body {
  padding: 6px 8px;
  overflow: auto;
  max-height: calc(88vh - 104px);
}

.fs-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 6px;
  border-bottom: 1px solid #f1f3f5;
}

.fs-row:last-child {
  border-bottom: none;
}

.fs-text {
  position: relative;
  padding-left: 18px;
  flex: 1;
}

.fs-text::before {
  content: "▢";
  position: absolute;
  left: 0;
  top: 2px;
  color: #6b7280;
  font-size: 14px;
}

.fs-name {
  font-weight: 600;
  color: #111;
  line-height: 1.35;
}

.fs-meta {
  color: #6b7280;
  font-size: 12px;
  margin-top: 2px;
}

.fs-modal__footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  border-top: 1px solid #eef0f2;
}

.fs-btn {
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
}

.fs-btn--ghost {
  background:#fff;
  border-color:#e5e7eb;
}

.fs-btn--ghost:hover {
  background:#f8f9fa;
}

.fs-btn--primary {
  background:#2563eb;
  color:#fff;
}

.fs-btn--primary:hover {
  background:#1e40af;
}

@media (max-width: 520px){
  .fs-modal__panel {
    width: 96vw;
  }
}

/* === Grocery list card (OR-like) === */

.gl-container {
  display:flex;
  justify-content:center;
  padding: 28px 16px;
}

.gl-card {
  width: min(840px, 94vw);
  background:#fff;
  border-radius:16px;
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 28px rgba(0,0,0,.08);
  padding: 18px 18px 10px;
}

.gl-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.gl-title {
  font-size:28px;
  font-weight:800;
  letter-spacing:-0.3px;
  color:#111;
}

.gl-actions {
  display:flex;
  align-items:center;
  gap:8px;
}

.gl-link {
  color:#2563eb;
  text-decoration:none;
  font-weight:700;
}

.gl-link:hover {
  text-decoration:underline;
}

.gl-btn {
  height:36px;
  padding:0 14px;
  border-radius:999px;
  font-weight:700;
  border:1px solid transparent;
  cursor:pointer;
}

.gl-btn--primary {
  background:#ef4444;
  color:#fff;
}

.gl-btn--primary:hover {
  background:#dc2626;
}

.gl-iconbtn {
  width:36px;
  height:36px;
  border-radius:10px;
  border:1px solid #e5e7eb;
  background:#fff;
  cursor:pointer;
}

.gl-iconbtn:hover {
  background:#f8f9fa;
}

.gl-progress {
  color:#6b7280;
  margin:8px 0 12px;
}

.gl-add {
  margin: 6px 0 12px;
}

.gl-add__form {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.gl-input {
  height:36px;
  padding:0 12px;
  border:1px solid #e5e7eb;
  border-radius:10px;
  min-width: 180px;
}

.gl-body {
  margin-top: 6px;
}

.gl-aisle {
  margin: 10px 0 22px;
}

.gl-aisle__title {
  margin: 12px 0 8px;
  font-size:22px;
  font-weight:800;
  color:#111;
}

.gl-list {
  border:1px dashed #e5e7eb;
  border-radius:12px;
}

.gl-row {
  display:grid;
  grid-template-columns: 28px 1fr auto;
  align-items:flex-start;
  gap:12px;
  padding:12px 14px;
  border-bottom:1px solid #f3f4f6;
  background:#fff;
}

.gl-row:last-child {
  border-bottom:none;
}

.gl-row--dragging {
  opacity:0.6;
}

.gl-check {
  display:flex;
  align-items:center;
  justify-content:center;
  padding-top:2px;
}

.gl-checkbox {
  width:18px;
  height:18px;
  cursor:pointer;
}

.gl-text {
  min-width:0;
}

.gl-name {
  font-weight:800;
  color:#111;
  line-height:1.35;
}

.gl-meta {
  color:#6b7280;
  font-size:13px;
  margin-top:2px;
  line-height:1.35;
}

.gl-name--done, .gl-meta--done {
  text-decoration: line-through;
  color:#9ca3af;
}

.gl-more {
  display:flex;
  align-items:center;
}

.gl-delete {
  color:#9f1239;
}

.gl-delete:hover {
  background:#fff1f2;
}

.gl-empty {
  padding:24px 10px;
  text-align:center;
  color:#6b7280;
}

.gl-empty__title {
  font-weight:800;
  color:#111;
  margin-bottom:6px;
}

.gl-empty__hint {
  font-size:14px;
}

/* === Framework-free modal (used by Add item) === */

body.fs-modal-open {
  overflow: hidden;
}

.fs-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1999;
}

.fs-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  pointer-events: none;
}

.fs-modal__panel {
  width: min(560px, 92vw);
  max-height: 88vh;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  pointer-events: auto;
}

.fs-modal__header, .fs-modal__footer {
  padding: 12px 16px;
  background: #fff;
}

.fs-modal__header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid #eef0f2;
}

.fs-modal__title {
  margin:0;
  font: 800 18px/1.2 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto;
  letter-spacing:-0.2px;
}

.fs-iconbtn {
  border: 1px solid #e5e7eb;
  background:#fff;
  border-radius: 8px;
  width:32px;
  height:32px;
  cursor:pointer;
}

.fs-iconbtn:hover {
  background:#f8f9fa;
}

.fs-modal__body {
  padding: 12px 16px;
  overflow:auto;
  max-height: calc(88vh - 104px);
}

.fs-grid {
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width:520px){
  .fs-grid {
    grid-template-columns: 1fr;
  }
}

.fs-field {
  margin-bottom: 12px;
}

.fs-label {
  display:block;
  font-weight:700;
  margin-bottom:6px;
  color:#111;
}

.fs-input {
  width:100%;
  height:40px;
  border:1px solid #e5e7eb;
  border-radius:10px;
  padding:0 12px;
}

.fs-btn {
  height:38px;
  padding:0 14px;
  border-radius:10px;
  font-weight:700;
  cursor:pointer;
  border:1px solid transparent;
}

.fs-btn--ghost {
  background:#fff;
  border-color:#e5e7eb;
}

.fs-btn--ghost:hover {
  background:#f8f9fa;
}

.fs-btn--primary {
  background:#ef4444;
  color:#fff;
}

.fs-btn--primary:hover {
  background:#dc2626;
}

/* === OR-like landing page (scoped) === */

.home-wrap {
  padding: 40px 16px 60px;
  max-width: 1100px;
  margin: 0 auto;
}

.home-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 150px;
}

.home-logo {
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -0.8px;
  color: #111827;
}

.home-form {
  width: 100%;
  display: flex;
  justify-content: center;
}

.home-pill {
  width: min(740px, 96vw);
  height: 54px;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 999px;
  display: grid;
  grid-template-columns: 1fr 54px;
  align-items: center;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}

.home-input {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  padding: 0 18px;
  font-size: 16px;
  border-radius: 999px 0 0 999px;
}

.home-input::-moz-placeholder {
  color: #9ca3af;
}

.home-input::placeholder {
  color: #9ca3af;
}

.home-arrow {
  height: 42px;
  width: 42px;
  /*margin-right: 6px;*/
  border-radius: 50%;
  border: none;
  background: #ef4444;
  color:#fff;
  font-size: 20px;
  cursor: pointer;
}

.home-arrow:hover {
  background:#dc2626;
}

.home-alert {
  margin-top: 10px;
  padding: 10px 14px;
  background: #fee2e2;
  color: #991b1b;
  border-radius: 10px;
  font-weight: 600;
}

.home-section {
  margin-top: 36px;
}

.home-h2 {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.3px;
  color:#111;
  margin: 0 0 10px;
}

.home-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 12px;
}

.home-card-placeholder {
  height: 120px;
  border: 1px dashed #e5e7eb;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#6b7280;
}

/* === Framework-free modal (OR-like) === */

body.fs-modal-open {
  overflow: hidden;
}

.fs-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1999;
}

.fs-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  pointer-events: none;
}

.fs-modal__panel {
  width: min(720px, 94vw);
  max-height: 88vh;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  pointer-events: auto;
}

.fs-modal__header, .fs-modal__footer {
  padding: 12px 16px;
  background: #fff;
}

.fs-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eef0f2;
}

.fs-modal__title {
  margin: 0;
  font: 800 18px/1.2 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto;
  letter-spacing: -0.2px;
}

.fs-iconbtn {
  border: 1px solid #e5e7eb;
  background:#fff;
  border-radius: 8px;
  width:32px;
  height:32px;
  cursor:pointer;
}

.fs-iconbtn:hover {
  background:#f8f9fa;
}

.fs-modal__body {
  padding: 6px 8px;
  overflow: auto;
  max-height: calc(88vh - 104px);
}

.fs-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 6px;
  border-bottom: 1px solid #f1f3f5;
}

.fs-row:last-child {
  border-bottom: none;
}

.fs-text {
  min-width: 0;
}

.fs-name {
  font-weight: 700;
  color: #111;
  line-height: 1.35;
}

.fs-meta {
  color: #6b7280;
  font-size: 12px;
  margin-top: 2px;
}

/* footer buttons */

.fs-modal__footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  border-top: 1px solid #eef0f2;
}

.fs-btn {
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  font-weight: 700;
  cursor:pointer;
  border:1px solid transparent;
}

.fs-btn--ghost {
  background:#fff;
  border-color:#e5e7eb;
}

.fs-btn--ghost:hover {
  background:#f8f9fa;
}

.fs-btn--primary {
  background:#ef4444;
  color:#fff;
}

.fs-btn--primary:hover {
  background:#dc2626;
}

.gl-actions {
  position: relative;
}

/* anchor for absolute menu */

.gl-menu {
  position:absolute;
  right:0;
  top:44px;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:12px;
  box-shadow:0 8px 28px rgba(0,0,0,.12);
  min-width:240px;
  padding:6px;
  z-index:1500;
}

.gl-menu__item {
  width:100%;
  text-align:left;
  background:#fff;
  border:0;
  border-radius:8px;
  padding:10px 12px;
  cursor:pointer;
}

.gl-menu__item:hover {
  background:#f8f9fa;
}

.gl-menu__sep {
  border:none;
  border-top:1px solid #eef0f2;
  margin:6px 0;
}

.fs-aisles__body {
  display:flex;
  flex-direction:column;
  gap:8px;
  max-height:56vh;
  overflow:auto;
  padding:6px 2px;
}

.fs-aisle-row {
  display:grid;
  grid-template-columns: 1fr auto auto;
  gap:8px;
  align-items:center;
  padding:6px;
  border:1px solid #eef0f2;
  border-radius:10px;
  background:#fff;
}

.fs-aisle-row.dragging {
  opacity:.6;
}

.fs-aisle-input {
  width:100%;
  height:36px;
  border:1px solid #e5e7eb;
  border-radius:8px;
  padding:0 10px;
}

.fs-aisle-handle, .fs-aisle-del {
  width:36px;
  height:36px;
  border:1px solid #e5e7eb;
  border-radius:8px;
  background:#fff;
  cursor:pointer;
}

.fs-aisle-handle:hover, .fs-aisle-del:hover {
  background:#f8f9fa;
}

.fs-aisles__footer {
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:12px;
}

.fs-btn {
  height:38px;
  padding:0 14px;
  border-radius:10px;
  font-weight:700;
  border:1px solid #e5e7eb;
  background:#fff;
  cursor:pointer;
}

.fs-btn--primary {
  background:#ef4444;
  color:#fff;
  border-color:#ef4444;
}

.fs-btn--primary:hover {
  background:#dc2626;
  border-color:#dc2626;
}

.fs-btn--ghost:hover {
  background:#f8f9fa;
}

/* Panel */

.fs-settings {
  width: min(640px, 92vw);
}

.fs-settings__header {
  font-weight: 800;
  font-size: 22px;
  padding: 10px 16px 4px 16px;
}

.fs-settings__form {
  padding: 8px 16px 16px 16px;
}

/* Rows */

.fs-row, .fs-linkrow {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 12px;
  border: 1px solid #eef0f2;
  border-radius: 12px;
  background:#fff;
}

.fs-row + .fs-row, .fs-row + .fs-linkrow {
  margin-top: 10px;
}

.fs-row__icon {
  width: 28px;
  height: 28px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.fs-row__text {
  flex: 1 1 auto;
  min-width: 0;
}

.fs-row__title {
  font-weight: 800;
}

.fs-row__desc {
  color:#6b7280;
  font-size: 13px;
  line-height: 1.35;
  margin-top: 2px;
}

/* Link row (Manage aisles) */

.fs-linkrow {
  cursor: pointer;
  border: 1px solid #e7e9ee;
}

.fs-linkrow:hover {
  background:#f8f9fb;
}

.fs-linkrow__chev {
  font-size: 22px;
  color:#6b7280;
  line-height: 1;
}

/* Footer */

.fs-settings__footer {
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top: 16px;
}

.fs-btn {
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  font-weight: 700;
  border:1px solid #e5e7eb;
  background:#fff;
  cursor:pointer;
}

.fs-btn--primary {
  background:#ef4444;
  color:#fff;
  border-color:#ef4444;
}

.fs-btn--primary:hover {
  background:#dc2626;
  border-color:#dc2626;
}

.fs-btn--ghost:hover {
  background:#f6f7f9;
}

/* Switch (accessible checkbox) */

.fs-switch {
  position: relative;
  width: 44px;
  height: 26px;
  flex: 0 0 44px;
}

.fs-switch__input {
  -moz-appearance:none;
       appearance:none;
  -webkit-appearance:none;
  width:100%;
  height:100%;
  margin:0;
  position:absolute;
  inset:0;
  cursor:pointer;
}

.fs-switch__track {
  position:absolute;
  inset:0;
  border-radius: 999px;
  background:#e5e7eb;
  box-shadow: inset 0 0 0 1px #d1d5db;
}

.fs-switch__input:checked + .fs-switch__track {
  background:#111827;
}

.fs-switch__track::after {
  content:"";
  position:absolute;
  top:3px;
  left:3px;
  width:20px;
  height:20px;
  background:#fff;
  border-radius:50%;
  box-shadow: 0 1px 2px rgba(0,0,0,.18);
  transition: transform .18s ease;
}

.fs-switch__input:checked + .fs-switch__track::after {
  transform: translateX(18px);
}

/* Header layout */

/*.fs-nav { display:flex; align-items:center; justify-content:space-between; padding:12px 16px; }*/

.fs-nav__left{
  flex:0 0 auto;
}

.fs-nav__center{
  flex:1 1 auto;
  display:flex;
  justify-content:center;
}

.fs-nav__right{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:12px;
}

.fs-logo {
  font-weight:900;
  font-size:22px;
  letter-spacing:-.3px;
  color:#111827;
  text-decoration:none;
}

.fs-search {
  display:grid;
  grid-template-columns: 1fr 46px;
  width:min(720px,90vw);
}

.fs-search__input{
  height:42px;
  border:1px solid #e5e7eb;
  border-radius:999px 0 0 999px;
  padding:0 14px;
}

.fs-search__go{
  height:42px;
  width:46px;
  border-radius:50%;
  border:0;
  background:#ef4444;
  color:#fff;
  cursor:pointer;
  margin-left:6px;
}

.fs-iconbtn{
  width:36px;
  height:36px;
  border:1px solid #e5e7eb;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#111;
  background:#fff;
  text-decoration:none;
}

.fs-iconbtn:hover{
  background:#f8f9fa;
}

.fs-premium{
  padding:8px 14px;
  border:1px solid #111;
  border-radius:999px;
  font-weight:700;
  text-decoration:none;
  color:#111;
  background:#fff;
}

.fs-premium:hover{
  background:#111;
  color:#fff;
}

.fs-avatar{
  width:36px;
  height:36px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#1f2937;
  color:#fff;
  text-decoration:none;
  font-weight:800;
}

.fs-login{
  font-weight:700;
  color:#2563eb;
  text-decoration:none;
}

.fs-login:hover{
  text-decoration:underline;
}

/* pill-style icon form */

.gl-formicon {
  display:inline-flex;
}

.gl-formicon button {
  all: unset;
  width:36px;
  height:36px;
  border:1px solid #e5e7eb;
  border-radius:10px;
  background:#fff;
  color:#9f1239;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  line-height:1;
}

.gl-formicon button:hover {
  background:#fff1f2;
}

.gl-iconbtn.gl-delete{
  width:36px;
  height:36px;
  border:1px solid #e5e7eb;
  border-radius:10px;
  background:#fff;
  color:#9f1239;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  line-height:1
}

/* pill */

.gl-iconbtn.gl-delete:hover{
  background:#fff1f2
}

/* hover */

.home-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* app/assets/stylesheets/recipes.css */

.numbered-red {
  counter-reset: step;
}

.numbered-red li {
  list-style: none;
  position: relative;
  counter-increment: step;
  padding-left: 2rem;
}

.numbered-red li::before {
  content: counter(step);
  color: #e63946;
  /* red */
  position: absolute;
  left: 0;
  width: 1.5rem;
  text-align: right;
  font-weight: 700;
}

/* app/assets/stylesheets/scratch_editor.css */

/* Base tokens */

:root {
  --bg: #fafafa;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --shadow: 0 6px 20px rgba(0,0,0,.06);
  --primary: #111827;
  --danger: #e63946;
  --accent: #ef4444;
  --radius: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
}

/* Top header */

.new-recipe-header {
  max-width: 980px;
  margin: 24px auto 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.back-link {
  font-size: 20px;
  text-decoration: none;
  color: var(--text);
}

.flex-spacer {
  flex: 1;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border: 0;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
}

/* Card + layout */

.card {
  max-width: 980px;
  margin: 0 auto 48px;
  padding: 24px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.fields {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 24px;
}

@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

.input, .input-lg, .input-narrow, textarea, input[type=number] {
  width: 100%;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
}

.input-lg {
  font-size: 20px;
  font-weight: 600;
  padding: 14px 16px;
}

.pills {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px;
}

.pill button {
  border: 0;
  background: transparent;
  font-size: 18px;
  padding: 0 4px;
}

/* Image picker placeholder */

.uploader input[type=file] {
  display: block;
  margin-bottom: 12px;
}

/* Dynamic lists */

.stack > * + * {
  margin-top: 8px;
}

/* Directions with red numbers (like OR) */

.numbered-red {
  counter-reset: step;
}

.numbered-red li {
  list-style: none;
  position: relative;
  counter-increment: step;
  padding-left: 2rem;
}

.numbered-red li::before {
  content: counter(step);
  color: var(--danger);
  font-weight: 700;
  position: absolute;
  left: 0;
  width: 1.5rem;
  text-align: right;
}

/* caboodle menu (plus button) */

.fab.red-plus {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: 0;
  font-size: 22px;
  box-shadow: var(--shadow);
}

.menu.hidden {
  display: none;
}

.menu {
  position: absolute;
  right: 0;
  margin-top: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 10px;
  min-width: 260px;
}

.menu .menu-item {
  display: block;
  padding: 10px 12px;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
}

.menu .menu-item:hover {
  background: #f3f4f6;
}

/* per-row layout */

.row {
  display: grid;
  grid-template-columns: 24px 1fr 28px;
  gap: 8px;
  align-items: center;
}

.handle {
  cursor: grab;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  color: #9ca3af;
  font-weight: 700;
  text-align: center;
}

.handle:active {
  cursor: grabbing;
}

.icon-btn {
  border: 0;
  background: transparent;
  color: #9ca3af;
  font-size: 18px;
  line-height: 1;
}

.icon-btn:hover {
  color: #ef4444;
}

/* remove list bullets because we render numeric markers via CSS */

.list-reset {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* app/assets/stylesheets/recipe_show.css */

/* Container + card (match grocery list proportions) */

.rs-container {
  max-width: 980px;
  margin: 24px auto 48px;
  padding: 0 8px;
}

.rs-card {
  background:#fff;
  border-radius:16px;
  box-shadow:0 6px 20px rgba(0,0,0,.06);
  padding:24px;
}

/* Header */

.rs-head {
  display:flex;
  align-items:center;
  gap:16px;
}

.rs-title {
  font-size:32px;
  font-weight:800;
  line-height:1.15;
  margin:0;
}

.rs-actions {
  margin-left:auto;
  display:flex;
  gap:12px;
  align-items:center;
}

.rs-btn {
  border:1px solid #e5e7eb;
  border-radius:10px;
  padding:10px 14px;
  background:#fff;
  font-weight:600;
}

.rs-btn--primary {
  background:#111827;
  color:#fff;
  border-color:#111827;
}

/* Meta pills */

.rs-pills {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.rs-pill {
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border:1px solid #e5e7eb;
  border-radius:999px;
  background:#f8fafc;
}

/* Body two-column layout */

.rs-body {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:32px;
  margin-top:24px;
}

@media (max-width: 900px){
  .rs-body{
    grid-template-columns:1fr;
  }
}

.rs-section-title{
  font-size:24px;
  font-weight:800;
  margin:16px 0;
}

/* Copy buttons row */

.rs-tools {
  display:flex;
  gap:12px;
  margin:16px 0 4px;
}

/* Directions numbers (red) – same as earlier */

.rs-steps {
  counter-reset: step;
}

.rs-steps li {
  list-style:none;
  position:relative;
  counter-increment: step;
  padding-left:2rem;
  margin:10px 0;
}

.rs-steps li::before{
  content:counter(step);
  color:#e63946;
  font-weight:700;
  position:absolute;
  left:0;
  width:1.5rem;
  text-align:right;
}

/* Image slot */

.rs-image {
  width:160px;
  height:160px;
  border-radius:12px;
  overflow:hidden;
  background:#f3f4f6;
  display:flex;
  align-items:center;
  justify-content:center;
}

.rs-image img {
  width:100%;
  height:100%;
  -o-object-fit:cover;
     object-fit:cover;
}

/* Little “copied” bubble */

.rs-toast {
  position:fixed;
  bottom:20px;
  left:50%;
  transform:translateX(-50%);
  background:#111827;
  color:#fff;
  padding:10px 14px;
  border-radius:10px;
  opacity:0;
  pointer-events:none;
  transition:opacity .2s;
}

.rs-toast--show {
  opacity:1;
}

/* app/assets/stylesheets/caboodle_toolbar.css */

/* 1) Design tokens: Light & Dark scales (WCAG-friendly contrast) */

:root {
  color-scheme: light dark;
  /* opt in to both */
  --bg:        #f8fafc;
  /* page background */
  --surface:   #ffffff;
  /* general surfaces */
  --card:      #ffffff;
  /* cards (slightly raised) */
  --text:      #111827;
  /* primary text */
  --muted:     #6b7280;
  /* secondary text */
  --border:    #e5e7eb;
  /* subtle borders */
  --shadow:    0 6px 20px rgba(0,0,0,.06);
  --accent:    #ef4444;
  /* red plus */
}

/* System dark palette (used when data-theme is not set and system is dark) */

@media (prefers-color-scheme: dark) {
  :root {
    --bg:      #0b1220;
    --surface: #0e1627;
    --card:    #111a2d;
    /* slightly lighter than bg for readable card */
    --text:    #e5e7eb;
    --muted:   #9ca3af;
    --border:  #27364f;
    --shadow:  0 8px 28px rgba(0,0,0,.55);
    --accent:  #ef4444;
  }
}

/* Explicit overrides via data-theme="light"/"dark" */

[data-theme="light"] {
  --bg:#f8fafc;
  --surface:#ffffff;
  --card:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --border:#e5e7eb;
  --shadow:0 6px 20px rgba(0,0,0,.06);
  --accent:#ef4444;
}

[data-theme="dark"]  {
  --bg:#0b1220;
  --surface:#0e1627;
  --card:#111a2d;
  --text:#e5e7eb;
  --muted:#9ca3af;
  --border:#27364f;
  --shadow:0 8px 28px rgba(0,0,0,.55);
  --accent:#ef4444;
}

/* 2) Global application of tokens */

body {
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
}

/* caboodle tile and cards */

.home-caboodle {
  position: relative;
}

.home-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.home-card-placeholder {
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: 16px;
  height: 180px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  color: var(--text);
  box-shadow: var(--shadow);
}

.home-card-link {
  text-decoration: none;
}

/* Toolbar (search + plus) */

.home-toolbar {
  position: absolute;
  right: 16px;
  top: -12px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.icon-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  color: var(--text);
}

.fab.red-plus {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: 0;
  box-shadow: var(--shadow);
}

/* Popovers */

.popover {
  position: absolute;
  right: 0;
  margin-top: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 10px;
  min-width: 280px;
  z-index: 20;
  color: var(--text);
}

.popover.hidden {
  display: none;
}

.menu-item {
  display:block;
  padding: 10px 12px;
  text-decoration: none;
  color: var(--text);
  border-radius: 8px;
}

.menu-item:hover {
  background: color-mix(in oklab, var(--surface), black 6%);
}

/* Search rows inside popover */

.search-row {
  display:flex;
  gap:8px;
  margin:6px 0;
}

.search-input, .search-go, .select-btn {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
}

.search-input {
  flex:1;
  padding: 10px 12px;
}

.search-go    {
  padding: 10px 12px;
}

/* Theme selector */

.theme-row   {
  max-width: 980px;
  margin: 12px auto 32px;
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:12px;
  color: var(--muted);
}

.theme-label {
  font-weight: 600;
}

.theme-select {
  position: relative;
}

.select-btn   {
  padding:8px 12px;
}

.select-menu  {
  position:absolute;
  right:0;
  top:calc(100% + 6px);
  background: var(--surface);
  border:1px solid var(--border);
  border-radius:12px;
  box-shadow: var(--shadow);
  padding:8px;
  z-index:20;
}

.select-menu.hidden {
  display:none;
}

.select-menu [role="option"] {
  display:block;
  width:100%;
  text-align:left;
  padding:8px 10px;
  border-radius:8px;
  background:transparent;
  color: var(--text);
}

.select-menu [role="option"]:hover {
  background: color-mix(in oklab, var(--surface), black 6%);
}

/* Theme tokens that adapt to system or override */

/* 1) Define tokens once */

:root {
  color-scheme: light dark;
  /* opt-in to both */
  --c-text:   #111827;
  /* light text */
  --c-bg:     #ffffff;
  /* light page bg */
  --c-surface:#ffffff;
  /* light surfaces (popovers/buttons) */
  --c-border: #e5e7eb;
  /* light borders */
}

@media (prefers-color-scheme: dark) {
  :root {
    --c-text:   #e5e7eb;
    /* dark text */
    --c-bg:     #111827;
    /* dark page bg */
    --c-surface:#1f2937;
    /* dark surfaces */
    --c-border: #374151;
    /* dark borders */
  }
}

/* 2) Use tokens instead of light-dark() */

body {
  color: var(--c-text);
  background: var(--c-bg);
}

.icon-btn, .popover, .select-menu, .search-go, .select-btn {
  background:   var(--c-surface);
  color:        var(--c-text);
  border-color: var(--c-border);
}

/* Explicit user overrides via data-theme */

[data-theme="light"] body {
  color:#111827;
  background:#ffffff;
}

[data-theme="dark"]  body {
  color:#e5e7eb;
  background:#111827;
}

/* app/assets/stylesheets/theme.css */

/* Tokens for accessible Light/Dark with layered surfaces */

:root {
  color-scheme: light dark;
  --bg:      #f8fafc;
  /* page */
  --surface: #ffffff;
  /* header/footer/popover */
  --card:    #ffffff;
  /* content tiles/cards */
  --text:    #111827;
  /* body text */
  --muted:   #6b7280;
  /* secondary text */
  --heading: #0f172a;
  /* headings */
  --border:  #e5e7eb;
  /* subtle borders */
  --shadow:  0 6px 20px rgba(0,0,0,.06);
  --accent:  #ef4444;
  /* red accents */
}

/* Auto-dark (system) */

@media (prefers-color-scheme: dark) {
  :root {
    --bg:      #0b1220;
    /* darker page */
    --surface: #0e1627;
    /* header/footer/dropdowns */
    --card:    #111a2d;
    /* slightly lighter card for separation */
    --text:    #e5e7eb;
    --muted:   #9ca3af;
    --heading: #f3f4f6;
    /* brighter headings for readability */
    --border:  #27364f;
    --shadow:  0 8px 28px rgba(0,0,0,.55);
    --accent:  #ef4444;
  }
}

/* Explicit user override */

[data-theme="light"] {
  --bg:#f8fafc;
  --surface:#ffffff;
  --card:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --heading:#0f172a;
  --border:#e5e7eb;
  --shadow:0 6px 20px rgba(0,0,0,.06);
  --accent:#ef4444;
}

[data-theme="dark"]  {
  --bg:#0b1220;
  --surface:#0e1627;
  --card:#111a2d;
  --text:#e5e7eb;
  --muted:#9ca3af;
  --heading:#f3f4f6;
  --border:#27364f;
  --shadow:0 8px 28px rgba(0,0,0,.55);
  --accent:#ef4444;
}

/* Global usage */

body {
  background: var(--bg);
  color: var(--text);
}

h1,h2,h3,h4 {
  color: var(--heading);
}

.site-header, .site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.site-header__inner, .footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 12px;
  display:flex;
  align-items:center;
  gap:16px;
}

.footer-inner {
  justify-content: space-between;
}

.brand {
  text-decoration:none;
  color: var(--heading);
  font-weight:800;
}

/* Theme dropdown – polished and on-theme */

.theme-switch {
  position: relative;
}

.select-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.select-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: var(--surface);
  border:1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 6px;
  min-width: 220px;
  z-index: 50;
}

.select-menu.hidden {
  display: none;
}

.select-menu [role="option"] {
  display:block;
  width:100%;
  text-align:left;
  padding:10px 12px;
  border-radius:8px;
  background:transparent;
  color: var(--text);
}

.select-menu [role="option"]:hover {
  background: color-mix(in oklab, var(--surface), black 6%);
}

/* Cards, popovers and inputs across the site adopt tokens */

.card, .recipe-card, .home-card-placeholder {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.popover, .menu, .search, .dropdown {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

input, select, textarea, .btn, .control-button {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 10px;
}

/* Global accessible theming via tokens (Light/Dark) */

:root {
  color-scheme: light dark;
  /* enable dual schemes */
  /* [13] */
  /* Light palette */
  --bg:      #f8f9fb;
  /* page */
  /* [13] */
  --surface: #ffffff;
  /* nav/popover */
  /* [13] */
  --card:    #ffffff;
  /* content tiles */
  /* [13] */
  --text:    #111827;
  /* body text */
  /* [13] */
  --muted:   #6b7280;
  /* secondary */
  /* [13] */
  --heading: #0f172a;
  /* headings */
  /* [13] */
  --border:  #e5e7eb;
  /* borders */
  /* [13] */
  --shadow:  0 6px 20px rgba(0,0,0,.06);
  /* [13] */
  --accent:  #ef4444;
  /* red */
  /* [13] */
}

/* System Dark (for “Sync with system”) */

@media (prefers-color-scheme: dark) {
  :root {
    --bg:      #0b1220;
    /* darker page */
    /* [10] */
    --surface: #0e1627;
    /* header/footer/menu */
    /* [10] */
    --card:    #111a2d;
    /* slightly lighter */
    /* [10] */
    --text:    #e5e7eb;
    /* readable body */
    /* [10] */
    --muted:   #9ca3af;
    /* secondary */
    /* [10] */
    --heading: #f3f4f6;
    /* brighter titles */
    /* [10] */
    --border:  #27364f;
    /* subtle edges */
    /* [10] */
    --shadow:  0 8px 28px rgba(0,0,0,.55);
    /* [10] */
    --accent:  #ef4444;
    /* [10] */
  }
}

/* Explicit user overrides */

[data-theme="light"] {
  --bg:#f8f9fb;
  --surface:#fff;
  --card:#fff;
  --text:#111827;
  --muted:#6b7280;
  --heading:#0f172a;
  --border:#e5e7eb;
  --shadow:0 6px 20px rgba(0,0,0,.06);
  --accent:#ef4444;
}

/* [13] */

[data-theme="dark"]  {
  --bg:#0b1220;
  --surface:#0e1627;
  --card:#111a2d;
  --text:#e5e7eb;
  --muted:#9ca3af;
  --heading:#f3f4f6;
  --border:#27364f;
  --shadow:0 8px 28px rgba(0,0,0,.55);
  --accent:#ef4444;
}

/* [10] */

/* Global application */

body {
  background: var(--bg);
  color: var(--text);
}

/* [13] */

h1,h2,h3,h4 {
  color: var(--heading);
}

/* [13] */

a {
  color: inherit;
}

/* [13] */

/* Cards, popovers, inputs adopt tokens */

.card, .recipe-card, .home-card-placeholder {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* [13] */

.popover, .menu, .dropdown, .search {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* [13] */

input, select, textarea, .btn, .control-button {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 10px;
}

/* [13] */

/* Accessible list items */

.ingredients-list .ingredient-item,
.instructions-list .instruction-item {
  background: var(--card);
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

/* [13] */

/* Direction numbers (stay readable on both themes) */

/*.instructions-list { counter-reset: step; padding-left: 0; } !* [22] *!*/

/*.instructions-list .instruction-item { list-style: none; position: relative; counter-increment: step; padding-left: 2rem; margin: 10px 0; } !* [22] *!*/

/*.instructions-list .instruction-item::before { content: counter(step); color: var(--accent); font-weight: 700; position: absolute; left: 0; width: 1.5rem; text-align: right; } !* [22] *!*/

/* Force both columns onto the same layer so they match */

.ingredients-section, .instructions-section {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}

/* [13] */

/* Polished dropdown */

.theme-switch {
  position: relative;
}

.select-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

/* [13] */

.select-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: var(--surface);
  border:1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 6px;
  min-width: 220px;
  z-index: 50;
}

/* [13] */

.select-menu.hidden {
  display: none;
}

/* [13] */

.select-menu [role="option"] {
  display:block;
  width:100%;
  text-align:left;
  padding:10px 12px;
  border-radius:8px;
  background:transparent;
  color: var(--text);
}

/* [13] */

.select-menu [role="option"]:hover {
  background: color-mix(in oklab, var(--surface), black 6%);
}

/* [16] */

/* Headings/titles (fix unreadable titles in dark) */

/*h1, h2, h3, h4, h5, h6,*/

/*.home-h2, .recipe-title, .section-title, .subsection-title {*/

/*    color: var(--heading) !important;*/

/*}*/

/* Edit rows and fields */

.row {
  /* dynamic-list row wrapper */
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 8px;
  align-items: center;
}

.row + .row {
  margin-top: 8px;
}

.row .input,
.input, .input-lg, .input-narrow, input[type="text"], input[type="search"], textarea {
  background: var(--surface);
  color: var(--text);
  /*border: 1px solid var(--border);*/
  border-radius: 10px;
  padding: 10px 50px;
}

/* Placeholders readable in Dark */

.input::-moz-placeholder, .row .input::-moz-placeholder, input::-moz-placeholder, textarea::-moz-placeholder {
  color: var(--muted);
}

.input::placeholder,
.row .input::placeholder,
input::placeholder, textarea::placeholder {
  color: var(--muted);
}

/* Autofill quirks on WebKit */

input:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  box-shadow: 0 0 0px 1000px var(--surface) inset;
}

/* Drag handle and delete icon on themed surface */

.row .handle {
  color: var(--muted);
}

.row .icon-btn {
  color: var(--muted);
}

.row .icon-btn:hover {
  color: var(--accent);
}

/* Make both columns match */

.ingredients-section, .instructions-section {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}

/* List items inside each column */

.ingredients-list .ingredient-item,
.instructions-list .instruction-item {
  background: var(--card);
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

/* Checkboxes with brand accent but high contrast */

.ingredient-checkbox, input[type="checkbox"] {
  accent-color: var(--accent);
}

.theme-switch {
  position: relative;
}

.select-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.select-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 6px;
  min-width: 220px;
  z-index: 50;
}

.select-menu.hidden {
  display: none;
}

.select-menu [role="option"] {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
}

.select-menu [role="option"]:hover {
  background: color-mix(in oklab, var(--surface), black 6%);
}

/* Scoped to the home URL form so generic .input rules don’t hijack it */

.home-form .home-pill {
  /* layout */
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 780px;
  margin: 0 auto;
  padding: 10px 12px;
  /* look & feel (theme-aware) */
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9999px;
  /* pill */
  box-shadow: var(--shadow);
}

/* order and specificity win over generic rules */

/* [6][12] */

.home-form .home-input[type="search"],
.home-form .home-input {
  /* neutralize UA and generic input styling */
  -moz-appearance: none;
       appearance: none;
  /* standard */
  /* [19] */
  -webkit-appearance: none;
  /* webkit */
  /* [7] */
  border: 0;
  outline: none;
  background: transparent;
  /* sizing & typography */
  flex: 1;
  padding: 12px 8px;
  font-size: 18px;
  line-height: 1.25;
  color: var(--text);
}

/* [7][1] */

.home-form .home-input::-moz-placeholder {
  color: var(--muted);
}

.home-form .home-input::placeholder {
  color: var(--muted);
}

/* readable placeholder */

/* [16] */

/* Remove WebKit’s built-in search buttons so width doesn’t inflate */

.home-form .home-input::-webkit-search-cancel-button,
.home-form .home-input::-webkit-search-results-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

/* [13][17] */

/* The round red arrow button stays a circle, not stretched by generic .btn rules */

.home-form .home-arrow {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9999px;
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow);
}

/* [6] */

/* Mobile adjustments so it stays “nice and rounded” on small screens */

@media (max-width: 480px) {
  .home-form .home-pill {
    padding: 8px 10px;
  }

  .home-form .home-input {
    font-size: 16px;
    padding: 10px 6px;
  }

  .home-form .home-arrow {
    width: 40px;
    height: 40px;
  }
}

/* [6] */

/* Stop CSS from manufacturing extra text or uppercasing it */

.select-btn, .select-label {
  text-transform: none;
}

/* prevents “LIGHT” effect */

.select-btn::before, .select-btn::after,
.select-label::before, .select-label::after {
  content: none !important;
}

/* removes injected copies */

.caret {
  margin-left: 6px;
}

/* Make the editable preview title look like the show title */

.recipe-title input.input-lg,
.recipe-title input[type="text"] {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--heading);
}

.recipe-title input:focus {
  outline: none;
}

/* app/assets/stylesheets/recipes_index.css */

.recipes-index {
  max-width: 1100px;
  margin: 24px auto 40px;
  padding: 0 12px;
}

.page-title    {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--heading);
  margin: 8px 0 16px;
}

.recipes-index-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.index-search       {
  display: flex;
  gap: 8px;
  align-items: center;
}

.index-search-input {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 10px;
  min-width: 260px;
}

.index-search-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.empty-state {
  margin: 16px 0 8px;
  color: var(--muted);
}

.recipes-grid {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.recipe-card-item {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.rc-thumb-wrap {
  display: block;
}

.rc-thumb {
  display: block;
  width: 100%;
  height: 160px;
  -o-object-fit: cover;
     object-fit: cover;
  background: var(--surface);
}

.rc-thumb.placeholder {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  background: var(--surface);
}

/*.rc-body { padding: 12px; display: flex; flex-direction: column; gap: 10px; }*/

.rc-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.rc-title a {
  color: var(--text);
  text-decoration: none;
}

.rc-title a:hover {
  text-decoration: underline;
}

.rc-actions {
  display: flex;
  gap: 8px;
}

/*.rc-btn {*/

/*    padding: 8px 12px; border-radius: 10px; font-weight: 600; text-decoration: none; display: inline-block;*/

/*    border: 1px solid var(--border); background: var(--surface); color: var(--text);*/

/*}*/

.rc-btn--primary {
  background: var(--surface);
}

.rc-btn--danger  {
  background: var(--surface);
  color: var(--text);
}

.rc-btn--danger:hover {
  color: #b91c1c;
}

/* subtle danger hint */

/* collections_index.css */

.collections-index {
  max-width: 1100px;
  margin: 24px auto 40px;
  padding: 0 12px;
}

.collections-head {
  display:flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.page-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--heading);
  margin: 8px 0 6px;
}

.tabs {
  display:flex;
  gap: 14px;
  align-items:center;
}

.tab-link {
  color: var(--text);
  text-decoration: none;
}

.tab-link:hover {
  text-decoration: underline;
}

.tab-current {
  font-weight: 800;
  border-bottom: 2px solid var(--text);
  padding-bottom: 2px;
}

.collections-grid {
  list-style:none;
  padding:0;
  margin:18px 0 0;
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(260px, 1fr));
  gap:18px;
}

.collection-card {
  background: var(--card);
  color: var(--text);
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow: var(--shadow);
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

.cc-thumb-wrap {
  display:block;
}

.cc-thumb {
  height:120px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:36px;
  background: var(--surface);
}

.cc-body {
  padding:12px;
  display:flex;
  gap:10px;
}

.cc-title {
  margin:0;
  font-size:18px;
  font-weight:700;
  line-height:1.3;
}

.cc-title a {
  color: var(--text);
  text-decoration:none;
}

.cc-title a:hover {
  text-decoration:underline;
}

.cc-actions {
  display:flex;
  gap:8px;
}

.cc-btn {
  padding:8px 12px;
  border-radius:10px;
  font-weight:600;
  text-decoration:none;
  display:inline-block;
  border:1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.cc-btn--primary {
  background: var(--surface);
}

.cc-btn--danger:hover {
  color:#b91c1c;
}

/* Floating action button and right-aligned panel */

.fab-wrap {
  position: fixed;
  right: 22px;
  bottom: 26px;
}

.fab.red-plus {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background:#ef4444;
  color:#fff;
  border:0;
  box-shadow: var(--shadow);
  font-size: 28px;
}

.menu-panel {
  position: absolute;
  right:0;
  bottom: 64px;
  background: var(--surface);
  border:1px solid var(--border);
  border-radius:12px;
  box-shadow: var(--shadow);
  padding:8px;
  min-width: 220px;
  z-index: 40;
}

.menu-panel.hidden {
  display:none;
}

.menu-item {
  display:block;
  padding:10px 12px;
  border-radius:8px;
  color: var(--text);
  text-decoration:none;
}

.menu-item:hover {
  background: color-mix(in oklab, var(--surface), black 6%);
}

/* app/assets/stylesheets/home_tiles.css */

/*.home-card-tile {*/

/*    position: relative;*/

/*    background: var(--card);*/

/*    border: 1px solid var(--border);*/

/*    border-radius: 16px;*/

/*    box-shadow: var(--shadow);*/

/*    min-height: 180px;*/

/*    display: grid;*/

/*    place-items: center;*/

/*    overflow: hidden;*/

/*}*/

/*!* 5×2 = 10 squares; small gaps for a neat collage *!*/

/*.tile-mosaic {*/

/*    width: 100%;*/

/*    height: 100%;*/

/*    display: grid;*/

/*    grid-template-columns: repeat(5, 1fr);*/

/*    grid-template-rows: repeat(2, 1fr);*/

/*    gap: 2px;*/

/*    padding: 10px;*/

/*}*/

/*!* Square cells; images fill and crop cleanly *!*/

/*.mosaic-img {*/

/*    width: 100%;*/

/*    aspect-ratio: 1 / 1;     !* perfect square cells *!*/

/*    object-fit: cover;        !* fill without distortion *!*/

/*    border-radius: 6px;*/

/*    background: var(--surface);*/

/*    display: block;*/

/*}*/

/*.mosaic-img.placeholder {*/

/*    display: grid;*/

/*    place-items: center;*/

/*    font-size: 18px;*/

/*    color: var(--muted);*/

/*}*/

/*!* Overlay label for clarity *!*/

/*.tile-label {*/

/*    position: absolute;*/

/*    left: 14px;*/

/*    bottom: 12px;*/

/*    padding: 7px 4px;*/

/*    border-radius: 10px;*/

/*    background: color-mix(in oklab, var(--surface), black 6%);*/

/*    border: 1px solid var(--border);*/

/*    color: var(--text);*/

/*    font-weight: 700;*/

/*    pointer-events: none;*/

/*}*/

/*!* Keep your existing grid/tile wrapper styles *!*/

/*.home-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }*/

/*New*/

/* === HOME PAGE CARD HOVER EFFECTS - FIXED FOR MOSAIC === */

/* Home card tiles - same hover effects but preserve mosaic layout */

.home-card-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0;
  transition: all 0.2s ease;
  overflow: hidden;
  text-decoration: none;
  display: block;
  position: relative;
}

/* Home card hover effects - EXACT same as recipe/collection cards */

.home-card-tile:hover {
  border-color: var(--accent) !important;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.1) !important;
  transform: translateY(-2px) !important;
  text-decoration: none;
}

/* Home card image hover effects - images zoom in slightly */

.home-card-tile:hover .mosaic-img {
  transform: scale(1.05) !important;
}

.home-card-tile:hover .mosaic-img.placeholder {
  transform: scale(1.05) !important;
}

/* FIXED: Tile mosaic styling - PRESERVES MULTIPLE IMAGES */

.tile-mosaic {
  width: 100%;
  /*height: 200px;*/
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /*grid-template-rows: repeat(3, 1fr);*/
  gap: 2px;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  position: relative;
}

/* FIXED: Individual mosaic images - sized for grid */

.mosaic-img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 0.3s ease !important;
}

.mosaic-img.placeholder {
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  /* Smaller emoji for grid */
  color: #9ca3af;
  transition: transform 0.3s ease !important;
}

/* Tile labels */

.tile-label {
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--heading);
  text-align: center;
}

/* Home card grid layout */

.home-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

/* Red plus button hover effects */

.red-plus {
  transition: all 0.2s ease;
}

.red-plus:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(239, 68, 68, 0.2);
}

/* Home section styling */

.home-section {
  margin: 0px auto;
  padding: 0 20px;
  max-width: 1120px;
}

.home-h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 24px;
  text-align: center;
}

/* Mobile responsive */

@media (max-width: 768px) {
  .home-card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .home-section {
    padding: 0 16px;
    margin: 32px auto;
  }

  .tile-mosaic {
    height: 180px;
  }

  .mosaic-img.placeholder {
    font-size: 18px;
  }

  .home-h2 {
    font-size: 20px;
    margin-bottom: 20px;
  }
}

/* Extra small screens */

@media (max-width: 480px) {
  .tile-mosaic {
    height: 160px;
  }

  .mosaic-img.placeholder {
    font-size: 16px;
  }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: #16a34a;
  color: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  z-index: 1000;
  font-weight: 700;
}

.toast.hidden {
  display: none;
}

/* ===== Accessible print layout for recipes (place at END of application.css) ===== */

@media print {
  @page {
    margin: 12mm 12mm 15mm;
  }

  /* comfortable margins */

  /* MDN @page */

  /* High-contrast base for paper */

  html, body {
    background: #fff !important;
    color: #000 !important;
  }

  a {
    color: #000 !important;
    text-decoration: none;
  }

  /* Remove screen-only chrome/effects */

  .recipe-container, .recipe-card {
    box-shadow: none !important;
    border: 0 !important;
  }

  .ingredients-section, .instructions-section {
    background: transparent !important;
    border: 0 !important;
  }

  /* Large, readable heading and meta */

  .recipe-title {
    font-size: 24pt !important;
    font-weight: 800 !important;
    color: #000 !important;
    margin: 0 0 6mm;
  }

  .recipe-source {
    color: #222 !important;
  }

  /* One-column flow */

  .recipe-header, .recipe-body {
    display: block !important;
  }

  .ingredients-section, .instructions-section {
    width: 100% !important;
  }

  /* Ensure Directions numbers print (use native markers) */

  .instructions-list {
    list-style: decimal !important;
    margin-left: 1.5em !important;
  }

  .instructions-list .instruction-item {
    counter-increment: none !important;
  }

  /* disable custom counters */

  .instructions-list .instruction-item::before {
    content: none !important;
  }

  /* remove generated numbers */

  .instructions-list .instruction-item::marker {
    color: #000 !important;
  }

  /* native marker, high contrast */

  /* Ingredients as clean bullets */

  .ingredients-list {
    list-style: disc !important;
    margin-left: 1.5em !important;
  }

  /* Avoid splitting items across pages */

  .instruction-item, .ingredient-item {
    -moz-column-break-inside: avoid;
         break-inside: avoid;
    page-break-inside: avoid;
  }

  /* Hide interactive controls/toasts for print */

  .recipe-controls, .recipe-actions, .pill.servings, .save-button,
    .control-button, .ingredient-checkbox, #copy-toast, .notice {
    display: none !important;
  }

  /* Images print neatly */

  .recipe-image img {
    max-width: 100% !important;
    height: auto !important;
    page-break-inside: avoid;
  }
}

/* Anchor and menu */

/*.fs-account { position: relative; display: inline-block; margin-left: 8px; }*/

/*.fs-avatar  { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;*/

/*    background: #111; color: #fff; font-weight: 600; border: 0; cursor: pointer; }*/

/*.fs-menu    { position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; padding: 6px;*/

/*    background: var(--card-bg, #fff); border: 1px solid rgba(0,0,0,.08); border-radius: 10px;*/

/*    box-shadow: 0 8px 24px rgba(0,0,0,.12); z-index: 1000; }*/

/*.fs-menu__item { display: block; padding: 10px 12px; border-radius: 8px; color: inherit; text-decoration: none; }*/

/*.fs-menu__item:hover { background: rgba(0,0,0,.05); }*/

/* Fix account dropdown appearing outside navbar */

.fs-account {
  position: relative;
  /* Create positioning context for dropdown */
}

.fs-menu {
  position: absolute;
  top: calc(100% + 8px);
  /* Position below the avatar button */
  right: 0;
  /* Align to right edge */
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  min-width: 150px;
  z-index: 1000;
  /* High z-index to appear above navbar */
  white-space: nowrap;
  /* Prevent text wrapping */
}

/* Ensure navbar doesn't clip the dropdown */

/*.fs-nav {*/

/*    position: sticky;*/

/*    top: 0;*/

/*    z-index: 999; !* Lower than dropdown menu *!*/

/*    overflow: visible; !* Allow dropdown to show outside *!*/

/*    !* rest of your existing navbar styles *!*/

/*}*/

/* Alternative: If you want dropdown to appear above navbar */

.fs-menu--up {
  top: auto;
  bottom: calc(100% + 8px);
  /* Position above the avatar button */
}

/* Menu items styling */

.fs-menu__item {
  display: block;
  padding: 8px 16px;
  color: var(--text);
  text-decoration: none;
  border-radius: 4px;
  margin: 4px 8px;
  transition: background 0.2s ease;
}

.fs-menu__item:hover {
  background: var(--muted);
  color: var(--accent);
}

/* Mobile adjustments */

@media (max-width: 480px) {
  .fs-menu {
    right: -8px;
    /* Align better on mobile */
    min-width: 120px;
  }

  .fs-menu__item {
    padding: 6px 12px;
    font-size: 14px;
  }
}

/* app/assets/stylesheets/devise_overrides.css */

.fs-auth {
  max-width: 560px;
  margin: 32px auto;
  padding: 0 16px;
}

.fs-card {
  background: var(--card-bg, #fff);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 20px;
}

.fs-field {
  margin-bottom: 14px;
}

.fs-actions {
  display: flex;
  gap: 10px;
}

/* shared auth layout */

.fs-auth {
  max-width: 480px;
  margin: 32px auto;
  padding: 0 16px;
}

.fs-card {
  background: var(--card-bg, #fff);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 20px;
}

.fs-form__body {
  display: block;
}

.fs-field {
  margin-bottom: 14px;
}

.fs-label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.fs-input {
  width: 100%;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.12);
  padding: 8px 12px;
}

.fs-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.fs-btn {
  padding: 10px 14px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
}

.fs-btn--primary {
  background: #111;
  color: #fff;
}

.fs-btn--ghost {
  background: transparent;
  border: 1px solid rgba(0,0,0,.12);
}

.fs-inline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fs-checkbox input {
  margin-right: 8px;
}

.fs-link {
  color: inherit;
  text-decoration: underline;
}

.ml-auto {
  margin-left: auto;
}

/* app/assets/stylesheets/devise_overrides.css (or your main CSS) */

.fs-auth {
  max-width: 480px;
  margin: 32px auto;
  padding: 0 16px;
}

.fs-card {
  background: var(--card-bg, #fff);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 20px;
}

.fs-form__body {
  display: block;
}

.fs-field {
  margin-bottom: 14px;
}

.fs-label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.fs-hint {
  font-weight: 400;
  opacity: .7;
  margin-left: 6px;
}

.fs-input {
  width: 100%;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.12);
  padding: 8px 12px;
}

.fs-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.fs-btn {
  padding: 10px 14px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
}

.fs-btn--primary {
  background: #111;
  color: #fff;
}

.fs-btn--ghost {
  background: transparent;
  border: 1px solid rgba(0,0,0,.12);
}

.fs-muted {
  font-size: 0.9rem;
  opacity: .7;
}

/* layout: 3 columns */

.footer-3col {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 20px;
}

/* [grid keeps center truly centered] */

.footer-center {
  display: flex;
  justify-content: center;
}

/* ensure popups are not clipped at page bottom */

.main-footer {
  overflow: visible;
}

.footer-container {
  overflow: visible;
}

/* drop-up behavior */

.theme-switch.dropup {
  position: relative;
}

.select-menu {
  position: absolute;
  bottom: calc(100% + 6px);
  /* open upward */
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 6px;
  min-width: 220px;
  z-index: 1000;
  /* above footer */
}

.select-menu.hidden {
  display: none;
}

/* keep your existing tokens and button styles as-is */

/* app/assets/stylesheets/cookie_banner.css */

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0,0,0,.15);
  padding: 12px;
  z-index: 1100;
}

.cookie-banner__content {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cookie-banner__actions {
  display: flex;
  gap: 8px;
}

/* Footer shell */

.fs-footer {
  margin: 24px 0 40px;
}

.fs-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 16px;
  background: var(--card-bg, #fff);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.fs-footer__brand {
  font-weight: 800;
  letter-spacing: .2px;
}

.fs-footer__links {
  display: flex;
  gap: 14px;
  margin-left: 8px;
}

.fs-footer__link {
  color: inherit;
  text-decoration: none;
  opacity: .8;
}

.fs-footer__link:hover {
  opacity: 1;
  text-decoration: underline;
}

.fs-footer__end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Theme dropdown */

.fs-theme {
  position: relative;
}

.fs-theme__btn {
  height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.12);
  background: var(--card-bg, #fff);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.fs-caret {
  opacity: .7;
}

.fs-theme__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 200px;
  z-index: 1000;
  background: var(--card-bg, #fff);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 10px;
  box-shadow: 0 10px 26px rgba(0,0,0,.12);
  padding: 6px;
}

.fs-theme__item {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.fs-theme__item:hover {
  background: rgba(0,0,0,.05);
}

/* Mobile wrap */

@media (max-width: 720px) {
  .fs-footer__inner {
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .fs-footer__links {
    width: 100%;
    order: 3;
    flex-wrap: wrap;
  }
}

/* Add to your CSS file or in a <style> tag */

/*.fs-nav {*/

/*    position: relative;*/

/*    z-index: 1000; !* Higher than any page content *!*/

/*}*/

/* Ensure dropdown menu has adequate z-index within nav context */

.fs-menu {
  position: absolute;
  z-index: 100;
  /* High within the nav stacking context */
}

/* If needed, reduce home page content z-index to avoid conflicts */

.home-hero {
  position: relative;
  z-index: 1;
  /* Lower than navigation */
}

/* Add to application.css with your other checkbox styles */

.fs-collection-row input[type="checkbox"] {
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  cursor: pointer;
  position: relative;
  margin-right: 12px;
  transition: all 0.2s ease;
}

.fs-collection-row input[type="checkbox"]:hover {
  border-color: var(--accent);
}

.fs-collection-row input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.fs-collection-row input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Add to application.css with your other checkbox styles */

.gl-checkbox,
.item-checkbox {
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  cursor: pointer;
  position: relative;
  margin: 0;
  transition: all 0.2s ease;
}

.gl-checkbox:hover,
.item-checkbox:hover {
  border-color: var(--accent);
}

.gl-checkbox:checked,
.item-checkbox:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.gl-checkbox:checked::after,
.item-checkbox:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.home-wrap {
  /* Remove the background-image from here */
  min-height: 100vh;
  /*background-color: #f5f5f5;*/
}

/* Background image for home/landing page */

.home-wrap--guest {
  background-image: url("root_bg.jpeg");
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  background-color: #f8f9fa;
  /* Fallback color while image loads */
  min-height: 100vh;
  /* Ensure it covers full viewport height */
}

/* Mobile optimization - serve smaller image and different positioning */

@media (max-width: 768px) {
  .home-wrap {
    background-attachment: scroll;
    /* Better performance on mobile */
    background-size: cover;
    background-position: center top;
  }
}

/* For very small screens - adjust background positioning */

@media (max-width: 480px) {
  .home-wrap {
    background-size: cover;
    background-position: center center;
  }
}

/* Industry standard navbar sizing */

/*.fs-nav {*/

/*    position: sticky;*/

/*    top: 0;*/

/*    z-index: 1000;*/

/*    transition: all 0.3s ease;*/

/*    padding: 12px 16px; !* Reduced padding *!*/

/*    background: var(--surface);*/

/*    border-bottom: 1px solid var(--border);*/

/*    display: flex;*/

/*    align-items: center;*/

/*    justify-content: space-between;*/

/*    height: 64px; !* Fixed height for consistency *!*/

/*}*/

.fs-nav--shrink {
  padding: 8px 16px;
  /* Shrinks to 8px padding */
  height: 56px;
  /* Smaller when scrolled */
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Logo sizing - industry standard */

.fs-logo__img {
  height: 32px;
  /* Much smaller than 60px */
  width: auto;
  transition: all 0.3s ease;
}

.fs-nav--shrink .fs-logo__img {
  height: 28px;
  /* Slightly smaller when shrunk */
}

/* Navigation elements */

.fs-nav__left,
.fs-nav__center,
.fs-nav__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fs-nav__center {
  flex: 1;
  justify-content: center;
  max-width: 500px;
}

/* Touch targets - minimum 44px */

.fs-iconbtn,
.fs-avatar,
.fs-login {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.fs-iconbtn:hover,
.fs-avatar:hover,
.fs-login:hover {
  background: var(--muted);
}

/* Search form in center */

.home-pill {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 8px 16px;
  width: 100%;
  max-width: 400px;
}

.home-input {
  border: none;
  background: transparent;
  outline: none;
  flex: 1;
  padding: 4px 0;
  font-size: 14px;
}

.fs-search__go {
  background: none;
  border: none;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 16px;
}

/* Recipe index mobile fixes - add to application.css */

/* Better mobile grid */

@media (max-width: 768px) {
  .recipes-grid {
    grid-template-columns: 1fr;
    /* Single column on mobile */
    gap: 16px;
    margin: 12px 0;
  }

  .recipe-card-item {
    margin: 0 8px;
    /* Better mobile margins */
  }
}

/* Fix text truncation and card layout */

.rc-body {
  /*padding: 14px; !* More padding *!*/
  min-height: 80px;
  /* Ensure consistent height */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rc-title {
  margin: 0 0 8px 0;
  font-size: 16px;
  /* Slightly smaller on mobile */
  font-weight: 700;
  line-height: 1.3;
  /* Text truncation with ellipsis */
  display: -webkit-box;
  -webkit-line-clamp: 1;
  /* Show max 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.rc-title a {
  color: var(--text);
  text-decoration: none;
  display: block;
  /* Make full area clickable */
}

.rc-title a:hover {
  text-decoration: none;
  /* Remove underline on hover */
  color: var(--accent);
}

/* Better button layout */

.rc-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  /* Push buttons to bottom */
  flex-wrap: wrap;
}

/*.rc-btn {*/

/*    padding: 6px 12px; !* Smaller buttons *!*/

/*    border-radius: 8px;*/

/*    font-weight: 600;*/

/*    font-size: 14px;*/

/*    text-decoration: none;*/

/*    display: inline-block;*/

/*    border: 1px solid var(--border);*/

/*    background: var(--surface);*/

/*    color: var(--text);*/

/*    flex: 1; !* Equal width buttons *!*/

/*    text-align: center;*/

/*    min-height: 32px;*/

/*    display: flex;*/

/*    align-items: center;*/

/*    justify-content: center;*/

/*}*/

.rc-btn--danger {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.rc-btn--danger:hover {
  color: #dc2626;
  border-color: #dc2626;
  background: #fef2f2;
}

.rc-btn:hover {
  background: var(--muted);
}

/* Better image handling */

.rc-thumb {
  width: 100%;
  height: 160px;
  -o-object-fit: cover;
     object-fit: cover;
  background: var(--surface);
  display: block;
}

.rc-thumb.placeholder {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  background: var(--surface);
  color: var(--muted);
}

/* Mobile-specific adjustments */

@media (max-width: 480px) {
  .rc-title {
    font-size: 15px;
    /* Even smaller on tiny screens */
    -webkit-line-clamp: 1;
    /* Keep 2 lines max */
  }

  .rc-body {
    padding: 12px;
    min-height: 63px;
  }

  .rc-btn {
    font-size: 13px;
    padding: 8px 10px;
    min-height: 36px;
    /* Better touch targets */
  }

  .rc-thumb,
    .rc-thumb.placeholder {
    height: 140px;
    /* Slightly smaller images on mobile */
  }
}

/* URL input styling fix */

.recipes-index-head {
  margin: 0 -8px 16px -8px;
  /* Better mobile margins */
}

@media (max-width: 640px) {
  .recipes-index-head {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .index-search {
    width: 100%;
  }

  .index-search-input {
    min-width: 0;
    flex: 1;
  }
}

/* Complete navbar fix - copy this exactly */

/*.fs-nav {*/

/*    position: sticky;*/

/*    top: 0;*/

/*    z-index: 1000;*/

/*    background: var(--surface);*/

/*    border-bottom: 1px solid var(--border);*/

/*    height: 60px; !* Fixed height *!*/

/*    width: 100%;*/

/*    box-sizing: border-box;*/

/*    padding: 0 16px;*/

/*    !* Remove any flexbox that might be causing issues *!*/

/*    display: block;*/

/*    overflow: visible;*/

/*}*/

/* Logo positioned absolutely on the left */

.fs-nav__left {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;
}

/* Center search - hide on mobile */

.fs-nav__center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1001;
}

/* Icons positioned absolutely on the right */

.fs-nav__right {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Logo styling */

.fs-logo__img {
  height: 32px;
  width: auto;
}

/* Icon buttons */

.fs-iconbtn,
.fs-avatar,
.fs-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  min-width: 40px;
  padding: 6px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--text);
}

.fs-avatar {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 50%;
  font-weight: 600;
  cursor: pointer;
}

/* Account dropdown positioning */

.fs-account {
  position: relative;
}

.fs-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  min-width: 150px;
  z-index: 2000;
}

.fs-menu__item {
  display: block;
  padding: 8px 16px;
  color: var(--text);
  text-decoration: none;
}

.fs-menu__item:hover {
  background: var(--muted);
}

/* Light colored tagline that stays under search bar */

.home-tagline {
  text-align: center;
  color: #6b7280;
  /* Light gray color, not too dark */
  font-size: 16px;
  /* Reasonable size */
  font-weight: 550;
  /* Perfect middle ground between 500 and 600 */
  font-style: italic;
  /* Keep italic styling */
  margin: 8px auto 0 auto;
  /* Closer to search bar */
  line-height: .4;
  /* Allow it to wrap on small screens instead of overflowing */
  max-width: 600px;
  /* Constrain width */
  white-space: normal;
  /* Allow wrapping */
  word-wrap: break-word;
  /* Break long words if needed */
  /* Add some subtle styling */
  letter-spacing: 0.2px;
  padding: 0 20px;
  /* Add padding to prevent edge overflow */
}

/* Mobile styling */

@media (max-width: 768px) {
  .home-tagline {
    font-size: 14px;
    margin: 6px auto 0 auto;
    max-width: 90%;
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .home-tagline {
    font-size: 8px;
    padding: 0 10px;
    max-width: 95%;
    margin: 4px auto 0 auto;
  }
}

/* Keep existing save-button styles for other buttons */

/* Add new green styling for "Recipe Saved" state only */

.save-button--success {
  background: #16a34a !important;
  /* Green for "Recipe Saved" */
  color: #fff !important;
}

.save-button--success:hover {
  background: #15803d !important;
  /* Darker green on hover */
}

/* Restore the original larger navbar search bar */

.fs-nav .home-pill {
  width: 100%;
  max-width: 500px;
  /* Much larger like in your old screenshot */
  min-width: 300px;
  /* Ensure it doesn't get too small */
  height: 44px;
  /* Taller like before */
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  border-radius: 22px;
  /* More rounded */
  display: flex;
  align-items: center;
  padding: 8px 16px;
  /* More padding */
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
  margin: 0 20px;
  /* Space from navbar edges */
}

.fs-nav .home-input {
  border: none;
  background: transparent;
  outline: none;
  flex: 1;
  padding: 8px 12px;
  font-size: 15px;
  /* Larger font */
  color: var(--text);
  font-weight: 400;
}

.fs-nav .home-input::-moz-placeholder {
  color: #9ca3af;
  font-size: 15px;
}

.fs-nav .home-input::placeholder {
  color: #9ca3af;
  font-size: 15px;
}

.fs-nav .fs-search__go {
  background: var(--accent);
  /* Red button like before */
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 18px;
  color: white;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fs-nav .fs-search__go:hover {
  background: #dc2626;
  /* Darker red on hover */
}

/* Ensure navbar center takes proper space */

.fs-nav__center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 50%;
  /* Take up substantial navbar width */
  z-index: 1001;
}

/* Mobile adjustments */

@media (max-width: 768px) {
  .fs-nav__center {
    display: none;
    /* Hide on mobile like before */
  }
}

/* Complete navbar fix - remove all existing .fs-nav styles and use this */

/*.fs-nav {*/

/*    position: sticky;*/

/*    top: 0;*/

/*    z-index: 1000;*/

/*    background: var(--surface);*/

/*    border-bottom: 1px solid var(--border);*/

/*    padding: 12px 20px;*/

/*    box-sizing: border-box;*/

/*    !* Pure flexbox layout - NO absolute positioning *!*/

/*    display: flex;*/

/*    align-items: center;*/

/*    justify-content: space-between;*/

/*    flex-wrap: nowrap;*/

/*    min-height: 64px;*/

/*    width: 100%;*/

/*}*/

/* Left section - logo */

.fs-nav__left {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  /* Don't grow/shrink */
}

/* Center section - search (this was the problem area) */

.fs-nav__center {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1 1 auto;
  /* Grow to fill available space */
  margin: 0 20px;
  /* Space from left/right sections */
  max-width: 600px;
  /* Don't get too wide */
}

/* Right section - user actions */

.fs-nav__right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  /* Don't grow/shrink */
}

/* Logo styling */

.fs-logo__img {
  height: 32px;
  width: auto;
  transition: all 0.3s ease;
}

/* Search form - make it large like your old version */

.home-pill {
  width: 100%;
  height: 44px;
  /* Tall like your old version */
  display: flex;
  align-items: center;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 22px;
  padding: 6px 8px 6px 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.home-input {
  border: none;
  background: transparent;
  outline: none;
  flex: 1;
  padding: 8px;
  font-size: 15px;
  color: var(--text);
}

.home-input::-moz-placeholder {
  color: #6c757d;
}

.home-input::placeholder {
  color: #6c757d;
}

.fs-search__go {
  background: var(--accent);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
}

.fs-search__go:hover {
  background: #dc2626;
}

/* SINGLE CLEAN NAVBAR - Final Version */

.fs-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}

.fs-nav__left, .fs-nav__center, .fs-nav__right {
  display: flex;
  align-items: center;
}

.fs-nav__left {
  flex: 0 0 auto;
}

.fs-nav__center {
  flex: 1;
  justify-content: center;
  margin: 0 30px;
  max-width: 600px;
}

.fs-nav__right {
  flex: 0 0 auto;
  gap: 12px;
}

.fs-logo__img {
  height: 100px;
  width: auto;
}

.home-pill {
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 24px;
  padding: 8px 12px 8px 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.home-input {
  border: none;
  background: transparent;
  outline: none;
  flex: 1;
  padding: 8px 12px;
  font-size: 16px;
  color: var(--text);
}

.fs-search__go {
  background: var(--accent);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .fs-nav {
    padding: 12px 16px;
  }

  .fs-nav__center {
    display: none;
  }
}

/* === NUCLEAR OPTION - MAXIMUM SPECIFICITY === */

html body div.fs-nav div.fs-nav__center form.home-pill {
  width: 100% !important;
  height: 60px !important;
  /* VERY LARGE */
  min-height: 60px !important;
  display: flex !important;
  align-items: center !important;
  background: #f1f3f4 !important;
  border: 2px solid #dadce0 !important;
  border-radius: 30px !important;
  padding: 12px 20px 12px 28px !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1) !important;
  margin: 0 !important;
  max-width: none !important;
}

html body div.fs-nav div.fs-nav__center form.home-pill input.home-input {
  border: none !important;
  background: transparent !important;
  outline: none !important;
  flex: 1 !important;
  padding: 14px 20px !important;
  /* Large padding */
  font-size: 19px !important;
  /* Large font */
  color: #202124 !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
}

html body div.fs-nav div.fs-nav__center form.home-pill input.home-input::-moz-placeholder {
  color: #70757a !important;
  font-size: 19px !important;
}

html body div.fs-nav div.fs-nav__center form.home-pill input.home-input::placeholder {
  color: #70757a !important;
  font-size: 19px !important;
}

html body div.fs-nav div.fs-nav__center form.home-pill button.fs-search__go {
  background: #ea4335 !important;
  border: none !important;
  width: 48px !important;
  height: 48px !important;
  /* Large button */
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: white !important;
  font-size: 24px !important;
  /* Large arrow */
  cursor: pointer !important;
  flex-shrink: 0 !important;
  margin-left: 8px !important;
}

/* Navbar container adjustments */

html body nav.fs-nav {
  min-height: 80px !important;
  /* Taller navbar to fit large search */
  padding: 20px 24px !important;
}

html body nav.fs-nav div.fs-nav__center {
  margin: 0 40px !important;
  /* More space around search bar */
  max-width: 650px !important;
  /* Allow wider search bar */
}

/* Clickable recipe instructions with strikethrough */

.instruction-item {
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.instruction-item:hover {
  background: #f8f9fa;
}

.instruction-item.completed {
  text-decoration: line-through;
  color: #6b7280;
  opacity: 0.7;
}

.instruction-item.completed:hover {
  background: #f1f5f9;
}

/* Collection cards - industry standard styling */

.collection-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0;
  transition: all 0.2s ease;
  overflow: hidden;
}

.collection-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.1);
  transform: translateY(-2px);
}

.cc-thumb-wrap {
  display: block;
  text-decoration: none;
}

.cc-thumb {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border-radius: 0;
  overflow: hidden;
  position: relative;
}

/*.cc-body {*/

/*    padding: 16px 20px 20px 20px;*/

/*}*/

/* Collection title - modern, clean styling */

.cc-title {
  font-size: 18px;
  font-weight: 600;
  /*margin: 0 0 12px 0;*/
  line-height: 1.3;
}

.cc-title a {
  text-decoration: none;
  color: var(--heading);
  transition: color 0.2s ease;
}

.cc-title a:hover {
  color: var(--accent);
}

/* Action buttons - proper industry colors */

.cc-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.cc-btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Primary button - blue */

.cc-btn--primary {
  background: #3b82f6;
  color: white;
  border: 1px solid #3b82f6;
}

.cc-btn--primary:hover {
  background: #2563eb;
  border-color: #2563eb;
  transform: translateY(-1px);
}

/* Danger button - red */

.cc-btn--danger {
  background: #ef4444;
  color: white;
  border: 1px solid #ef4444;
}

.cc-btn--danger:hover {
  background: #dc2626;
  border-color: #dc2626;
  transform: translateY(-1px);
}

/* Recipe thumbnails - improved */

.recipe-grid {
  display: grid;
  gap: 2px;
  width: 100%;
  height: 100%;
  background: white;
}

.recipe-grid:has(.recipe-img:nth-child(1):last-child) {
  grid-template-columns: 1fr;
}

.recipe-grid:has(.recipe-img:nth-child(2):last-child) {
  grid-template-columns: 1fr 1fr;
}

.recipe-grid:has(.recipe-img:nth-child(3):last-child) {
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.recipe-grid:has(.recipe-img:nth-child(3):last-child) .recipe-img:first-child {
  grid-row: 1 / 3;
}

.recipe-grid:has(.recipe-img:nth-child(4):last-child) {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.recipe-img {
  overflow: hidden;
  background: #e5e7eb;
}

.recipe-img img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 0.3s ease;
}

.collection-card:hover .recipe-img img {
  transform: scale(1.05);
}

.empty-folder {
  font-size: 48px;
  color: #9ca3af;
}

/* Recipe count */

.cc-count {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 0 0;
  font-weight: 400;
}

/* Collections grid responsive */

.collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (max-width: 768px) {
  .collections-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
  }

  .cc-actions {
    flex-direction: column;
  }

  .cc-btn {
    flex: none;
  }
}

/* === RECIPE INDEX COMPLETE FIX === */

/* Recipe page layout - match collections exactly */

.recipes-index {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 20px;
}

.recipes-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.search-section {
  margin-bottom: 32px;
}

/* Recipe grid and cards - exactly like collections */

.recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.recipe-card-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0;
  transition: all 0.2s ease;
  overflow: hidden;
}

/* Recipe card hover - EXACT same as collections */

.recipe-card-item:hover {
  border-color: var(--accent) !important;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.1) !important;
  transform: translateY(-2px) !important;
}

.rc-thumb-wrap {
  display: block;
  text-decoration: none;
}

.rc-thumb {
  width: 100%;
  height: 200px;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}

.rc-thumb.placeholder {
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: #9ca3af;
  height: 200px;
}

/*.rc-body {*/

/*    padding: 16px 20px 20px 20px;*/

/*}*/

.rc-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 16px 0;
  line-height: 1.3;
}

.rc-title a {
  text-decoration: none;
  color: var(--heading);
  transition: color 0.2s ease;
}

.rc-title a:hover {
  color: var(--accent);
}

/* Recipe buttons - EXACT same as collection buttons */

.rc-actions {
  display: flex;
  gap: 8px;
}

.rc-btn {
  padding: 8px 16px !important;
  border-radius: 8px !important;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rc-btn--primary {
  background: #3b82f6 !important;
  color: white !important;
  border: 1px solid #3b82f6 !important;
}

.rc-btn--primary:hover {
  background: #2563eb !important;
  border-color: #2563eb !important;
  transform: translateY(-1px);
}

.rc-btn--danger {
  background: #ef4444 !important;
  color: white !important;
  border: 1px solid #ef4444 !important;
}

.rc-btn--danger:hover {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
  transform: translateY(-1px);
}

/* Search form styling */

.index-search {
  display: flex;
  gap: 12px;
  max-width: 400px;
}

.index-search-input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 16px;
  background: var(--surface);
  color: var(--text);
}

.index-search-input:focus {
  outline: none;
  border-color: var(--accent);
}

.index-search-btn {
  padding: 10px 20px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}

.index-search-btn:hover {
  background: var(--accent-hover);
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  font-size: 18px;
}

/* Mobile responsive */

@media (max-width: 768px) {
  .recipes-head {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .search-section {
    margin-bottom: 24px;
  }

  .index-search {
    max-width: none;
  }

  .recipes-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
  }

  .rc-actions {
    flex-direction: column;
  }

  .rc-btn {
    flex: none;
  }
}

/* === RECIPE INDEX COMPLETE MATCHING === */

/* Force exact same button typography */

.rc-btn, .cc-btn {
  font-size: 14px !important;
  font-weight: 500 !important;
  font-family: Garet, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

/* Recipe card hover effects - EXACT same as collections */

.recipe-card-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0;
  transition: all 0.2s ease;
  overflow: hidden;
}

.recipe-card-item:hover {
  border-color: var(--accent) !important;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.1) !important;
  transform: translateY(-2px) !important;
}

/* Recipe image hover effect - MISSING FROM YOUR CODE */

.recipe-card-item:hover .rc-thumb {
  transform: scale(1.05) !important;
}

.rc-thumb {
  width: 100%;
  height: 200px;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
  transition: transform 0.3s ease !important;
}

.rc-thumb.placeholder {
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: #9ca3af;
  height: 200px;
  transition: transform 0.3s ease !important;
}

/* Also add placeholder hover effect */

.recipe-card-item:hover .rc-thumb.placeholder {
  transform: scale(1.05) !important;
}

/* Footer inline layout - FIXED VERSION */

.mobile-footer__inline {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  width: 100%;
  /* Force full width */
}

.mobile-footer__links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-start;
  /* Force links to left */
  align-items: center;
}

.mobile-footer__link {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  transition: color 0.2s ease;
  white-space: nowrap;
  /* Prevent wrapping */
}

.mobile-footer__link:hover {
  color: var(--text);
}

.mobile-footer__theme {
  /*margin-left: auto; !* Push to right *!*/
  flex-shrink: 0;
  /* Prevent shrinking */
}

/* Override any centering from parent elements */

.mobile-footer__inner {
  text-align: left !important;
  /* Override center alignment */
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 20px;
}

.mobile-footer {
  text-align: left !important;
  /* Override center alignment */
}

/* Login form checkbox styling - custom tick mark */

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0;
}

.form-checkbox input[type="checkbox"] {
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.form-checkbox input[type="checkbox"]:hover {
  border-color: var(--accent);
}

.form-checkbox input[type="checkbox"]:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.form-checkbox input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.form-checkbox input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  color: white;
  font-size: 14px;
  font-weight: bold;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.form-checkbox label {
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  flex: 1;
}

.form-checkbox label:hover {
  color: var(--accent);
}

/* Hide Rails' hidden input field that comes with f.check_box */

.form-checkbox input[type="hidden"] {
  display: none;
}

/* Home Card Grid - Two Column Layout */

.home-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

@media (max-width: 768px) {
  .home-card-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

/* Home Card Tile */

.home-card-tile {
  display: block;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-card-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  text-decoration: none;
  color: inherit;
}

/* Tile Mosaic (3x1 grid of recipe images) */

/*.tile-mosaic {*/

/*    height: 200px;*/

/*    display: grid;*/

/*    grid-template-columns: repeat(3, 1fr);*/

/*    gap: 2px;*/

/*    overflow: hidden;*/

/*}*/

.mosaic-img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}

.mosaic-img.placeholder {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #666;
}

/* Tile Label */

.tile-label {
  padding: 16px;
  font-size: 18px;
  font-weight: 600;
  color: #333;
  text-align: center;
}

/* Navigation Tabs */

.caboodle-nav {
  display: flex;
  gap: 24px;
  margin-bottom: 30px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}

.nav-link {
  font-size: 16px;
  color: #666;
  text-decoration: none;
  padding-bottom: 8px;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-link.active,
.nav-link:hover {
  color: #333;
  border-bottom-color: #ff4444;
}

/* Tab Content */

.tab-content {
  position: relative;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* Cookbook Grid (matches OR layout) */

.cookbook-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

@media (max-width: 768px) {
  .cookbook-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

/* Cookbook Card */

/*.cookbook-card {*/

/*    display: block;*/

/*    background: #fff;*/

/*    border-radius: 12px;*/

/*    box-shadow: 0 2px 8px rgba(0,0,0,0.08);*/

/*    overflow: hidden;*/

/*    text-decoration: none;*/

/*    color: inherit;*/

/*    transition: transform 0.2s ease, box-shadow 0.2s ease;*/

/*}*/

/*.cookbook-card:hover {*/

/*    transform: translateY(-2px);*/

/*    box-shadow: 0 8px 20px rgba(0,0,0,0.12);*/

/*    text-decoration: none;*/

/*    color: inherit;*/

/*}*/

/* Cookbook Card Image */

/*.cookbook-card-image {*/

/*    width: 100%;*/

/*    height: 200px;*/

/*    overflow: hidden;*/

/*    position: relative;*/

/*}*/

.cookbook-img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}

.cookbook-img.placeholder {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: #666;
}

/* Cookbook Card Text */

.cookbook-card-title {
  padding: 16px 16px 8px 16px;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  line-height: 1.3;
}

.cookbook-card-subtitle {
  padding: 0 16px 16px 16px;
  font-size: 14px;
  color: #666;
  line-height: 1.2;
}

/* Empty tile styling */

.cookbook-card.empty-tile .cookbook-card-image {
  height: 120px;
}

.cookbook-card.empty-tile .cookbook-img.placeholder {
  font-size: 32px;
}

/* Mobile Optimizations */

@media (max-width: 480px) {
  .cookbook-card-image {
    height: 180px;
  }

  .cookbook-card-title {
    font-size: 15px;
    padding: 12px 12px 6px 12px;
  }

  .cookbook-card-subtitle {
    padding: 0 12px 12px 12px;
    font-size: 13px;
  }

  .caboodle-nav {
    gap: 16px;
  }
}

/* Navigation Tabs - OR Style */

.caboodle-nav {
  display: flex;
  gap: 0;
  margin-bottom: 30px;
  border-bottom: 1px solid #e5e5e5;
}

.nav-link {
  font-size: 18px;
  font-weight: 400;
  color: #999;
  text-decoration: none;
  padding: 12px 24px 16px 24px;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  cursor: pointer;
  position: relative;
}

.nav-link:first-child {
  padding-left: 0;
}

.nav-link.active {
  color: #333;
  font-weight: 500;
  border-bottom: 3px solid #333;
}

.nav-link:hover {
  color: #333;
}

/* Remove focus outline */

.nav-link:focus {
  outline: none;
}

/* Tab Content */

.tab-content {
  position: relative;
  padding-top: 20px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* Cookbook Grid */

.cookbook-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

@media (max-width: 768px) {
  .cookbook-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .nav-link {
    font-size: 16px;
    padding: 10px 16px 14px 16px;
  }

  .nav-link:first-child {
    padding-left: 0;
  }
}

/* Cookbook Card Styling */

/*.cookbook-card {*/

/*    display: block;*/

/*    background: #fff;*/

/*    border-radius: 12px;*/

/*    box-shadow: 0 2px 8px rgba(0,0,0,0.08);*/

/*    overflow: hidden;*/

/*    text-decoration: none;*/

/*    color: inherit;*/

/*    transition: transform 0.2s ease, box-shadow 0.2s ease;*/

/*}*/

/*.cookbook-card:hover {*/

/*    transform: translateY(-2px);*/

/*    box-shadow: 0 8px 20px rgba(0,0,0,0.12);*/

/*    text-decoration: none;*/

/*    color: inherit;*/

/*}*/

/*.cookbook-card-image {*/

/*    width: 100%;*/

/*    height: 200px;*/

/*    overflow: hidden;*/

/*    position: relative;*/

/*}*/

.cookbook-card-title {
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  text-align: left;
}

/* Tile Mosaic */

/*.tile-mosaic {*/

/*    height: 100%;*/

/*    display: grid;*/

/*    grid-template-columns: repeat(3, 1fr);*/

/*    gap: 2px;*/

/*    overflow: hidden;*/

/*}*/

/*.mosaic-img {*/

/*    width: 100%;*/

/*    height: 80%;*/

/*    object-fit: cover;*/

/*    display: block;*/

/*}*/

.mosaic-img.placeholder {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #666;
}

/* Caboodle Card - OR Style */

.caboodle-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  overflow: hidden;
  /*margin: 40px auto;*/
  max-width: 1200px;
  position: relative;
  padding: 32px;
}

/* Header with title and top-right actions */

.caboodle-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.caboodle-title {
  font-size: 28px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

/* Top right actions - search + plus */

.caboodle-header-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.header-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #f5f5f5;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-icon-btn:hover {
  background: #e5e5e5;
  color: #333;
}

.header-plus-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #ff4444;
  color: white;
  font-size: 24px;
  font-weight: 300;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.header-plus-btn:hover {
  background: #e63333;
  transform: scale(1.05);
}

/* Navigation Tabs */

.caboodle-nav {
  display: flex;
  gap: 0;
  margin-bottom: 32px;
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 0;
}

.nav-link {
  font-size: 18px;
  font-weight: 400;
  color: #999;
  text-decoration: none;
  padding: 12px 0 16px 0;
  margin-right: 40px;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  cursor: pointer;
}

.nav-link.active {
  color: #333;
  font-weight: 500;
  border-bottom: 3px solid #ff4444;
}

.nav-link:hover:not(.active) {
  color: #666;
}

.nav-link:focus {
  outline: none;
}

/* Tab Content */

.tab-content {
  position: relative;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* Cookbook Grid */

.cookbook-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.cookbook-card {
  display: block;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cookbook-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  text-decoration: none;
  color: inherit;
}

.cookbook-card-image {
  width: 100%;
  /*height: 200px;*/
  overflow: hidden;
  position: relative;
}

.cookbook-card-title {
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  text-align: left;
}

/* Tile Mosaic */

/*.tile-mosaic {*/

/*    height: 100%;*/

/*    display: grid;*/

/*    grid-template-columns: repeat(3, 1fr);*/

/*    gap: 2px;*/

/*    overflow: hidden;*/

/*}*/

.mosaic-img {
  width: 100%;
  height: 80%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}

.mosaic-img.placeholder {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #666;
}

/* Mobile Responsive */

@media (max-width: 768px) {
  .caboodle-card {
    margin: 20px 16px;
    padding: 24px 20px;
    border-radius: 12px;
  }

  .caboodle-title {
    font-size: 24px;
  }

  .caboodle-header-actions {
    gap: 12px;
  }

  .header-icon-btn,
    .header-plus-btn {
    width: 40px;
    height: 40px;
  }

  .header-plus-btn {
    font-size: 20px;
  }

  .nav-link {
    font-size: 16px;
    margin-right: 24px;
  }

  .cookbook-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cookbook-card-image {
    height: 128px;
  }
}

@media (max-width: 480px) {
  .caboodle-card {
    margin: -60px 12px;
    padding: 20px 16px;
  }

  .caboodle-title {
    font-size: 20px;
  }

  .caboodle-header-actions {
    gap: 8px;
  }

  .header-icon-btn,
    .header-plus-btn {
    width: 36px;
    height: 36px;
  }

  .nav-link {
    font-size: 15px;
    margin-right: 20px;
  }
}

/*.delete-icon {*/

/*    color: #da1818;       !* your custom red-ish color *!*/

/*    cursor: pointer;*/

/*    font-size: 1.5rem;    !* adjust icon size *!*/

/*    display: inline-flex;*/

/*    align-items: center;*/

/*    user-select: none;*/

/*    text-decoration: none; !* remove underline *!*/

/*}*/

/*.delete-icon:hover {*/

/*    color: #8b5e5e;       !* slightly darker on hover *!*/

/*}*/

/*.delete-icon:focus {*/

/*    outline: 2px solid #ad7d7d;*/

/*    outline-offset: 2px;*/

/*}*/

.delete-icon {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #da1818;
  /* your custom red background */
  color: white;
  /* white icon */
  border-radius: 50%;
  /* circle shape */
  width: 2.5rem;
  /* circle size */
  height: 2.5rem;
  font-size: 1.25rem;
  /* icon size */
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  text-decoration: none;
  /* remove underline */
  transition: background-color 0.3s, color 0.3s;
}

.delete-icon:hover {
  background-color: #8b5e5e;
  /* slightly darker on hover */
  color: #fff;
  /* keep icon white */
}

.delete-icon:focus {
  outline: 2px solid #ad7d7d;
  /* subtle outline on focus */
  outline-offset: 2px;
}

/*.edit-icon {*/

/*    color: #4a90e2;       !* blue-ish color *!*/

/*    cursor: pointer;*/

/*    font-size: 1.5rem;    !* icon size *!*/

/*    display: inline-flex;*/

/*    align-items: center;*/

/*    user-select: none;*/

/*    text-decoration: none; !* remove underline *!*/

/*}*/

/*.edit-icon:hover {*/

/*    color: #357ABD;       !* darker blue on hover *!*/

/*}*/

/*.edit-icon:focus {*/

/*    outline: 2px solid #4a90e2;*/

/*    outline-offset: 2px;*/

/*}*/

.edit-icon {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: red;
  /* red circle background */
  color: white;
  /* white icon */
  border-radius: 50%;
  /* make it a circle */
  width: 2.5rem;
  /* circle width */
  height: 2.5rem;
  /* circle height */
  font-size: 1.25rem;
  /* icon size inside */
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  text-decoration: none;
  /* remove underline */
  transition: background-color 0.3s, color 0.3s;
}

.edit-icon:hover {
  background-color: darkred;
  /* darker red on hover */
  color: #fff;
  /* keep icon white */
}

.edit-icon:focus {
  outline: 2px solid #ff6666;
  /* subtle red outline on focus */
  outline-offset: 2px;
}

/*.print-icon {*/

/*    background: none;*/

/*    border: none;*/

/*    padding: 0;*/

/*    cursor: pointer;*/

/*    font-size: 1.5rem;*/

/*    color: #444;*/

/*    display: inline-flex;*/

/*    align-items: center;*/

/*}*/

/*.print-icon:hover {*/

/*    color: #222;*/

/*}*/

/*.print-icon:focus {*/

/*    outline: 2px solid #444;*/

/*    outline-offset: 2px;*/

/*}*/

.print-icon {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: red;
  /* red circle background */
  color: white;
  /* white icon */
  border-radius: 50%;
  /* make it a circle */
  width: 2.5rem;
  /* circle width */
  height: 2.5rem;
  /* circle height */
  font-size: 1.25rem;
  /* icon size inside */
  border: none;
  padding: 0;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  transition: background-color 0.3s, color 0.3s;
}

.print-icon:hover {
  background-color: darkred;
  /* darker red on hover */
  color: #fff;
  /* keep icon white */
}

.print-icon:focus {
  outline: 2px solid #ff6666;
  /* subtle red outline on focus */
  outline-offset: 2px;
}

/*.save-collection-icon {*/

/*    cursor: pointer;*/

/*    display: inline-flex;*/

/*    align-items: center;*/

/*    color: #333;          !* icon color *!*/

/*    font-size: 1.5rem;    !* adjust icon size *!*/

/*    user-select: none;    !* prevent text selection *!*/

/*}*/

/*.save-collection-icon:hover {*/

/*    color: #000;          !* darker on hover *!*/

/*}*/

/*.save-collection-icon:focus {*/

/*    outline: 2px solid #007bff; !* visible focus for accessibility *!*/

/*    outline-offset: 2px;*/

/*}*/

.save-collection-icon {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  /* white icon */
  background-color: red;
  /* red circle background */
  border-radius: 50%;
  /* make it a circle */
  width: 2.5rem;
  /* circle width */
  height: 2.5rem;
  /* circle height */
  font-size: 1.25rem;
  /* icon size inside */
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  /* prevent text selection */
  transition: background-color 0.3s, color 0.3s;
}

.save-collection-icon:hover {
  background-color: darkred;
  /* darker red on hover */
  color: #fff;
  /* keep icon white */
}

.save-collection-icon:focus {
  outline: 2px solid #ff6666;
  /* subtle red outline on focus */
  outline-offset: 2px;
}

.icon-circle {
  color: white;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: red;
  border-radius: 50%;
  width: 2.5rem;
  /* fixed circle size */
  height: 2.5rem;
  padding: 0.4rem;
  /* add padding inside the circle to shrink icon */
  box-sizing: border-box;
}

.icon-circle svg {
  width: 1.7rem;
  /* smaller icon */
  height: 1.7rem;
}

.icon-circle:hover {
  background-color: darkred;
  color: #fff;
}

.icon-circle:focus {
  outline: 2px solid #ff6666;
  outline-offset: 2px;
}

/*!* Recipe Meta Layout - Pills Side by Side *!*/

/*.recipe-meta {*/

/*    display: flex;*/

/*    flex-direction: row;*/

/*    flex-wrap: wrap;*/

/*    gap: 16px;*/

/*    align-items: flex-start;*/

/*}*/

/*.pill.servings,*/

/*.pill.cook-time {*/

/*    display: inline-flex;*/

/*    align-items: center;*/

/*    white-space: nowrap;*/

/*    margin-left: 25px;*/

/*}*/

/*.recipe-actions {*/

/*    flex-basis: 100%;*/

/*    margin-top: 8px;*/

/*}*/

/*!* Override mobile-first recipe meta to show pills side by side *!*/

/*.recipe-meta {*/

/*    display: flex !important;*/

/*    flex-direction: row !important;  !* Change from column to row *!*/

/*    flex-wrap: wrap !important;*/

/*    gap: 16px !important;*/

/*    align-items: center !important;*/

/*}*/

/*.recipe-actions {*/

/*    flex-basis: 100% !important;  !* Force actions to next line *!*/

/*    margin-top: 8px !important;*/

/*    width: 100% !important;*/

/*}*/

/*!* Fix recipe actions to display icons inline (horizontally) *!*/

/*.recipe-actions {*/

/*    display: flex !important;*/

/*    flex-direction: row !important;*/

/*    gap: 12px !important;*/

/*    align-items: center !important;*/

/*    justify-content: center !important;*/

/*    flex-basis: 100% !important;*/

/*    margin-top: 8px !important;*/

/*    width: 100% !important;*/

/*}*/

/*.recipe-actions span,*/

/*.recipe-actions a {*/

/*    display: inline-flex !important;*/

/*}*/

/* Recipe Meta Layout - Pills Side by Side and Centered */

.recipe-meta {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Recipe actions - horizontal row */

.recipe-actions {
  display: flex !important;
  flex-direction: row !important;
  gap: 12px !important;
  align-items: center !important;
  justify-content: center !important;
  flex-basis: 100% !important;
  /* Force new line on mobile */
  margin-top: 8px !important;
}

/* Desktop - Everything on same line */

@media (min-width: 1024px) {
  .recipe-meta {
    justify-content: flex-start !important;
    /* Left align pills */
  }

  .recipe-actions {
    flex-basis: auto !important;
    /* Allow same line */
    margin-top: 0 !important;
    /* No top margin */
    margin-left: 25px !important;
    /* Push to right */
    justify-content: flex-end !important;
    /* Right align icons */
  }
}

/* Fix All recipes tab on desktop - make it match Collections */

@media (min-width: 1024px) {
  /* Cookbook card should be full width and centered */

  .cookbook-card {
    max-width: 400px !important;
    margin: 0 auto !important;
  }

  /* Cookbook card image should be properly sized */

  .cookbook-card-image {
    width: 100% !important;
    height: 200px !important;
  }

  /* Tile mosaic should fill the image area */

  .tile-mosaic {
    width: 100% !important;
    height: 200px !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2px !important;
  }

  /* Each mosaic image should be properly sized */

  .mosaic-img {
    width: 100% !important;
    height: 100% !important;
    -o-object-fit: cover !important;
       object-fit: cover !important;
  }

  /* Cookbook grid - center single card */

  .cookbook-grid {
    display: flex !important;
    justify-content: center !important;
    max-width: 400px !important;
    /*margin: 0 auto !important;*/
  }

  /* Card title */

  .cookbook-card-title {
    text-align: center !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    padding: 16px !important;
  }
}

/* Modern button styling for navbar - matches landing page */

.btn {
  padding: 10px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-family: 'Garet', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.btn-outline {
  border: 1px solid var(--border, #d1d5db);
  color: var(--text, #374151);
  background: var(--surface, #ffffff);
}

.btn-outline:hover {
  background: var(--muted, #f9fafb);
  border-color: var(--accent, #9ca3af);
}

.btn-solid {
  background: var(--text, #111827);
  color: #ffffff;
  border: 1px solid var(--text, #111827);
}

.btn-solid:hover {
  background: var(--muted, #374151);
  border-color: var(--muted, #374151);
}

/* Mobile responsive adjustments */

@media (max-width: 768px) {
  .btn {
    padding: 8px 20px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .btn {
    padding: 6px 16px;
    font-size: 12px;
  }
}

/* =================================
   OR Landing Page Styles - FIXED
   ================================= */

/* Hero Section */

.jtr-hero {
  padding: 80px 0 120px;
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  overflow: hidden;
}

.jtr-hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.jtr-hero-left {
  max-width: 600px;
}

.jtr-hero-title {
  font-size: 64px;
  font-weight: 800;
  line-height: 1.1;
  color: #1a1a1a;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  font-family: 'Garet', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.jtr-hero-subtitle {
  font-size: 20px;
  color: #666666;
  margin-bottom: 48px;
  line-height: 1.5;
  font-weight: 400;
  font-family: 'Garet', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* FIXED Form Styling */

.jtr-form-wrapper {
  max-width: 600px;
}

.jtr-form-inner {
  display: flex;
  background: #ffffff;
  border: 2px solid #e5e5e5;
  border-radius: 50px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.2s ease;
  align-items: stretch;
}

.jtr-form-inner:focus-within {
  border-color: #ff4444;
  box-shadow: 0 8px 32px rgba(255, 68, 68, 0.12);
}

.jtr-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 18px 24px;
  font-size: 16px;
  color: #1a1a1a;
  background: transparent;
  font-family: 'Garet', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  min-height: 56px;
}

.jtr-input::-moz-placeholder {
  color: #999999;
}

.jtr-input::placeholder {
  color: #999999;
}

.jtr-submit-btn {
  background: #ff4444;
  color: white;
  border: none;
  padding: 0 32px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: 'Garet', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  border-radius: 0;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jtr-submit-btn:hover {
  background: #e63939;
}

.jtr-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 12px 20px;
  border-radius: 8px;
  margin-top: 16px;
  text-align: center;
  font-size: 14px;
  font-family: 'Garet', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* Phone Mockup */

.jtr-hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.jtr-phone-mockup {
  width: 300px;
  height: 600px;
  /*background: #1a1a1a;*/
  border-radius: 30px;
  padding: 10px;
  /*box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);*/
  transform: rotate(10deg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.jtr-phone-image {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 20px;
}

.jtr-phone-fallback {
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: 20px;
  padding: 20px;
  overflow-y: auto;
  display: none;
  flex-direction: column;
  font-family: 'Garet', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.fallback-header {
  margin-bottom: 20px;
}

.fallback-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin-top: 10px;
  line-height: 1.2;
}

.fallback-avatar {
  width: 60px;
  height: 60px;
  background: #f0f0f0;
  border-radius: 8px;
  margin-bottom: 8px;
}

.fallback-section {
  margin-bottom: 20px;
}

.fallback-section h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #1a1a1a;
}

.ingredient-item, .direction-item {
  font-size: 11px;
  color: #333333;
  margin-bottom: 4px;
  line-height: 1.3;
}

.direction-item {
  color: #ff4444;
  font-weight: 500;
}

/* Learn More Section - FIXED */

.jtr-learn-more {
  text-align: center;
  padding: 60px 0;
  background: #ffffff;
}

.learn-more-text {
  color: #999999;
  font-size: 16px;
  cursor: pointer;
  transition: color 0.2s ease;
  font-family: 'Garet', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.learn-more-text:hover {
  color: #666666;
}

/* Features Section */

.jtr-features {
  padding: 80px 0 120px;
  background: #ffffff;
}

.jtr-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
  margin-bottom: 120px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.jtr-feature:last-child {
  margin-bottom: 0;
}

.jtr-feature-reverse {
  direction: rtl;
}

.jtr-feature-reverse > * {
  direction: ltr;
}

.jtr-feature-content h2 {
  font-size: 48px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 24px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-family: 'Garet', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.jtr-feature-content p {
  font-size: 18px;
  color: #666666;
  line-height: 1.6;
  font-weight: 400;
  font-family: 'Garet', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.jtr-feature-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Feature Phone Mockups */

.jtr-feature .jtr-phone-mockup {
  width: 280px;
  height: 500px;
  transform: none;
}

/* Cookbook Fallback */

.cookbook-header h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1a1a1a;
}

.cookbook-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.recipe-thumb {
  width: 40px;
  height: 40px;
  background: #f0f0f0;
  border-radius: 6px;
  flex-shrink: 0;
}

.cookbook-item span {
  font-size: 11px;
  color: #333333;
  line-height: 1.2;
}

/* Clean Interface Fallback */

.clean-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.clean-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  font-size: 10px;
  color: #666666;
}

.clean-section {
  margin-bottom: 15px;
}

.clean-section h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1a1a1a;
}

.clean-ingredient, .clean-direction {
  font-size: 10px;
  color: #333333;
  margin-bottom: 4px;
  line-height: 1.3;
}

.clean-direction {
  color: #ff4444;
  font-weight: 500;
}

/* Tablet Mockup */

.jtr-tablet-mockup {
  width: 400px;
  height: 300px;
  /*background: #1a1a1a;*/
  border-radius: 20px;
  padding: 15px;
  /*box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);*/
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.jtr-tablet-image {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 10px;
}

.jtr-tablet-fallback {
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: 10px;
  padding: 20px;
  display: none;
  align-items: center;
  justify-content: center;
}

.tablet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  width: 100%;
  height: 100%;
}

.grid-item {
  background: #f0f0f0;
  border-radius: 8px;
}

/* FIXED Mobile Responsive */

@media (max-width: 1024px) {
  .jtr-hero-content {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }

  .jtr-feature {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }

  .jtr-feature-reverse {
    direction: ltr;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .jtr-hero {
    padding: 60px 0 80px;
  }

  .jtr-hero-title {
    font-size: 40px;
    margin-bottom: 20px;
  }

  .jtr-hero-subtitle {
    font-size: 18px;
    margin-bottom: 40px;
  }

  /* FIXED Mobile Form Layout */

  .jtr-form-inner {
    /*flex-direction: column;*/
    /*border-radius: 16px;*/
    align-items: stretch;
  }

  .jtr-input {
    text-align: center;
    padding: 18px 24px;
    min-height: auto;
    border-bottom: 1px solid #e5e5e5;
  }

  .jtr-submit-btn {
    padding: 18px 32px;
    border-radius: 0 0 14px 14px;
    min-height: auto;
  }

  .jtr-phone-mockup {
    width: 250px;
    height: 500px;
    transform: none;
  }

  .jtr-feature .jtr-phone-mockup {
    width: 220px;
    height: 440px;
  }

  .jtr-feature-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
  }

  .jtr-feature-content p {
    font-size: 16px;
  }

  .jtr-tablet-mockup {
    width: 320px;
    height: 240px;
  }
}

@media (max-width: 480px) {
  .jtr-hero-title {
    font-size: 32px;
  }

  .jtr-hero-subtitle {
    font-size: 16px;
  }

  /*.jtr-feature-content h2 {*/

  /*font-size: 28px;*/

  /*}*/

  .jtr-phone-mockup {
    width: 200px;
    height: 400px;
  }

  .jtr-feature .jtr-phone-mockup {
    width: 180px;
    height: 360px;
  }

  .jtr-tablet-mockup {
    width: 280px;
    height: 200px;
  }
}

/* About Us Page Styles */

.about-page {
  padding-bottom: 100px;
  /* Account for fixed footer */
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */

.about-hero {
  text-align: center;
  padding: 60px 0 80px;
  background: linear-gradient(135deg, var(--bg, #fafafa) 0%, var(--surface, #ffffff) 100%);
}

.about-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-title {
  font-size: 48px;
  font-weight: 800;
  color: var(--heading, #111827);
  margin-bottom: 20px;
  line-height: 1.2;
  font-family: 'Garet', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.about-tagline {
  font-size: 20px;
  color: var(--muted, #6b7280);
  line-height: 1.6;
  font-family: 'Garet', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* Story Section */

.about-story {
  padding: 80px 0;
}

.story-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  background: var(--card, #ffffff);
  border-radius: 16px;
  padding: 60px;
  box-shadow: var(--shadow, 0 6px 20px rgba(0,0,0,.06));
}

.story-content h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--heading, #111827);
  margin-bottom: 24px;
  font-family: 'Garet', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.story-content p {
  font-size: 18px;
  color: var(--text, #111827);
  line-height: 1.7;
  margin-bottom: 20px;
  font-family: 'Garet', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.story-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.chef-placeholder {
  width: 200px;
  height: 200px;
  background: var(--surface, #f8f9fa);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  border: 3px solid var(--border, #e5e7eb);
}

.chef-placeholder span {
  font-size: 14px;
  color: var(--muted, #6b7280);
  margin-top: 10px;
  text-align: center;
  font-family: 'Garet', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* Mission Section */

.about-mission {
  padding: 80px 0;
  background: var(--bg, #fafafa);
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.mission-card {
  background: var(--card, #ffffff);
  padding: 40px 30px;
  border-radius: 16px;
  text-align: center;
  box-shadow: var(--shadow, 0 6px 20px rgba(0,0,0,.06));
  transition: transform 0.3s ease;
}

.mission-card:hover {
  transform: translateY(-5px);
}

.mission-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.mission-card h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--heading, #111827);
  margin-bottom: 15px;
  font-family: 'Garet', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.mission-card p {
  font-size: 16px;
  color: var(--text, #111827);
  line-height: 1.6;
  font-family: 'Garet', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* Values Section */

.about-values {
  padding: 80px 0;
  text-align: center;
}

.about-values h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--heading, #111827);
  margin-bottom: 40px;
  font-family: 'Garet', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.values-list {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.value-item {
  background: var(--card, #ffffff);
  padding: 25px 30px;
  border-radius: 12px;
  text-align: left;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text, #111827);
  box-shadow: var(--shadow, 0 2px 8px rgba(0,0,0,.04));
  font-family: 'Garet', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.value-item strong {
  color: var(--accent, #ef4444);
  font-weight: 600;
}

/* Mobile Responsive */

@media (max-width: 768px) {
  .about-title {
    font-size: 36px;
  }

  .about-tagline {
    font-size: 18px;
  }

  .story-card {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 30px;
  }

  .story-content h2 {
    font-size: 28px;
  }

  .story-content p {
    font-size: 16px;
  }

  .chef-placeholder {
    width: 150px;
    height: 150px;
    font-size: 36px;
  }

  .mission-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-values h2 {
    font-size: 28px;
  }

  .about-container {
    padding: 0 16px;
  }
}

/* Contact Us Page Styles - Beautiful Version */

.contact-page {
  padding-bottom: 100px;
  /* Account for fixed footer */
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */

.contact-hero {
  text-align: center;
  padding: 60px 0 80px;
  background: linear-gradient(135deg, var(--bg, #fafafa) 0%, var(--surface, #ffffff) 100%);
}

.contact-hero-content {
  max-width: 600px;
  margin: 0 auto;
}

.contact-title {
  font-size: 48px;
  font-weight: 800;
  color: var(--heading, #111827);
  margin-bottom: 20px;
  line-height: 1.2;
  font-family: 'Garet', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.contact-tagline {
  font-size: 18px;
  color: var(--muted, #6b7280);
  line-height: 1.6;
  font-family: 'Garet', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* Contact Content */

.contact-content {
  padding: 80px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

/* Contact Form - Beautiful Styling */

.contact-form-section h2,
.contact-info-section h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--heading, #111827);
  margin-bottom: 30px;
  font-family: 'Garet', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.contact-form {
  background: var(--card, #ffffff);
  padding: 40px;
  border-radius: 16px;
  box-shadow: var(--shadow, 0 6px 20px rgba(0,0,0,.06));
  border: 1px solid var(--border, #e5e7eb);
}

.form-group {
  margin-bottom: 24px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid var(--border, #e5e7eb);
  border-radius: 12px;
  font-size: 16px;
  font-family: 'Garet', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--surface, #ffffff);
  color: var(--text, #111827);
  transition: all 0.2s ease;
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent, #ef4444);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
  transform: translateY(-1px);
}

.form-input::-moz-placeholder, .form-textarea::-moz-placeholder {
  color: var(--muted, #9ca3af);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--muted, #9ca3af);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  font-family: 'Garet', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.contact-submit-btn {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--accent, #ef4444) 0%, #dc2626 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Garet', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  text-transform: none;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.contact-submit-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3);
}

.contact-submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

.contact-submit-btn:disabled {
  background: var(--muted, #9ca3af);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.form-disclaimer {
  margin-top: 16px;
  text-align: center;
}

.form-disclaimer small {
  color: var(--muted, #6b7280);
  font-size: 13px;
  line-height: 1.4;
  font-family: 'Garet', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* Contact Info - Beautiful Styling */

.contact-methods {
  display: grid;
  gap: 24px;
}

.contact-method {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  background: var(--card, #ffffff);
  border-radius: 12px;
  box-shadow: var(--shadow, 0 2px 8px rgba(0,0,0,.04));
  border: 1px solid var(--border, #e5e7eb);
  transition: all 0.3s ease;
}

.contact-method:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow, 0 8px 25px rgba(0,0,0,.1));
  border-color: var(--accent, #ef4444);
}

.contact-icon {
  font-size: 28px;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface, #f9fafb);
  border-radius: 12px;
}

.contact-details h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--heading, #111827);
  margin-bottom: 6px;
  font-family: 'Garet', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.contact-details p {
  font-size: 16px;
  color: var(--text, #111827);
  margin-bottom: 4px;
  font-family: 'Garet', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.contact-details a {
  color: var(--accent, #ef4444);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.contact-details a:hover {
  color: #dc2626;
  text-decoration: underline;
}

.contact-details small {
  font-size: 14px;
  color: var(--muted, #6b7280);
  font-family: 'Garet', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* FAQ Section - Beautiful Styling */

.contact-faq {
  padding: 80px 0;
  background: var(--bg, #fafafa);
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
}

.contact-faq h2 {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  color: var(--heading, #111827);
  margin-bottom: 50px;
  font-family: 'Garet', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card, #ffffff);
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow, 0 2px 8px rgba(0,0,0,.04));
  border: 1px solid var(--border, #e5e7eb);
  transition: all 0.3s ease;
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow, 0 8px 25px rgba(0,0,0,.1));
}

.faq-item h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--heading, #111827);
  margin-bottom: 12px;
  font-family: 'Garet', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.faq-item p {
  font-size: 16px;
  color: var(--text, #111827);
  line-height: 1.6;
  font-family: 'Garet', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* Mobile Responsive */

@media (max-width: 768px) {
  .contact-title {
    font-size: 36px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .contact-form {
    padding: 30px 24px;
  }

  .contact-method {
    padding: 20px;
  }

  .contact-faq h2 {
    font-size: 28px;
  }

  .faq-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .faq-item {
    padding: 24px;
  }

  .contact-container {
    padding: 0 16px;
  }
}

.jtr-input:invalid {
  border-color: #ccc !important;
  /* or whatever neutral color you're using */
  box-shadow: none !important;
  outline: none !important;
}

/* Collection header styling - icons on the right */

.collection-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 16px;
}

.page-title {
  margin: 0;
  flex: 1;
}

.collection-actions {
  display: flex;
  gap: 12px;
  margin-left: 16px;
}

/* Red action icons matching recipe show page style */

.action-icon {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 20px;
  color: #dc3545;
  /* Red color matching recipe page icons */
  width: 24px;
  height: 24px;
  border-radius: 4px;
}

.action-icon:hover {
  color: #b02a37;
  /* Darker red on hover */
  background-color: rgba(220, 53, 69, 0.1);
  /* Light red background on hover */
  transform: scale(1.1);
}

.action-icon:active {
  transform: scale(0.95);
}

.action-icon:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.action-icon:disabled:hover {
  color: #dc3545;
  background-color: transparent;
  transform: none;
}

/* Ensure FontAwesome icons inherit the color */

.action-icon i {
  color: inherit;
  font-size: inherit;
}

/* Modal styles (if not already present) */

.fs-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fs-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.fs-modal__panel {
  background: white;
  border-radius: 8px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.fs-modal__header {
  padding: 24px 24px 0 24px;
  text-align: center;
}

.fs-modal__title {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
}

.fs-modal__subtitle {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

.fs-modal__body {
  padding: 24px;
}

.fs-modal__footer {
  padding: 0 24px 24px 24px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.fs-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 16px;
  transition: border-color 0.2s ease;
}

.fs-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.fs-btn {
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.fs-btn--ghost {
  background: transparent;
  color: #6b7280;
  border: 1px solid #d1d5db;
}

.fs-btn--ghost:hover {
  background: #f9fafb;
}

.fs-btn--primary {
  background: #3b82f6;
  color: white;
}

.fs-btn--primary:hover:not(:disabled) {
  background: #2563eb;
}

.fs-btn--primary:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

/* Notification styles */

.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 16px;
  border-radius: 6px;
  color: white;
  font-weight: 500;
  z-index: 1002;
  display: flex;
  align-items: center;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  animation: slideInRight 0.3s ease;
}

.notification--success {
  background-color: #10b981;
}

.notification--error {
  background-color: #ef4444;
}

.notification--info {
  background-color: #3b82f6;
}

.col-page-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--heading);
  margin: 0 15px 0;
  text-align: left;
}

/*.collection-header {*/

/*     flex-direction: column;*/

/*    align-items: flex-start;*/

/*    gap: 12px;*/

/*}*/

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Mobile responsiveness */

@media (max-width: 768px) {
  .collection-header {
    /*flex-direction: column;*/
    align-items: flex-start;
    gap: 12px;
  }

  .collection-actions {
    order: 2;
    margin-left: 0;
    align-self: flex-end;
  }

  .page-title {
    order: 1;
  }

  .action-icon {
    font-size: 18px;
    width: 22px;
    height: 22px;
  }

  .fs-modal {
    padding: 12px;
  }

  .notification {
    right: 12px;
    left: 12px;
    top: 12px;
  }
}

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 32px 0 20px;
  text-align: left !important;
}

.cookbook-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
}

  
  