/**
 * The member hub band's left half: the OTA SIG Membership widget.
 *
 * Frames 1:140, 1:179 and 1:215 of "SIG Page Logged in - out card". The band
 * itself is the teal section the widget sits in, and the pills are
 * ota-buttons.css's branch A, so this file only draws the copy stack, the text
 * link and the one-line status message.
 *
 * COLOUR IS THE FRAME'S LITERAL WHITE AT THREE OPACITIES. Every text colour in
 * these frames is white or a white alpha (0.72 on the eyebrow, 0.78 on the
 * paragraph) with no variable bound, so there is no theme role to follow and
 * the values are written as the frame has them. The band's own teal comes from
 * the section's colour theme, not from here.
 *
 * The frame draws the copy 436px wide on a 1060 line, against a 518 card; the
 * column the widget sits in is wider, so the stack is capped to the frame's
 * measure rather than letting the paragraph run to the column edge.
 */

.ota-sig-membership {
	max-width: 436px;
	color: #ffffff;
}

/*
 * Label/Eyebrow: 17px Bold, 1px tracking, on the 0.72 white. Same scale the
 * SIG page's other eyebrows use, painted white here rather than in the accent
 * role because that is what the frame does on this band.
 */
.ota-sig-membership__eyebrow {
	margin: 0 0 30px;
	color: rgba(255, 255, 255, 0.72);
	font-size: 17px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 1px;
}

/*
 * The heading is a stock element so the theme's `h2 { font-weight: 700 }` and
 * its 48px reach it; the frame draws 32/34.56 Regular. Stated explicitly so the
 * tag an editor picks does not change the drawing.
 */
.ota-sig-membership__heading {
	margin: 0 0 28px;
	color: #ffffff;
	font-size: 32px;
	font-weight: 400;
	line-height: 1.08;
	letter-spacing: 0;
}

.ota-sig-membership__body {
	margin: 0 0 20px;
	color: rgba(255, 255, 255, 0.78);
	font-size: 17px;
	font-weight: 300;
	line-height: 1.65;
}

.ota-sig-membership__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
}

/*
 * "Access your content" with its arrow pointing down, the widget's "Arrow
 * points down" switch. Same quarter turn the member banner gives the shared
 * glyph, on top of the vertical centring from ota-buttons.css.
 */
.ota-sig-membership__access--down .ota-btn__inner::before {
	transform: translateY(-50%) rotate(90deg);
}

/*
 * The Leave and Join pills are <button>s, which the theme and browser both
 * style. Branch A of ota-buttons.css sits deliberately low (0,1,0) and leaves
 * winning against the theme to "a stylesheet that names the properties the
 * theme forces", so this is that stylesheet for these two buttons: the theme's
 * base `button` rule sets a radius, padding, background, border and a
 * condensed font, and each is handed back to the pill's own tokens.
 */
.ota-sig-membership .ota-btn.ota-sig-membership__action {
	margin: 0;
	background-color: var(--ob-bg);
	color: var(--ob-text);
	border-color: var(--ob-line);
	box-shadow: none;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}

.ota-sig-membership .ota-btn[disabled] {
	cursor: wait;
	opacity: 0.6;
}

/*
 * The coordinator link (1:219): 17px Regular white, underlined, with the
 * shared arrow glyph 7px after it. Frame 1:166's aqua bold variant is the
 * Your Groups card's, not this one's.
 *
 * The underline is drawn on the label span, not the link. The link is a flex
 * row so the arrow can sit beside the text, and a text decoration set on a
 * flex container is not inherited by its items the way it is by inline text,
 * so on the link itself it painted nothing (measured on prelive, 9 Sep 2026).
 */
.ota-sig-membership__link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: #ffffff;
	font-size: 17px;
	font-weight: 400;
	line-height: 1;
	text-decoration: none;
}

.ota-sig-membership__link-text {
	text-decoration: underline;
	text-underline-position: from-font;
}

.ota-sig-membership__link:hover,
.ota-sig-membership__link:focus-visible {
	color: #ffffff;
	text-decoration: none;
}

.ota-sig-membership__link:hover .ota-sig-membership__link-text,
.ota-sig-membership__link:focus-visible .ota-sig-membership__link-text {
	text-decoration: none;
}

/*
 * The arrow is the button component's glyph as a mask, so one asset paints in
 * whatever colour the link has; same technique as ota-buttons.css.
 */
.ota-sig-membership__arrow {
	display: inline-block;
	flex: none;
	width: 15px;
	height: 15px;
	background-color: currentColor;
	-webkit-mask: url("../img/ota-btn-arrow.svg") no-repeat center / contain;
	mask: url("../img/ota-btn-arrow.svg") no-repeat center / contain;
}

/* The one-line outcome of a failed join or leave. A success reloads the page. */
.ota-sig-membership__message {
	margin-top: 16px;
	font-size: 15px;
	line-height: 1.5;
}

.ota-sig-membership__message:empty {
	display: none;
}

.ota-sig-membership__message--error {
	color: #ffd2cb;
}

.ota-sig-membership__message--success {
	color: #d4f0d9;
}

@media (max-width: 1024px) {
	.ota-sig-membership {
		max-width: none;
	}
}

@media (max-width: 767px) {
	.ota-sig-membership__heading {
		font-size: 28px;
	}
}
