/* Recipes, Notes, teasers, comments, welcome block and the WP Recipe Maker card. Values come from tokens.css only. */

/* ---- shared list chrome ---- */
.ospt-head { margin: 0 0 .75rem; }
.ospt-crumbs { font-size: .8125rem; color: var(--osp-muted); margin: 0 0 4px; }
.ospt-crumbs a { color: var(--osp-muted); }
.ospt-h1 { font-family: var(--osp-font-heading); font-weight: var(--osp-heading-weight); text-transform: var(--osp-heading-transform); letter-spacing: var(--osp-heading-tracking); font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; margin: 4px 0 8px; }
.ospt-sub { color: var(--osp-muted); font-size: 1.0625rem; max-width: 62ch; margin: 0; }
.ospt-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 14px 0 12px; }
.ospt-search { font: inherit; font-size: .9375rem; padding: 8px 12px; border: var(--osp-border-w) solid var(--osp-line); border-radius: var(--osp-radius-sm); background: var(--osp-surface); color: var(--osp-ink); min-width: 220px; }
.ospt-seg { display: none; border: var(--osp-border-w) solid var(--osp-line); border-radius: var(--osp-radius-sm); overflow: hidden; background: var(--osp-surface); }
html.js .ospt-seg { display: inline-flex; }
.ospt-seg button { border: 0; background: none; padding: 7px 14px; font: inherit; font-size: .875rem; color: var(--osp-muted); cursor: pointer; }
.ospt-seg button[aria-pressed="true"] { background: var(--osp-accent); color: var(--osp-accent-ink); }
.ospt-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.ospt-chip { font-size: .8125rem; border: var(--osp-border-w) solid var(--osp-line); background: var(--osp-surface); border-radius: 99px; padding: 4px 12px; color: var(--osp-muted); text-decoration: none; }
.ospt-chip:hover { border-color: var(--osp-accent); }
.ospt-chip.is-on { background: var(--osp-accent); color: var(--osp-accent-ink); border-color: var(--osp-accent); }
.ospt-none { color: var(--osp-muted); }
.ospt-more { margin: .6rem 0 0; font-size: .9375rem; }
.ospt-pager { display: flex; justify-content: space-between; align-items: center; margin-top: 1.5rem; color: var(--osp-muted); font-size: .875rem; }

