/* =============================================
   Twenty Twenty-Four Custom Formats
   ============================================= */

/* -----------------------------------------
   Marker - Yellow
   ----------------------------------------- */
.tt24-marker-yellow {
	background: linear-gradient(transparent 60%, #fff44f 60%);
	padding: 0 0.1em;
}

/* -----------------------------------------
   Marker - Red
   ----------------------------------------- */
.tt24-marker-red {
	background: linear-gradient(transparent 60%, #ff9a9a 60%);
	padding: 0 0.1em;
}

/* -----------------------------------------
   Marker - Green
   ----------------------------------------- */
.tt24-marker-green {
	background: linear-gradient(transparent 60%, #90EE90 60%);
	padding: 0 0.1em;
}

/* -----------------------------------------
   Badge - Red
   ----------------------------------------- */
.tt24-badge-red,
.tt24-badge-red[data-rich-text-format-boundary] {
	display: inline-block;
	background-color: #dc3232 !important;
	color: #fff !important;
	font-size: 0.8em;
	line-height: 1;
	padding: 0.25em 0.6em;
	border-radius: 3px;
	vertical-align: baseline;
}

/* -----------------------------------------
   Badge - Green
   ----------------------------------------- */
.tt24-badge-green,
.tt24-badge-green[data-rich-text-format-boundary] {
	display: inline-block;
	background-color: #00a32a !important;
	color: #fff !important;
	font-size: 0.8em;
	line-height: 1;
	padding: 0.25em 0.6em;
	border-radius: 3px;
	vertical-align: baseline;
}

/* -----------------------------------------
   Badge - Blue
   ----------------------------------------- */
.tt24-badge-blue,
.tt24-badge-blue[data-rich-text-format-boundary] {
	display: inline-block;
	background-color: #2271b1 !important;
	color: #fff !important;
	font-size: 0.8em;
	line-height: 1;
	padding: 0.25em 0.6em;
	border-radius: 3px;
	vertical-align: baseline;
}

/* -----------------------------------------
   Button - Base
   ----------------------------------------- */
.tt24-button-blue,
.tt24-button-red,
.tt24-button-yellow {
	display: inline-block;
	padding: 0.4em 1.2em;
	border-radius: 9999px;
	font-size: 0.9em;
	line-height: 1.5;
	text-decoration: none !important;
	vertical-align: baseline;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	cursor: pointer;
}

/* Link wrapping a button */
a:has(> .tt24-button-blue),
a:has(> .tt24-button-red),
a:has(> .tt24-button-yellow),
.editor-styles-wrapper a:has(> .tt24-button-blue),
.editor-styles-wrapper a:has(> .tt24-button-red),
.editor-styles-wrapper a:has(> .tt24-button-yellow) {
	text-decoration: none !important;
	color: inherit !important;
	border-bottom: none !important;
	box-shadow: none !important;
}

/* Link inside a button */
.tt24-button-blue a,
.tt24-button-blue a:hover,
.tt24-button-blue a:focus,
.tt24-button-blue a:active,
.tt24-button-blue a:visited,
.tt24-button-red a,
.tt24-button-red a:hover,
.tt24-button-red a:focus,
.tt24-button-red a:active,
.tt24-button-red a:visited,
.editor-styles-wrapper .tt24-button-blue a,
.editor-styles-wrapper .tt24-button-blue a:hover,
.editor-styles-wrapper .tt24-button-red a,
.editor-styles-wrapper .tt24-button-red a:hover {
	color: #fff !important;
	text-decoration: none !important;
	border-bottom: none !important;
	box-shadow: none !important;
}

.tt24-button-yellow a,
.tt24-button-yellow a:hover,
.tt24-button-yellow a:focus,
.tt24-button-yellow a:active,
.tt24-button-yellow a:visited,
.editor-styles-wrapper .tt24-button-yellow a,
.editor-styles-wrapper .tt24-button-yellow a:hover {
	color: #1d2327 !important;
	text-decoration: none !important;
	border-bottom: none !important;
	box-shadow: none !important;
}

/* Button - Hover */
.tt24-button-blue:hover,
.tt24-button-red:hover,
.tt24-button-yellow:hover,
a:has(> .tt24-button-blue):hover .tt24-button-blue,
a:has(> .tt24-button-red):hover .tt24-button-red,
a:has(> .tt24-button-yellow):hover .tt24-button-yellow {
	transform: scale(1.05);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* Button - Blue */
.tt24-button-blue,
.tt24-button-blue[data-rich-text-format-boundary] {
	background-color: #2271b1 !important;
	color: #fff !important;
}

/* Button - Red */
.tt24-button-red,
.tt24-button-red[data-rich-text-format-boundary] {
	background-color: #dc3232 !important;
	color: #fff !important;
}

/* Button - Yellow */
.tt24-button-yellow,
.tt24-button-yellow[data-rich-text-format-boundary] {
	background-color: #f0c000 !important;
	color: #1d2327 !important;
}

/* -----------------------------------------
   Border Box - Base
   ----------------------------------------- */
.tt24-border-box-green,
.tt24-border-box-blue,
.tt24-border-box-orange {
	display: inline-block;
	position: relative;
	border-width: 2px;
	border-style: solid;
	border-radius: 6px;
	padding: 1em 1.2em 0.8em;
	margin: 0.3em 0;
	line-height: 1.6;
}

/* Border Box - Badge label (top-left) */
.tt24-border-box-green::before,
.tt24-border-box-blue::before,
.tt24-border-box-orange::before {
	content: attr(data-label);
	position: absolute;
	top: -0.75em;
	left: 0.8em;
	display: inline-block;
	color: #fff;
	font-size: 0.75em;
	line-height: 1;
	padding: 0.25em 0.6em;
	border-radius: 3px;
	font-weight: 600;
	letter-spacing: 0.02em;
}

/* Border Box - Hide badge when no label */
.tt24-border-box-green:not([data-label])::before,
.tt24-border-box-green[data-label=""]::before,
.tt24-border-box-blue:not([data-label])::before,
.tt24-border-box-blue[data-label=""]::before,
.tt24-border-box-orange:not([data-label])::before,
.tt24-border-box-orange[data-label=""]::before {
	display: none;
}

/* Border Box - Green */
.tt24-border-box-green,
.tt24-border-box-green[data-rich-text-format-boundary] {
	border-color: #00a32a;
}
.tt24-border-box-green::before {
	background-color: #00a32a;
}

/* Border Box - Blue */
.tt24-border-box-blue,
.tt24-border-box-blue[data-rich-text-format-boundary] {
	border-color: #2271b1;
}
.tt24-border-box-blue::before {
	background-color: #2271b1;
}

/* Border Box - Orange */
.tt24-border-box-orange,
.tt24-border-box-orange[data-rich-text-format-boundary] {
	border-color: #e67e22;
}
.tt24-border-box-orange::before {
	background-color: #e67e22;
}

/* =============================================
   Border Box - Block Styles
   For Group, Paragraph, and List blocks
   ============================================= */

/* -----------------------------------------
   Border Box Block Style - Base
   ----------------------------------------- */
.is-style-border-box-green,
.is-style-border-box-blue,
.is-style-border-box-orange {
	position: relative;
	border-width: 2px;
	border-style: solid;
	border-radius: 6px;
	padding: 1em 1.2em;
	margin-top: 1em;
	margin-bottom: 1em;
}

/* Adjust padding for paragraph blocks */
p.is-style-border-box-green,
p.is-style-border-box-blue,
p.is-style-border-box-orange {
	padding: 1em 1.2em;
}

/* Adjust padding for list blocks */
ul.is-style-border-box-green,
ul.is-style-border-box-blue,
ul.is-style-border-box-orange,
ol.is-style-border-box-green,
ol.is-style-border-box-blue,
ol.is-style-border-box-orange {
	padding-left: 2.5em;
	padding-right: 1.2em;
	padding-top: 1em;
	padding-bottom: 1em;
}

/* -----------------------------------------
   Border Box Block Style - Green
   ----------------------------------------- */
.is-style-border-box-green {
	border-color: #00a32a;
	background-color: rgba(0, 163, 42, 0.03);
}

/* -----------------------------------------
   Border Box Block Style - Blue
   ----------------------------------------- */
.is-style-border-box-blue {
	border-color: #2271b1;
	background-color: rgba(34, 113, 177, 0.03);
}

/* -----------------------------------------
   Border Box Block Style - Orange
   ----------------------------------------- */
.is-style-border-box-orange {
	border-color: #e67e22;
	background-color: rgba(230, 126, 34, 0.03);
}
