/* Tasty Roundups in the Sunday look. Loaded only on posts that contain a roundup.
   The plugin keeps doing its job (Katie edits roundups exactly as before); this file only restyles what it prints.
   Phone layout first; the two-column layout starts at 700px. Colors and fonts come from the Design Tokens. */

.entry-content .tasty-roundups.tasty-roundups-rendered { max-width: none; clear: both; margin: 28px 0; }
.entry-content .tasty-roundups.tasty-roundups-rendered .tasty-roundups-child-blocks { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }

/* The card */
.entry-content .tasty-roundups.tasty-roundups-rendered .tasty-roundups-item,
.entry-content .tasty-roundups.tasty-roundups-rendered .tasty-roundups-item.tasty-roundups-item-has-image {
	display: block; position: relative; margin: 0; padding: 0; overflow: hidden;
	border: 1px solid var(--global-palette12); border-radius: 16px;
	background: var(--global-palette9); color: var(--global-palette3);
	font-family: var(--global-body-font-family);
}

/* Photo: square, white edge, on a blush gingham mat. Every photo shape set in the plugin shows this way. */
.entry-content .tasty-roundups.tasty-roundups-rendered .tasty-roundups-item .tasty-roundups-image-container,
.entry-content .tasty-roundups.tasty-roundups-rendered .tasty-roundups-item .tasty-roundups-image-container:has(.tasty-roundups-image) {
	display: block; position: relative; margin: 0 !important; padding: 12px;
	background-color: var(--global-palette7); background-image: var(--hcf-gingham); background-size: 20px 20px;
}
.entry-content .tasty-roundups.tasty-roundups-rendered .tasty-roundups-image-container a { display: block; }
.entry-content .tasty-roundups.tasty-roundups-rendered .tasty-roundups-item .tasty-roundups-image-container img.tasty-roundups-image {
	display: block; width: 100%; height: auto; min-height: 0; aspect-ratio: 1 / 1; object-fit: cover;
	border: 3px solid var(--global-palette9); border-radius: 0;
}

/* Number badge (only on roundups where "display numbers" is switched on in the plugin) */
.entry-content .tasty-roundups.tasty-roundup-items-have-numbers .tasty-roundups-item .tasty-roundups-item-number,
.entry-content .tasty-roundups.tasty-roundup-items-have-numbers .tasty-roundups-item.tasty-roundups-item-has-image .tasty-roundups-item-number,
.entry-content .tasty-roundups.tasty-roundup-items-have-numbers .tasty-roundups-item:has(.tasty-roundups-image-circle).tasty-roundups-item-has-image .tasty-roundups-item-number {
	position: absolute; top: 22px; left: 22px; right: auto; bottom: auto; z-index: 2; margin: 0;
	display: flex; align-items: center; justify-content: center;
	width: auto; min-width: 46px; height: 46px; padding: 0 12px;
	border: 0; border-radius: 10px; background: var(--global-palette1); color: #fff;
	outline: 1px dashed rgba(255, 255, 255, .75); outline-offset: -5px; pointer-events: none;
}
.entry-content .tasty-roundups.tasty-roundup-items-have-numbers .tasty-roundups-item .tasty-roundups-item-number::before {
	margin: 0; font-family: var(--global-heading-font-family); font-size: 24px; font-weight: 400; line-height: 1;
}
/* A numbered item with no photo: the badge sits beside the title */
.entry-content .tasty-roundups.tasty-roundup-items-have-numbers .tasty-roundups-item:not(.tasty-roundups-item-has-image) .tasty-roundups-item-number {
	position: static; display: inline-flex; vertical-align: middle; margin: 0 12px 6px 0;
}