/* ---- recipes ---- */
.ospt-rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.ospt-rc { display: flex; gap: 12px; align-items: center; background: var(--osp-surface); border: var(--osp-border-w) solid var(--osp-line); border-radius: var(--osp-radius); padding: 10px; text-decoration: none; color: var(--osp-ink); box-shadow: var(--osp-shadow); }
.ospt-rc:hover { border-color: var(--osp-accent); }
.ospt-rc[hidden] { display: none; }
.ospt-rc__img { flex: none; width: 56px; height: 56px; border-radius: var(--osp-radius-sm); display: grid; place-items: center; font: 700 1.6rem var(--osp-font-heading); color: #fff; background: hsl(var(--h, 120) 38% 38%); overflow: hidden; }
.ospt-rc__img--photo { background: var(--osp-line); }
.ospt-rc__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ospt-rc__t b { display: block; font: 700 1rem/1.2 var(--osp-font-heading); text-transform: var(--osp-heading-transform); }
.ospt-rc__t small { color: var(--osp-muted); font-size: .78rem; }
.ospt-list.is-rows .ospt-rgrid { grid-template-columns: 1fr; gap: 6px; }
.ospt-list.is-rows .ospt-rc { padding: 6px 10px; box-shadow: none; }
.ospt-list.is-rows .ospt-rc__img { width: 34px; height: 34px; font-size: 1.1rem; }

/* ---- notes ---- */
.ospt-notelist { display: grid; gap: 12px; }
.ospt-note { display: flex; gap: 16px; background: var(--osp-surface); border: var(--osp-border-w) solid var(--osp-line); border-radius: var(--osp-radius); overflow: hidden; text-decoration: none; color: var(--osp-ink); box-shadow: var(--osp-shadow); }
.ospt-note:hover { border-color: var(--osp-accent); }
.ospt-note[hidden] { display: none; }
.ospt-note__img { flex: none; width: 200px; background: var(--osp-line); }
.ospt-note__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ospt-note__body { padding: 14px 18px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ospt-note__body small { color: var(--osp-muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.ospt-note__t { font: 700 1.25rem/1.25 var(--osp-font-heading); text-transform: var(--osp-heading-transform); letter-spacing: var(--osp-heading-tracking); }
.ospt-note.is-featured .ospt-note__t { font-size: 1.7rem; }
.ospt-note__ex { color: var(--osp-muted); font-size: .9375rem; }
.ospt-note__cats { color: var(--osp-accent); font-size: .8125rem; }
.ospt-list.is-rows .ospt-note { box-shadow: none; }
.ospt-list.is-rows .ospt-note__img, .ospt-list.is-rows .ospt-note__ex { display: none; }
.ospt-list.is-rows .ospt-note__body { padding: 8px 14px; }
@media (max-width: 620px) { .ospt-note { flex-direction: column; gap: 0; } .ospt-note__img { width: auto; height: 150px; } }

/* ---- single post meta, teasers ---- */
.ospt-postmeta { margin-bottom: .5rem; }
.ospt-date { color: var(--osp-muted); font-size: .875rem; margin: 0 0 6px; }
.ospt-cats { margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.ospt-teasers { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ospt-teasers a { display: block; background: var(--osp-surface); border: var(--osp-border-w) solid var(--osp-line); border-radius: var(--osp-radius-sm); padding: 10px 14px; text-decoration: none; color: var(--osp-ink); }
.ospt-teasers a:hover { border-color: var(--osp-accent); }

/* ---- welcome block (home) ---- */
.ospt-welcome { background: var(--osp-surface); border: var(--osp-border-w) solid var(--osp-line); border-radius: var(--osp-radius); box-shadow: var(--osp-shadow); padding: 22px; margin: 1rem 0 .5rem; }
.ospt-welcome .ospt-eyebrow { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--osp-accent); font-weight: 700; margin: 0; }
.ospt-welcome h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 6px 0 10px; }
.ospt-newhere { border-left: 3px solid var(--osp-accent); padding-left: 18px; }
.ospt-newhere p { margin: 0 0 8px; font-weight: 700; font-family: var(--osp-font-heading); }
.ospt-newhere a { display: block; margin-bottom: 8px; text-decoration: none; }
@media (max-width: 781px) { .ospt-newhere { border-left: 0; padding-left: 0; border-top: var(--osp-border-w) solid var(--osp-line); padding-top: 12px; } }

/* ---- comments (hidden until switched on in Settings > Discussion) ---- */
.ospt-comments { margin-top: 2.2rem; border-top: var(--osp-border-w) solid var(--osp-line); padding-top: 1rem; }
.ospt-comments .wp-block-comments-title { font-size: 1.5rem; }
.ospt-comment { padding: 14px 0; border-bottom: var(--osp-border-w) solid var(--osp-line); gap: 12px; }
.ospt-comment .wp-block-avatar img { border-radius: 50%; }
.ospt-comment .wp-block-comment-author-name { font-weight: 700; }
.ospt-comment .wp-block-comment-date { font-size: .8125rem; color: var(--osp-muted); }
.ospt-comment .wp-block-comment-content p { margin: 4px 0 6px; }
.ospt-comments .comment-reply-link { font-size: .8125rem; }
.ospt-comments .wp-block-post-comments-form { margin-top: 1.2rem; background: var(--osp-surface); border: var(--osp-border-w) solid var(--osp-line); border-radius: var(--osp-radius); padding: 16px; }
.ospt-comments textarea, .ospt-comments input[type="text"], .ospt-comments input[type="email"], .ospt-comments input[type="url"] { width: 100%; font: inherit; padding: 9px 12px; border: var(--osp-border-w) solid var(--osp-line); border-radius: var(--osp-radius-sm); background: var(--osp-bg); color: var(--osp-ink); }
.ospt-comments .form-submit input, .ospt-comments .wp-block-button__link { background: var(--osp-accent); color: var(--osp-accent-ink); border: 0; border-radius: var(--osp-radius-sm); padding: 10px 18px; font-weight: 600; cursor: pointer; }

/* ---- WP Recipe Maker card: take its colours and fonts from the theme ---- */
.wprm-recipe-container .wprm-recipe { background: var(--osp-surface) !important; color: var(--osp-ink) !important; border: var(--osp-border-w) solid var(--osp-line) !important; border-radius: var(--osp-radius) !important; font-family: var(--osp-font-body) !important; box-shadow: var(--osp-shadow); }
.wprm-recipe-container .wprm-recipe .wprm-recipe-name,
.wprm-recipe-container .wprm-recipe .wprm-recipe-header,
.wprm-recipe-container .wprm-recipe h1, .wprm-recipe-container .wprm-recipe h2, .wprm-recipe-container .wprm-recipe h3, .wprm-recipe-container .wprm-recipe h4 { font-family: var(--osp-font-heading) !important; color: var(--osp-ink) !important; text-transform: var(--osp-heading-transform) !important; letter-spacing: var(--osp-heading-tracking) !important; }
.wprm-recipe-container .wprm-recipe .wprm-recipe-ingredient,
.wprm-recipe-container .wprm-recipe .wprm-recipe-ingredient-group,
.wprm-recipe-container .wprm-recipe .wprm-recipe-instruction-text,
.wprm-recipe-container .wprm-recipe .wprm-recipe-summary,
.wprm-recipe-container .wprm-recipe .wprm-recipe-notes,
.wprm-recipe-container .wprm-recipe .wprm-recipe-block-container,
.wprm-recipe-container .wprm-recipe .wprm-recipe-details,
.wprm-recipe-container .wprm-recipe .wprm-recipe-time-label { color: var(--osp-ink) !important; font-family: var(--osp-font-body) !important; }
.wprm-recipe-container .wprm-recipe .wprm-recipe-author, .wprm-recipe-container .wprm-recipe a { color: var(--osp-accent) !important; }
.wprm-recipe-container .wprm-recipe .wprm-recipe-link { background: transparent !important; color: var(--osp-accent) !important; border-color: var(--osp-accent) !important; }
.wprm-recipe-container .wprm-recipe .wprm-expandable-container, .wprm-recipe-container .wprm-recipe .wprm-recipe-ingredients-container .wprm-expandable-container { background: var(--osp-bg) !important; color: var(--osp-ink) !important; }
.wprm-recipe-container .wprm-recipe [class*="wprm-recipe-tag-container"] a, .wprm-recipe-container .wprm-recipe [class*="wprm-recipe-tag-container"] span { background: var(--osp-accent) !important; color: var(--osp-accent-ink) !important; }
.wprm-recipe-container .wprm-recipe hr, .wprm-recipe-container .wprm-recipe .wprm-recipe-block-container, .wprm-recipe-container .wprm-recipe li { border-color: var(--osp-line) !important; }

/* the Meadow template's inner panels, pills and rules */
.wprm-recipe-container .wprm-recipe .wprm-layout-container { background: var(--osp-bg) !important; color: var(--osp-ink) !important; }
.wprm-recipe-container .wprm-recipe .wprm-recipe-meta-container-pill { background: var(--osp-accent) !important; color: var(--osp-accent-ink) !important; }
.wprm-recipe-container .wprm-recipe .wprm-recipe-meta-container-pill * { color: var(--osp-accent-ink) !important; }
.wprm-recipe-container .wprm-recipe .wprm-recipe-meta-container { border-color: var(--osp-line) !important; }
.wprm-recipe-container .wprm-recipe .wprm-recipe-jump-to-section { background: var(--osp-surface) !important; color: var(--osp-accent) !important; border-color: var(--osp-line) !important; }
.wprm-recipe-container .wprm-recipe .wprm-internal-container, .wprm-recipe-container .wprm-recipe .wprm-expandable-container { background: var(--osp-surface) !important; border: var(--osp-border-w) solid var(--osp-line); }
.wprm-recipe-container .wprm-recipe svg { color: var(--osp-accent); }
.wprm-recipe-container .wprm-recipe .wprm-recipe-group-name, .wprm-recipe-container .wprm-recipe .wprm-recipe-ingredient-group-name { color: var(--osp-accent) !important; }
