/**
 * Site footer (UI §A9, IA §11).
 *
 * From 600px the link sections are always open columns. Below 600px they
 * are native <details> accordions; the Policies column stays visible for
 * compliance. assets/js/footer.js keeps the open state in sync with the
 * screen width.
 */
.tip-site-footer__inner > * + * {
	margin-block-start: var(--wp--preset--spacing--6);
}

.tip-footer__top {
	gap: var(--wp--preset--spacing--6);
	padding-block-end: var(--wp--preset--spacing--6);
	border-block-end: 1px solid rgb(255 255 255 / 10%);
}

.tip-footer__brand > *,
.tip-footer__newsletter > * {
	margin-block: 0 var(--wp--preset--spacing--3);
}

.tip-footer__menus {
	gap: var(--wp--preset--spacing--5) var(--wp--preset--spacing--6);
}

/* Section titles: summary (accordion) and heading (static Policies) look the same:
 * small monospace capitals, like the section eyebrows (ADR-0013). */
.tip-footer__section > summary,
.tip-footer__heading {
	margin-block: 0 var(--wp--preset--spacing--2);
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--label);
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	line-height: var(--wp--custom--line-height--tight);
}

.tip-footer__section > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: var(--wp--custom--touch-target);
	cursor: pointer;
}

/* Chevron replaces the native marker, which display:flex removes. Points down when closed. */
.tip-footer__section > summary::after {
	content: "";
	inline-size: 0.5em;
	block-size: 0.5em;
	margin-inline-end: var(--wp--preset--spacing--2);
	border-block-end: 2px solid currentcolor;
	border-inline-end: 2px solid currentcolor;
	transform: rotate(45deg);
}

.tip-footer__section[open] > summary::after {
	transform: rotate(-135deg);
}

@media (min-width: 600px) {

	.tip-footer__section > summary {
		min-height: 0;
		list-style: none;
		cursor: default;
	}

	.tip-footer__section > summary::-webkit-details-marker {
		display: none;
	}

	.tip-footer__section > summary::after {
		content: none;
	}
}

/* Link lists: no underline until hover; comfortable touch targets on small screens. */
.tip-site-footer .wp-block-navigation {
	font-size: var(--wp--preset--font-size--body-sm);
	font-weight: 400;
	gap: var(--wp--preset--spacing--1);
}

.tip-site-footer .wp-block-navigation .wp-block-navigation-item__content {
	display: flex;
	align-items: center;
	min-height: var(--wp--custom--touch-target);
}

@media (min-width: 600px) {

	.tip-site-footer .wp-block-navigation .wp-block-navigation-item__content {
		min-height: 0;
		padding-block: var(--wp--preset--spacing--1);
	}
}

/* ---------------------------------------------------------------------
 * Navy footer (ADR-0013): light text, muted secondary text, white headings.
 * ------------------------------------------------------------------- */
.tip-site-footer {
	margin-block-start: 0;
}

.tip-site-footer__inner {
	padding-block: var(--wp--preset--spacing--8) var(--wp--preset--spacing--6);
	background-color: var(--wp--preset--color--navy-deep);
	color: #c2cce0;
}

.tip-site-footer__inner :where(a:not(.wp-element-button), .wp-block-navigation, .wp-block-site-title a, h2, summary) {
	color: inherit;
}

.tip-site-footer__inner :where(h2, summary, .tip-footer__heading, .wp-block-site-title a) {
	color: var(--wp--preset--color--bg);
}

.tip-site-footer__inner a:not(.wp-element-button) {
	text-decoration: none;
}

.tip-site-footer__inner a:not(.wp-element-button):hover {
	color: var(--wp--preset--color--bg);
	text-decoration: underline;
}

.tip-site-footer__inner :focus-visible {
	outline-color: var(--wp--preset--color--on-dark-link);
}

.tip-footer__brand .wp-block-site-title {
	font-size: var(--wp--preset--font-size--heading-3);
}

.tip-footer__brand .wp-block-site-tagline {
	max-width: 26rem;
	color: #c2cce0;
}

.tip-site-footer .wp-block-separator {
	border-color: rgb(255 255 255 / 10%);
	opacity: 1;
}

.tip-footer__affiliate,
.tip-footer__copyright {
	color: var(--wp--preset--color--on-dark-muted);
}

.tip-site-footer__inner .tip-footer__affiliate a:not(.wp-element-button) {
	text-decoration: underline !important; /* Inline link in text must stay recognisable (WCAG 1.4.1). */
}

/* Social links: monochrome icons (design tokens, not brand colors), 44px targets. */
.wp-block-social-links.tip-social.is-style-logos-only .wp-social-link {
	color: var(--wp--preset--color--bg);
}

.wp-block-social-links.tip-social .wp-social-link a {
	padding: 10px;
}

.wp-block-social-links.tip-social {
	gap: var(--wp--preset--spacing--1);
	margin-inline-start: -10px;
}