/* Words */
.entry-content .tasty-roundups.tasty-roundups-rendered .tasty-roundups-item .tasty-roundups-content-container,
.entry-content .tasty-roundups.tasty-roundups-rendered .tasty-roundups-item.tasty-roundups-item-has-image .tasty-roundups-content-container {
	margin: 0; padding: 22px 20px 28px;
}
.entry-content .tasty-roundups.tasty-roundups-rendered .tasty-roundups-item .tasty-roundups-content-container .tasty-roundups-title {
	margin: 0 0 10px; color: var(--global-palette3);
	font-family: var(--global-heading-font-family); font-size: 26px !important; font-weight: 400; line-height: 1.2; letter-spacing: -0.01em;
}
.entry-content .tasty-roundups.tasty-roundups-rendered .tasty-roundups-item .tasty-roundups-content-container .tasty-roundups-description {
	margin: 0; color: var(--global-palette4); font-size: 17px; line-height: 1.6;
}
.entry-content .tasty-roundups.tasty-roundups-rendered .tasty-roundups-item .tasty-roundups-meta { margin: 12px 0 0; color: var(--global-palette5); }
.entry-content .tasty-roundups.tasty-roundups-rendered .tasty-roundups-item .tasty-roundups-meta p { margin: 0; color: var(--global-palette5); font-family: var(--global-body-font-family); font-size: 13px; }
.entry-content .tasty-roundups.tasty-roundups-rendered .tasty-roundups-item .tasty-roundups-post-comments svg { margin-right: 6px; }

/* Button: Sunday's stitched button */
.entry-content .tasty-roundups.tasty-roundups-rendered .tasty-roundups-item .tasty-roundups-content-container .tasty-roundups-button-container { display: block; margin: 20px 0 0; }
.entry-content .tasty-roundups.tasty-roundups-rendered .tasty-roundups-item .tasty-roundups-content-container .tasty-roundups-button-container .tasty-roundups-button {
	display: inline-flex; align-items: center; justify-content: center; min-height: 46px; margin: 0; padding: 15px 22px;
	border: 0; border-radius: 8px; background: var(--global-palette1); color: #fff;
	box-shadow: 0 4px 0 var(--global-palette2); outline: 1.5px dashed rgba(255, 255, 255, .75); outline-offset: -7px;
	font-family: var(--global-body-font-family); font-size: 13px; font-weight: 700; line-height: 1.2; letter-spacing: 0.15em;
	text-align: center; text-decoration: none; text-transform: uppercase; transition: transform .15s ease;
}
.entry-content .tasty-roundups.tasty-roundups-rendered .tasty-roundups-button:is(:hover, :focus) { color: #fff; transform: translateY(-2px); }
.entry-content .tasty-roundups.tasty-roundups-rendered .tasty-roundups-button:focus-visible { box-shadow: 0 0 0 3px var(--global-palette8), 0 0 0 5px var(--global-palette3); }
@media (prefers-reduced-motion: reduce) { .entry-content .tasty-roundups.tasty-roundups-rendered .tasty-roundups-button { transition: none; transform: none !important; } }

/* Tablets and computers: photo beside the words */
@media (min-width: 700px) {
	.entry-content .tasty-roundups.tasty-roundups-rendered .tasty-roundups-item.tasty-roundups-item-has-image { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: stretch; }
	.entry-content .tasty-roundups.tasty-roundups-rendered .tasty-roundups-item.tasty-roundups-item-has-image .tasty-roundups-image-container { grid-column: 1; grid-row: 1; padding: 16px; }
	.entry-content .tasty-roundups.tasty-roundups-rendered .tasty-roundups-item.tasty-roundups-item-has-image .tasty-roundups-content-container { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 30px; }
	.entry-content .tasty-roundups.tasty-roundups-rendered .tasty-roundups-item.tasty-roundups-item-align-right.tasty-roundups-item-has-image { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
	.entry-content .tasty-roundups.tasty-roundups-rendered .tasty-roundups-item.tasty-roundups-item-align-right.tasty-roundups-item-has-image .tasty-roundups-image-container { grid-column: 2; }
	.entry-content .tasty-roundups.tasty-roundups-rendered .tasty-roundups-item.tasty-roundups-item-align-right.tasty-roundups-item-has-image .tasty-roundups-content-container { grid-column: 1; }
	.entry-content .tasty-roundups.tasty-roundups-rendered .tasty-roundups-item .tasty-roundups-content-container .tasty-roundups-title { font-size: 30px !important; }
	.entry-content .tasty-roundups.tasty-roundup-items-have-numbers .tasty-roundups-item.tasty-roundups-item-has-image .tasty-roundups-item-number { top: 26px; left: 26px; }
}
