/*
 * australianmarine.au - the new design (preview, 14 Sep 2026)
 *
 * Loaded only on addresses carrying ?ama_preview=1 (body class .ama-polish). One type system, one card,
 * one button and one photo treatment for every association; each association keeps its logo, its accent
 * colour and its photos. Modelled on the GBR chapter's look (Kristina, 14 Sep).
 */

/* ---------- Tokens ---------- */
body.ama-polish {
	--ama-heading: Poppins, "Helvetica Neue", Arial, sans-serif;
	--ama-text: Roboto, "Helvetica Neue", Arial, sans-serif;
	--ama-ink: #1d2733;
	--ama-muted: #5b6776;
	--ama-line: #e3e8ef;
	--ama-tint: #f4f7fa;
	--ama-navy: #013275;
	--ama-deep: #0b1e36;
	--ama-radius: 12px;
	--ama-shadow: 0 1px 2px rgba(11, 30, 54, .06), 0 6px 20px rgba(11, 30, 54, .07);
	--ama-shadow-lift: 0 2px 6px rgba(11, 30, 54, .08), 0 18px 40px rgba(11, 30, 54, .14);
	--ama-accent: #3f6f9c;
	--wp--preset--font-family--plus-jakarta-sans: var(--ama-text);
	--wp--preset--color--secondary: var(--ama-navy);
	font-family: var(--ama-text);
	color: var(--ama-ink);
	-webkit-font-smoothing: antialiased;
}
/*
 * Brand colours from the AIMEX Logos Branding & Style Guide (August 2021): one navy for AIMEX, ACMG and
 * Superyacht Australia (#013275, Pantone 2757), AIMEX orange #FF7800, ACMG grey #BBBDBF, SYA grey #B3B3B3.
 * The GBR chapter keeps its own navy and teal; Australian Marine takes the shared navy.
 */
body.ama-polish.am-assoc-am    { --ama-accent: #c98a3f; --ama-accent-text: #85561c; }
body.ama-polish.am-assoc-aimex { --ama-accent: #ff7800; --ama-accent-text: #a34a00; }
body.ama-polish.am-assoc-acmg  { --ama-accent: #bbbdbf; --ama-accent-text: #5f6468; }
body.ama-polish.am-assoc-sya   { --ama-accent: #b3b3b3; --ama-accent-text: #6b6b6b; }
body.ama-polish.am-assoc-gbr   { --ama-accent: #2f9aa0; --ama-accent-text: #24787d; --wp--preset--color--secondary: #183255; }
body.ama-polish:not(.am-assoc-gbr) { --wp--preset--color--primary: #013275; }

/* Old site blues replaced with the shared navy: footers, the copyright bar, headings, menus, badges and events */
body.ama-polish:not(.am-assoc-gbr) .ama-foot,
body.ama-polish:not(.am-assoc-gbr) .ama-legal { background: var(--wp--preset--color--secondary) !important; }
body.ama-polish .ama-foot--am { background: #0b1e36 !important; }
body.ama-polish .ama-legal { border-top: 1px solid rgba(255, 255, 255, .12); }
body.ama-polish:not(.am-assoc-gbr) :where(h1, h2, h3, h4, h5) { color: var(--wp--preset--color--secondary); }
body.ama-polish .ama-head--aimex .wp-block-navigation a:hover,
body.ama-polish .ama-head--acmg .wp-block-navigation a:hover,
body.ama-polish .ama-head--am .wp-block-navigation a:hover { color: var(--ama-accent-text) !important; }
body.ama-polish .ama-head--am .wp-block-navigation { color: var(--wp--preset--color--secondary) !important; }
body.ama-polish .ama-badge--sya,
body.ama-polish .ama-badge--aimex,
body.ama-polish .ama-badge--acmg { background: #013275 !important; }
body.ama-polish .ama-badge--aimex { box-shadow: inset 0 -2px 0 #ff7800 !important; }
body.ama-polish .ama-badge--acmg { box-shadow: inset 0 -2px 0 #bbbdbf !important; }
body.ama-polish .ama-badge--sya { box-shadow: inset 0 -2px 0 #b3b3b3 !important; }
body.ama-polish .ama-event__title { color: var(--wp--preset--color--secondary) !important; }
body.ama-polish .ama-event__when { color: var(--ama-muted) !important; }
body.ama-polish .ama-event__date { background: var(--wp--preset--color--secondary) !important; }
body.ama-polish .ama-go a { color: var(--wp--preset--color--secondary) !important; }
body.ama-polish .ama-card--sya, body.ama-polish .ama-card--aimex, body.ama-polish .ama-card--acmg { --ama-card: #013275; }

/* ---------- Type ---------- */
body.ama-polish :is(h1, h2, h3, h4, h5, h6, .wp-block-post-title) {
	font-family: var(--ama-heading) !important;
	color: inherit;
	letter-spacing: -.01em !important;
	text-transform: none !important;
}
body.ama-polish :is(main, .wp-site-blocks) :is(h1, h2, h3, h4, h5, h6):not(.has-text-color) { color: var(--wp--preset--color--secondary); }
body.ama-polish h1 { font-weight: 600 !important; font-size: clamp(34px, 3.3vw, 54px) !important; line-height: 1.12 !important; }
body.ama-polish h2 { font-weight: 600 !important; font-size: clamp(26px, 2.3vw, 38px) !important; line-height: 1.2 !important; }
body.ama-polish h3 { font-weight: 600 !important; font-size: clamp(19px, 1.45vw, 23px) !important; line-height: 1.3 !important; }
body.ama-polish h4, body.ama-polish h5 { font-weight: 600 !important; font-size: 17px !important; line-height: 1.35 !important; }
body.ama-polish main p, body.ama-polish main li { font-size: 17px; line-height: 1.75; }
body.ama-polish main a:not(.wp-block-button__link) { color: var(--wp--preset--color--secondary); text-underline-offset: 3px; }
body.ama-polish .ama-eyebrow { font: 600 12px/1.2 var(--ama-heading); letter-spacing: .14em; text-transform: uppercase; color: var(--ama-accent); margin: 0 0 12px !important; }
body.ama-polish .ama-lede { font-size: clamp(18px, 1.35vw, 21px) !important; line-height: 1.6 !important; color: var(--ama-muted); max-width: 760px; }

/* ---------- Header and footer type ---------- */
body.ama-polish .ama-head .wp-block-navigation,
body.ama-polish .ama-head .wp-block-navigation__submenu-container {
	font-family: var(--ama-heading) !important;
	font-size: 15px !important;
	font-weight: 500 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
}
body.ama-polish .ama-head .wp-block-navigation a:hover { color: var(--ama-accent) !important; }
body.ama-polish :is(.ama-foot, footer) :is(h2, h3, h4) { font-size: 15px !important; letter-spacing: .02em; color: #fff; }
body.ama-polish :is(.ama-foot, footer) :is(p, li, a) { font-family: var(--ama-text); font-size: 15px; }

/* ---------- Page title band (inner pages) ---------- */
body.ama-polish .wp-block-template-part > .wp-block-group.has-secondary-background-color[style*="border-radius"] {
	border-radius: 0 !important;
	box-shadow: none !important;
	background: linear-gradient(90deg, var(--ama-deep) 0%, var(--wp--preset--color--secondary) 100%) !important;
	padding: 44px 0 40px !important;
}
body.ama-polish .wp-block-template-part > .wp-block-group.has-secondary-background-color .wp-block-post-title {
	font-size: clamp(30px, 2.8vw, 46px) !important;
	margin: 6px 0 0 !important;
}
body.ama-polish .yoast-breadcrumbs { font: 500 13px/1.4 var(--ama-text); opacity: .8; }

/* ---------- Photos: a dark gradient, never a white wash ---------- */
body.ama-polish .wp-block-cover__background.has-tertiary-background-color,
body.ama-polish .wp-block-cover__background.has-base-background-color,
body.ama-polish .wp-block-cover:not(.ama-tile) > .wp-block-cover__background:not(.has-background-gradient) {
	background: linear-gradient(90deg, rgba(8, 22, 42, .82) 0%, rgba(8, 22, 42, .55) 42%, rgba(8, 22, 42, .12) 100%) !important;
	opacity: 1 !important;
}
body.ama-polish .wp-block-cover:not(.ama-tile) .wp-block-cover__inner-container,
body.ama-polish .wp-block-cover:not(.ama-tile) .wp-block-cover__inner-container :is(h1, h2, h3, p, a:not(.wp-block-button__link)) { color: #fff !important; }
body.ama-polish .wp-block-cover:not(.ama-tile) .wp-block-cover__inner-container p { font-size: clamp(17px, 1.3vw, 20px) !important; font-weight: 400 !important; line-height: 1.6 !important; max-width: 640px; }
/* Superyacht Australia's header sits on its photo: its navy logo turns white there */
body.ama-polish.am-assoc-sya .wp-block-cover .wp-block-site-logo img,
body.ama-polish.am-assoc-sya .wp-block-cover img.custom-logo { filter: brightness(0) invert(1); }

/* ---------- Buttons ---------- */
body.ama-polish .wp-block-button__link,
body.ama-polish .wp-element-button {
	font: 500 15px/1 var(--ama-heading) !important;
	letter-spacing: .01em !important;
	text-transform: none !important;
	border-radius: 8px !important;
	padding: 15px 26px !important;
	border: 2px solid transparent !important;
	transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
body.ama-polish .wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-background) { background: var(--wp--preset--color--secondary) !important; color: #fff !important; }
body.ama-polish .wp-block-button.is-style-outline .wp-block-button__link { background: transparent !important; border-color: currentColor !important; }
body.ama-polish .wp-block-button__link:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(11, 30, 54, .18); }
body.ama-polish .wp-block-cover .wp-block-button:not(.is-style-outline) .wp-block-button__link { background: #fff !important; color: var(--ama-deep) !important; }
body.ama-polish .wp-block-cover .wp-block-button.is-style-outline .wp-block-button__link { color: #fff !important; }
body.ama-polish .wp-block-buttons { gap: 12px; }

/* ---------- Cards: news, events and stories in grids ---------- */
body.ama-polish .wp-block-post-template.is-layout-grid { gap: 28px !important; }
body.ama-polish .wp-block-post-template.is-layout-grid > .wp-block-post:not(.type-sy_member) {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--ama-line);
	border-radius: var(--ama-radius);
	box-shadow: var(--ama-shadow);
	overflow: hidden;
	padding: 0 0 22px;
	transition: transform .2s ease, box-shadow .2s ease;
}
body.ama-polish .wp-block-post-template.is-layout-grid > .wp-block-post:not(.type-sy_member):hover { transform: translateY(-3px); box-shadow: var(--ama-shadow-lift); }
body.ama-polish .wp-block-post-template.is-layout-grid > .wp-block-post .wp-block-post-featured-image { margin: 0 0 18px !important; overflow: hidden; }
body.ama-polish .wp-block-post-template.is-layout-grid > .wp-block-post .wp-block-post-featured-image img { aspect-ratio: 3 / 2 !important; width: 100%; height: auto; object-fit: cover; transition: transform .4s ease; }
body.ama-polish .wp-block-post-template.is-layout-grid > .wp-block-post:hover .wp-block-post-featured-image img { transform: scale(1.03); }
body.ama-polish .wp-block-post-template.is-layout-grid > .wp-block-post > :not(.wp-block-post-featured-image) { margin-left: 22px !important; margin-right: 22px !important; }
body.ama-polish .wp-block-post-template.is-layout-grid > .wp-block-post .wp-block-post-title { font-size: 19px !important; line-height: 1.35 !important; margin-top: 0 !important; }
body.ama-polish .wp-block-post-template.is-layout-grid > .wp-block-post .wp-block-post-title a { color: var(--ama-ink) !important; text-decoration: none; }
body.ama-polish .wp-block-post-template.is-layout-grid > .wp-block-post .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; }
body.ama-polish .wp-block-post-template.is-layout-grid > .wp-block-post .wp-block-post-excerpt p { font-size: 15px !important; line-height: 1.6 !important; color: var(--ama-muted); }
body.ama-polish .wp-block-post-template.is-layout-grid > .wp-block-post .wp-block-post-excerpt__more-text { display: none; }
body.ama-polish .wp-block-post-date { font: 500 13px/1.4 var(--ama-text) !important; color: var(--ama-muted) !important; }

/* The news list (image and text side by side) */
body.ama-polish .wp-block-post-template.is-layout-flow > .wp-block-post:not(.type-sy_member) > .wp-block-columns {
	background: #fff;
	border: 1px solid var(--ama-line);
	border-radius: var(--ama-radius);
	box-shadow: var(--ama-shadow);
	overflow: hidden;
	gap: 0 !important;
	margin-bottom: 26px;
	align-items: stretch !important;
}
body.ama-polish .wp-block-post-template.is-layout-flow > .wp-block-post > .wp-block-columns > .wp-block-column:first-child .wp-block-post-featured-image { margin: 0; height: 100%; }
body.ama-polish .wp-block-post-template.is-layout-flow > .wp-block-post > .wp-block-columns > .wp-block-column:first-child img { height: 100%; min-height: 220px; aspect-ratio: 16 / 10; object-fit: cover; }
body.ama-polish .wp-block-post-template.is-layout-flow > .wp-block-post > .wp-block-columns > .wp-block-column:last-child { padding: 26px 30px; }

/* ---------- Association tiles (AIMEX and ACMG homepages) ---------- */
body.ama-polish .wp-block-cover.ama-tile {
	border-radius: var(--ama-radius);
	overflow: hidden;
	box-shadow: var(--ama-shadow);
	min-height: 260px !important;
	transition: transform .2s ease, box-shadow .2s ease;
}
body.ama-polish .wp-block-cover.ama-tile > .wp-block-cover__background { background: linear-gradient(180deg, rgba(8, 22, 42, 0) 35%, rgba(8, 22, 42, .82) 100%) !important; opacity: 1 !important; }
body.ama-polish .wp-block-cover.ama-tile img.wp-block-cover__image-background { transition: transform .5s ease; }
body.ama-polish .wp-block-cover.ama-tile:hover { transform: translateY(-3px); box-shadow: var(--ama-shadow-lift); }
body.ama-polish .wp-block-cover.ama-tile:hover img.wp-block-cover__image-background { transform: scale(1.04); }
body.ama-polish .wp-block-cover.ama-tile h3 { font-size: 21px !important; font-weight: 600 !important; letter-spacing: 0 !important; line-height: 1.25 !important; }
body.ama-polish .wp-block-cover.ama-tile h3 a { color: #fff !important; text-decoration: none; }
body.ama-polish .wp-block-cover.ama-tile h3 a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
body.ama-polish .wp-block-cover.ama-tile h3::before { content: ""; display: block; width: 28px; height: 3px; margin-bottom: 12px; background: var(--ama-accent); border-radius: 2px; }

/* ---------- Member directory cards ---------- */
body.ama-polish li.type-sy_member > .wp-block-group.has-border-color {
	position: relative;
	background: #fff !important;
	border: 1px solid var(--ama-line) !important;
	border-radius: var(--ama-radius) !important;
	box-shadow: var(--ama-shadow) !important;
	height: 100%;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
body.ama-polish li.type-sy_member > .wp-block-group.has-border-color:hover { transform: translateY(-3px); box-shadow: var(--ama-shadow-lift); border-color: transparent !important; }
body.ama-polish li.type-sy_member img { max-height: 84px; width: auto; object-fit: contain; }
body.ama-polish li.type-sy_member .wp-block-post-title { font-size: 15px !important; font-weight: 600 !important; line-height: 1.35 !important; }
body.ama-polish li.type-sy_member .wp-block-post-title a { color: var(--ama-ink) !important; text-decoration: none; }
body.ama-polish li.type-sy_member .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; }
body.ama-polish li.type-sy_member .wp-block-mfb-meta-field-block.has-secondary-background-color { position: relative; z-index: 2; background: var(--ama-tint) !important; border-radius: 999px; }
body.ama-polish li.type-sy_member .wp-block-mfb-meta-field-block.has-secondary-background-color a { color: var(--ama-muted) !important; font: 600 11px/1 var(--ama-text); letter-spacing: .06em; }

/* ---------- Events block ---------- */
body.ama-polish .ama-event__link { border-radius: var(--ama-radius) !important; border: 1px solid var(--ama-line); box-shadow: var(--ama-shadow); }
body.ama-polish .ama-event__title { font-family: var(--ama-heading) !important; font-weight: 600 !important; }
body.ama-polish .ama-event__date { border-radius: 10px !important; }

/* ---------- Quotes ---------- */
body.ama-polish .wp-block-quote {
	border: 0 !important;
	background: #fff;
	border-radius: var(--ama-radius);
	box-shadow: var(--ama-shadow);
	padding: 30px 32px 26px !important;
	position: relative;
}
body.ama-polish .wp-block-quote::before { content: "\201C"; position: absolute; top: 6px; left: 24px; font: 700 54px/1 Georgia, serif; color: var(--ama-accent); opacity: .5; }
body.ama-polish .wp-block-quote p { font-size: 16px !important; line-height: 1.7 !important; margin-top: 18px; }
body.ama-polish .wp-block-quote cite { font: 600 13px/1.4 var(--ama-heading); color: var(--ama-muted); font-style: normal; }

/* ---------- Page building blocks used by the new homepages and About pages ---------- */
body.ama-polish .ama-section { padding-top: clamp(56px, 6vw, 92px) !important; padding-bottom: clamp(56px, 6vw, 92px) !important; margin: 0 !important; }
body.ama-polish .ama-section--tint { background: var(--ama-tint); }
body.ama-polish .ama-section--deep { background: var(--ama-deep); color: #fff; }
body.ama-polish .ama-section--deep :is(h2, h3, p, li) { color: #fff !important; }
body.ama-polish .ama-section > :is(h2, .ama-eyebrow, .ama-lede) { max-width: 820px; }
body.ama-polish .ama-section > h2 { margin-top: 0 !important; margin-bottom: 14px !important; }

/* Split: photo and text side by side */
body.ama-polish .ama-split > .wp-block-columns { gap: clamp(32px, 5vw, 80px) !important; align-items: center !important; margin: 0 !important; }
body.ama-polish .ama-split figure { margin: 0 !important; }
body.ama-polish .ama-split figure img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--ama-radius); box-shadow: var(--ama-shadow-lift); }
body.ama-polish .ama-split ul { padding-left: 1.1em; }
body.ama-polish .ama-split li::marker { color: var(--ama-accent); }

/* What we do: short text cards with an accent line */
body.ama-polish .ama-pillars { gap: 24px !important; margin-top: 34px !important; }
body.ama-polish .ama-pillars > .wp-block-column {
	background: #fff;
	border: 1px solid var(--ama-line);
	border-radius: var(--ama-radius);
	box-shadow: var(--ama-shadow);
	padding: 28px 26px 24px;
	border-top: 3px solid var(--ama-accent);
}
body.ama-polish .ama-pillars h3 { margin: 0 0 10px !important; font-size: 19px !important; }
body.ama-polish .ama-pillars p { font-size: 15.5px !important; line-height: 1.65 !important; color: var(--ama-muted); margin: 0 0 12px; }

/* Explore: photo link cards to each section */
body.ama-polish .ama-explore { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px !important; margin-top: 34px !important; }
body.ama-polish .ama-explore > .wp-block-group {
	position: relative;
	margin: 0 !important;
	background: #fff;
	border: 1px solid var(--ama-line);
	border-radius: var(--ama-radius);
	box-shadow: var(--ama-shadow);
	overflow: hidden;
	padding: 0 0 20px !important;
	transition: transform .2s ease, box-shadow .2s ease;
}
body.ama-polish .ama-explore > .wp-block-group:hover { transform: translateY(-3px); box-shadow: var(--ama-shadow-lift); }
body.ama-polish .ama-explore figure { margin: 0 0 16px !important; overflow: hidden; }
body.ama-polish .ama-explore figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .45s ease; }
body.ama-polish .ama-explore > .wp-block-group:hover figure img { transform: scale(1.04); }
body.ama-polish .ama-explore :is(h3, p) { margin-left: 22px !important; margin-right: 22px !important; }
body.ama-polish .ama-explore h3 { margin-top: 0 !important; margin-bottom: 6px !important; font-size: 19px !important; }
body.ama-polish .ama-explore h3 a { color: var(--ama-ink) !important; text-decoration: none; }
body.ama-polish .ama-explore h3 a::after { content: ""; position: absolute; inset: 0; }
body.ama-polish .ama-explore p { font-size: 15px !important; line-height: 1.6 !important; color: var(--ama-muted); margin-top: 0; margin-bottom: 0; }

/* Line-led text link, as on the GBR chapter */
body.ama-polish .ama-textlink a { position: relative; display: inline-block; padding-left: 40px; color: var(--wp--preset--color--secondary) !important; font: 500 16px/1.4 var(--ama-heading); text-decoration: none; }
body.ama-polish .ama-textlink a::before { content: ""; position: absolute; left: 0; top: 50%; width: 26px; height: 2px; background: var(--ama-accent); }
body.ama-polish .ama-textlink a:hover { color: var(--ama-accent) !important; }

/* Membership call to action band */
body.ama-polish .ama-cta { background: linear-gradient(110deg, var(--ama-deep) 0%, var(--wp--preset--color--secondary) 100%) !important; color: #fff; }
body.ama-polish .ama-cta :is(h2, h3, p, li) { color: #fff !important; }
body.ama-polish .ama-cta li::marker { color: var(--ama-accent); }
body.ama-polish .ama-cta .wp-block-button:not(.is-style-outline) .wp-block-button__link { background: #fff !important; color: var(--ama-deep) !important; }
body.ama-polish .ama-cta .wp-block-button.is-style-outline .wp-block-button__link { color: #fff !important; }

/* Facts row */
body.ama-polish .ama-facts { gap: 24px !important; margin-top: 30px !important; }
body.ama-polish .ama-facts > .wp-block-column { border-left: 3px solid var(--ama-accent); padding: 4px 0 4px 18px; }
body.ama-polish .ama-facts p:first-child { font: 600 clamp(26px, 2.2vw, 34px)/1.1 var(--ama-heading) !important; color: var(--wp--preset--color--secondary); margin: 0 0 6px; }
body.ama-polish .ama-facts p:last-child { font-size: 15px !important; color: var(--ama-muted); margin: 0; }

/* An image kept at its own shape (a team graphic, a map) */
body.ama-polish .ama-natural img { aspect-ratio: auto !important; object-fit: contain !important; box-shadow: none !important; border-radius: 0 !important; }
body.ama-polish .ama-natural { text-align: center; }

/* People: board and committee bios as cards */
body.ama-polish .ama-people > .wp-block-columns {
	background: #fff;
	border: 1px solid var(--ama-line);
	border-radius: var(--ama-radius);
	box-shadow: var(--ama-shadow);
	padding: 26px 28px !important;
	margin: 0 0 20px !important;
	gap: 28px !important;
	align-items: flex-start !important;
}
body.ama-polish .ama-people > .wp-block-columns img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; max-width: 150px; }
body.ama-polish .ama-people > .wp-block-columns :is(p, li) { font-size: 15.5px !important; line-height: 1.7 !important; }
body.ama-polish .ama-people > h2 { margin: 12px 0 22px !important; }

/* Contact strip */
body.ama-polish .ama-contact > .wp-block-columns { gap: 24px !important; }
body.ama-polish .ama-contact h3 { font-size: 13px !important; letter-spacing: .12em !important; text-transform: uppercase !important; color: var(--ama-muted) !important; margin-bottom: 8px !important; }
body.ama-polish .ama-contact p { font-size: 16px !important; margin: 0; }

/* ---------- Layout: every new section spans the page and keeps the 1184px column, wherever it sits ---------- */
body.ama-polish main[style*="padding-left:4vw"] .wp-block-post-content > .alignfull { margin-left: -4vw !important; margin-right: -4vw !important; max-width: none !important; width: auto !important; }
body.ama-polish .wp-block-post-content > .ama-section.alignfull { padding-left: var(--ama-edge) !important; padding-right: var(--ama-edge) !important; }
body.ama-polish .wp-block-post-content > .ama-section.alignfull > * { max-width: 1184px !important; margin-left: 0 !important; margin-right: auto !important; }
/* Inner pages pad the page 4vw each side; the bands pull out to the edges, so their text is measured from the page, not the padded box, and lines up with the header and footer */
body.ama-polish main[style*="padding-left:4vw"] .wp-block-post-content > .ama-section.alignfull { padding-left: max(20px, calc((100% - 1184px) / 2 + 4vw)) !important; padding-right: max(20px, calc((100% - 1184px) / 2 + 4vw)) !important; }

/* ---------- One header for every association: white bar, logo left, menu right ---------- */
body.ama-polish .ama-head {
	position: relative !important;
	inset: auto !important;
	background: #fff !important;
	border-bottom: 1px solid var(--ama-line) !important;
	box-shadow: none !important;
	z-index: 20;
}
body.ama-polish .ama-head__inner {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 28px !important;
	min-height: 96px;
	padding: 16px var(--ama-edge) !important;
	max-width: none !important;
	margin: 0 !important;
}
body.ama-polish .ama-head .ama-head__logo { flex: none; }
body.ama-polish .ama-head .ama-head__logo img { width: auto !important; max-width: none !important; }
body.ama-polish .ama-head--am .ama-head__logo img { height: 18px !important; }
body.ama-polish .ama-head--aimex .ama-head__logo img { height: 58px !important; }
body.ama-polish .ama-head--acmg .ama-head__logo img { height: 66px !important; }
body.ama-polish .ama-head--sya .ama-head__logo img { height: 46px !important; }
body.ama-polish .ama-head--gbr .ama-head__logo img { height: 60px !important; }
body.ama-polish .ama-head .wp-block-navigation,
body.ama-polish .ama-head .wp-block-navigation .wp-block-navigation-item__content { color: var(--ama-ink) !important; }
/* Menu labels stay on one line; long menus get tighter spacing, then a second row on smaller screens */
body.ama-polish .ama-head .wp-block-navigation-item,
body.ama-polish .ama-head .wp-block-navigation-item__content,
body.ama-polish .ama-head .wp-block-navigation-item__label { white-space: nowrap !important; }
body.ama-polish .ama-head .wp-block-navigation { flex: 1 1 auto; min-width: 0; justify-content: flex-end !important; }
body.ama-polish .ama-head .wp-block-navigation__container { flex-wrap: nowrap !important; justify-content: flex-end !important; gap: 6px 22px !important; }
body.ama-polish .ama-head--sya .wp-block-navigation__container,
body.ama-polish .ama-head--gbr .wp-block-navigation__container { gap: 6px 16px !important; }
body.ama-polish .ama-head--sya .wp-block-navigation,
body.ama-polish .ama-head--gbr .wp-block-navigation { font-size: 14.5px !important; }
body.ama-polish .ama-head .wp-block-navigation__submenu-icon { margin-left: 3px !important; }
@media (max-width: 1600px) {
	body.ama-polish .ama-head--sya .wp-block-navigation, body.ama-polish .ama-head--gbr .wp-block-navigation { font-size: 14px !important; }
	body.ama-polish .ama-head--sya .wp-block-navigation__container, body.ama-polish .ama-head--gbr .wp-block-navigation__container { gap: 6px 13px !important; }
}
@media (max-width: 1440px) { body.ama-polish .ama-head .wp-block-navigation__container { flex-wrap: wrap !important; row-gap: 8px !important; } }
body.ama-polish .ama-head .wp-block-navigation .wp-block-navigation-item__content:hover { color: var(--ama-accent-text, var(--wp--preset--color--secondary)) !important; }
body.ama-polish .wp-block-navigation__submenu-container { background: #fff !important; border: 1px solid var(--ama-line) !important; border-radius: 10px !important; box-shadow: var(--ama-shadow-lift) !important; padding: 8px 0 !important; min-width: 240px !important; }
body.ama-polish .wp-block-navigation__submenu-container .wp-block-navigation-item__content { color: var(--ama-ink) !important; font: 500 14.5px/1.35 var(--ama-text) !important; padding: 9px 20px !important; }
body.ama-polish .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: var(--ama-tint); color: var(--wp--preset--color--secondary) !important; }
/* The GBR hero no longer sits under the header */
body.ama-polish.am-assoc-gbr .wp-block-post-content > .wp-block-cover:first-child { padding-top: 72px !important; min-height: 620px !important; }

/* ---------- Page title band: square, full width ---------- */
body.ama-polish .wp-block-group.has-secondary-background-color[style*="border-radius"] {
	border-radius: 0 !important;
	box-shadow: none !important;
	background: linear-gradient(90deg, var(--ama-deep) 0%, var(--wp--preset--color--secondary) 100%) !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

/* ---------- Member directory cards: an even logo box and a clear name ---------- */
body.ama-polish li.type-sy_member > .wp-block-group.has-border-color {
	display: flex !important;
	flex-direction: column !important;
	padding: 16px 18px 18px !important;
	min-height: 240px;
	overflow: hidden;
}
body.ama-polish li.type-sy_member > .wp-block-group.has-border-color > .wp-block-group:first-child { position: absolute; top: 12px; right: 12px; padding: 0 !important; z-index: 2; }
body.ama-polish li.type-sy_member > .wp-block-group.has-border-color > .wp-block-group:last-child {
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	justify-content: flex-start !important;
	flex: 1;
	gap: 0 !important;
}
body.ama-polish li.type-sy_member .is-image-field { height: 128px; display: flex; align-items: center; justify-content: center; margin: 22px 10px 10px !important; padding: 0 !important; }
body.ama-polish li.type-sy_member .is-image-field .value { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
body.ama-polish li.type-sy_member .is-image-field img { max-height: 92px !important; max-width: 78% !important; width: auto !important; height: auto !important; object-fit: contain !important; }
body.ama-polish li.type-sy_member .wp-block-post-title {
	margin: auto 0 0 !important;
	padding: 14px 8px 0 !important;
	border-top: 1px solid var(--ama-line);
	min-height: 3.2em;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}

/* ---------- Board, committee and staff: one card style for every association ---------- */
body.ama-polish .ama-people-list { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px !important; margin: 26px 0 40px !important; }
body.ama-polish .ama-people-list--bios { grid-template-columns: repeat(auto-fill, minmax(460px, 1fr)); }
body.ama-polish .ama-people-list--bios .ama-person { padding: 30px 34px 26px !important; }
body.ama-polish .ama-person,
body.ama-polish .ama-people-query .wp-block-post {
	margin: 0 !important;
	background: #fff;
	border: 1px solid var(--ama-line);
	border-top: 3px solid var(--ama-accent);
	border-radius: var(--ama-radius);
	box-shadow: var(--ama-shadow);
	padding: 28px 22px 24px !important;
	text-align: center;
}
body.ama-polish .ama-person img,
body.ama-polish .ama-people-query .wp-block-post-featured-image img { width: 132px !important; height: 132px !important; max-width: none !important; border-radius: 50% !important; object-fit: cover !important; margin: 0 auto 16px !important; display: block; }
body.ama-polish .ama-person figure,
body.ama-polish .ama-people-query .wp-block-post-featured-image { margin: 0 auto !important; width: auto !important; }
body.ama-polish .ama-person :is(h2, h3, h4),
body.ama-polish .ama-people-query .wp-block-post-title { font-size: 18px !important; line-height: 1.3 !important; margin: 0 0 6px !important; text-align: center !important; }
body.ama-polish .ama-person p,
body.ama-polish .ama-people-query .wp-block-post .mfb-meta-field-block,
body.ama-polish .ama-people-query .wp-block-post p { font-size: 14.5px !important; line-height: 1.55 !important; color: var(--ama-muted) !important; margin: 0 !important; text-align: center !important; }
body.ama-polish .ama-person__role { color: var(--wp--preset--color--secondary) !important; font-weight: 500; margin-bottom: 12px !important; }
body.ama-polish .ama-people-list--bios .ama-person p:not(.ama-person__role) { text-align: left !important; font-size: 14.5px !important; margin: 0 0 10px !important; color: var(--ama-ink) !important; }
body.ama-polish .ama-people-query .wp-block-post-template { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px !important; }
body.ama-polish .ama-people-query .wp-block-post .wp-block-group { display: flex !important; flex-direction: column !important; align-items: center !important; gap: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; }

/* ---------- Header height, the gap under it, and the wordmark ---------- */
body.ama-polish main.wp-block-group { margin-top: 0 !important; }
body.ama-polish .wp-site-blocks > * { margin-block-start: 0 !important; }
body.ama-polish .wp-block-group.has-secondary-background-color[style*="border-radius"] { padding-top: 34px !important; padding-bottom: 32px !important; }

/* ---------- One hero heading for every brand ---------- */
body.ama-polish.ama-hero-first[class] .wp-block-post-content > .wp-block-cover:first-child h1,
body.ama-polish[class] .wp-block-post-content > .wp-block-cover:first-child h1,
body.ama-polish[class] .wp-site-blocks > header .wp-block-cover h1 {
	font-family: var(--ama-heading) !important;
	font-weight: 600 !important;
	font-size: clamp(34px, 3.2vw, 52px) !important;
	line-height: 1.12 !important;
	letter-spacing: -.01em !important;
}
body.ama-polish[class] :is(main, .wp-block-post-content) h2:not(.ama-person h2) { font-weight: 600 !important; font-size: clamp(26px, 2.3vw, 38px) !important; line-height: 1.2 !important; }
body.ama-polish.am-assoc-gbr .wp-block-post-content > .wp-block-cover:first-child hr { display: none; }

/* ---------- Header on the photo (the default in the preview; "White bar" in the preview bar turns it off) ---------- */
body.ama-polish.ama-head-over .wp-site-blocks > header { position: relative; z-index: 40; }
body.ama-polish.ama-head-over .ama-head {
	position: absolute !important;
	left: 0 !important;
	right: 0 !important;
	top: 100% !important;
	background: linear-gradient(180deg, rgba(4, 14, 28, .55) 0%, rgba(4, 14, 28, 0) 100%) !important;
	border-bottom: 0 !important;
}
body.ama-polish.ama-head-over .ama-head__logo img { filter: brightness(0) invert(1); }
body.ama-polish.ama-head-over .ama-head .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content,
body.ama-polish.ama-head-over .ama-head .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation__submenu-icon,
body.ama-polish.ama-head-over .ama-head .wp-block-navigation__responsive-container-open { color: #fff !important; }
body.ama-polish.ama-head-over .ama-head .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content:hover { color: #fff !important; text-decoration: underline; text-underline-offset: 6px; }
body.ama-polish.ama-head-over .wp-block-post-content > .wp-block-cover:first-child { padding-top: 170px !important; min-height: 700px !important; }

/* ---------- Photos of people on cards sit from the top ---------- */
body.ama-polish .ama-img-top img { object-position: top center !important; }

/* ---------- Staff profile pages ---------- */
body.ama-polish.single-person main > .wp-block-columns { gap: clamp(32px, 5vw, 72px) !important; align-items: flex-start !important; margin-top: 56px !important; margin-bottom: 80px !important; }
body.ama-polish.single-person .wp-block-post-featured-image img { width: 100% !important; max-width: 320px; aspect-ratio: 1; object-fit: cover; border-radius: var(--ama-radius) !important; border: 0 !important; box-shadow: var(--ama-shadow-lift); }
body.ama-polish.single-person .wp-block-mfb-meta-field-block { font: 500 17px/1.4 var(--ama-heading) !important; font-style: normal !important; color: var(--wp--preset--color--secondary) !important; margin-top: 16px !important; }
body.ama-polish.single-person .wp-block-post-content { max-width: 720px; }
body.ama-polish.single-person .wp-block-post-content > p.has-medium-font-size { font: 600 13px/1.3 var(--ama-heading) !important; letter-spacing: .14em; text-transform: uppercase; color: var(--ama-accent-text, var(--ama-muted)) !important; margin: 0 0 6px !important; }
body.ama-polish.single-person .wp-block-post-content > p:has(> strong:only-child):not(.has-medium-font-size) { font: 600 20px/1.3 var(--ama-heading) !important; color: var(--wp--preset--color--secondary); margin: 26px 0 10px !important; padding-top: 22px; border-top: 1px solid var(--ama-line); }
body.ama-polish.single-person .wp-block-post-content > p.has-medium-font-size + p { border-top: 0 !important; padding-top: 0 !important; margin-top: 8px !important; }
body.ama-polish.single-person .wp-block-post-content ul { margin: 0 0 8px !important; padding-left: 1.2em; }
body.ama-polish.single-person .wp-block-post-content li { margin: 0 0 8px; }
body.ama-polish.single-person .wp-block-post-content li::marker { color: var(--ama-accent); }
body.ama-polish .ama-head__inner { min-height: 84px; padding-top: 12px !important; padding-bottom: 12px !important; }
body.ama-polish .ama-head--am .ama-head__logo img { height: 14px !important; }
body.ama-polish .ama-switcher__item--am img { height: 10px !important; }

/* ---------- Accessible text colours: grey accents stay on lines and rules, text uses the darker shade ---------- */
body.ama-polish .ama-eyebrow { color: var(--ama-accent-text, var(--ama-muted)) !important; }
body.ama-polish { --ama-muted: #4f5b69; }

/* ---------- "What we do" cards: photo on top, a clear button at the foot ---------- */
body.ama-polish .ama-pillars > .wp-block-column { display: flex; flex-direction: column; }
body.ama-polish .ama-pillars > .wp-block-column:has(> .ama-pillar__img) { padding: 0 0 24px !important; overflow: hidden; }
body.ama-polish .ama-pillars > .wp-block-column:has(> .ama-pillar__img) > :not(.ama-pillar__img) { margin-left: 24px !important; margin-right: 24px !important; }
body.ama-polish .ama-pillars .ama-pillar__img { margin: 0 0 20px !important; }
body.ama-polish .ama-pillars .ama-pillar__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
body.ama-polish .ama-pillars h3 { margin-top: 0 !important; }
body.ama-polish .ama-pillars .ama-textlink { margin-top: auto !important; padding-top: 8px; }
body.ama-polish .ama-pillars .ama-textlink a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 18px !important;
	background: var(--wp--preset--color--secondary);
	color: #fff !important;
	border-radius: 8px;
	font: 500 14.5px/1 var(--ama-heading);
	white-space: nowrap;
	text-decoration: none;
	transition: transform .15s ease, box-shadow .15s ease;
}
body.ama-polish .ama-pillars .ama-textlink a::before { display: none; }
body.ama-polish .ama-pillars .ama-textlink a::after { content: "\2192"; }
body.ama-polish .ama-pillars .ama-textlink a:hover { color: #fff !important; transform: translateY(-1px); box-shadow: 0 8px 18px rgba(11, 30, 54, .2); }

/* ---------- Latest news: a row that scrolls, with back and forward buttons ---------- */
body.ama-polish .ama-news-scroll { position: relative; }
body.ama-polish .ama-news-scroll .wp-block-post-template {
	display: flex !important;
	flex-wrap: nowrap !important;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	gap: 28px !important;
	padding: 6px 2px 20px !important;
	scrollbar-width: thin;
}
body.ama-polish .ama-news-scroll .wp-block-post-template > .wp-block-post { flex: 0 0 calc((100% - 56px) / 3); scroll-snap-align: start; }
body.ama-polish .ama-scroll-nav { position: absolute; top: -66px; right: 0; display: flex; gap: 10px; z-index: 3; }
body.ama-polish .ama-scroll-btn {
	width: 46px; height: 46px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 50%;
	border: 1px solid var(--ama-line);
	background: #fff;
	color: var(--wp--preset--color--secondary);
	box-shadow: var(--ama-shadow);
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease;
}
body.ama-polish .ama-scroll-btn:hover:not(:disabled) { background: var(--wp--preset--color--secondary); color: #fff; }
body.ama-polish .ama-scroll-btn:focus-visible { outline: 2px solid var(--wp--preset--color--secondary); outline-offset: 2px; }
body.ama-polish .ama-scroll-btn:disabled { opacity: .35; cursor: default; }
@media (max-width: 1024px) { body.ama-polish .ama-news-scroll .wp-block-post-template > .wp-block-post { flex-basis: calc((100% - 28px) / 2); } }
@media (max-width: 640px) { body.ama-polish .ama-news-scroll .wp-block-post-template > .wp-block-post { flex-basis: 86%; } body.ama-polish .ama-scroll-nav { position: static; justify-content: flex-end; margin-bottom: 12px; } }

/* ---------- Footer: logo, links, contact and larger social icons ---------- */
body.ama-polish .ama-foot__inner { padding-top: 64px !important; padding-bottom: 56px !important; }
body.ama-polish .ama-foot .wp-block-columns { gap: 40px !important; }
body.ama-polish .ama-foot .wp-block-image img { width: 200px !important; height: auto !important; margin-bottom: 16px; }
body.ama-polish .ama-foot--am .wp-block-image img { width: 200px !important; }
body.ama-polish .ama-foot .ama-foot__small { font-size: 15px !important; line-height: 1.7 !important; opacity: .85; max-width: 320px; }
body.ama-polish .ama-foot .ama-foot__title { font: 600 13px/1.3 var(--ama-heading) !important; letter-spacing: .12em !important; text-transform: uppercase !important; color: #fff !important; opacity: .7; margin: 0 0 16px !important; }
body.ama-polish .ama-foot .ama-foot__links { list-style: none; padding: 0 !important; margin: 0 !important; }
body.ama-polish .ama-foot .ama-foot__links li { margin: 0 0 10px !important; }
body.ama-polish .ama-foot a { color: #fff !important; text-decoration: none; }
body.ama-polish .ama-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
body.ama-polish .ama-foot .ama-foot__contact { margin: 0 0 12px !important; font-size: 15px !important; line-height: 1.6 !important; }
body.ama-polish :is(.ama-foot, footer) .wp-block-social-links { gap: 10px !important; margin-top: 22px !important; }
body.ama-polish :is(.ama-foot, footer) .wp-block-social-link {
	width: 42px !important; height: 42px !important;
	display: flex !important; align-items: center; justify-content: center;
	border-radius: 50% !important;
	background: rgba(255, 255, 255, .14) !important;
	transition: background-color .15s ease;
}
body.ama-polish :is(.ama-foot, footer) .wp-block-social-link:hover { background: var(--ama-accent) !important; }
body.ama-polish :is(.ama-foot, footer) .wp-block-social-link a { padding: 0 !important; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
body.ama-polish :is(.ama-foot, footer) .wp-block-social-link svg { width: 20px !important; height: 20px !important; fill: #fff !important; color: #fff !important; }
body.ama-polish .ama-legal { font-size: 14px !important; }

@media (max-width: 781px) {
	body.ama-polish .ama-head__inner { flex-direction: column !important; align-items: flex-start !important; min-height: 0; }
	body.ama-polish .wp-block-post-content > .ama-section.alignfull { padding-left: 20px !important; padding-right: 20px !important; }
	body.ama-polish main p, body.ama-polish main li { font-size: 16px; }
	body.ama-polish .ama-pillars, body.ama-polish .ama-facts { gap: 16px !important; }
	body.ama-polish .wp-block-post-template.is-layout-flow > .wp-block-post > .wp-block-columns > .wp-block-column:last-child { padding: 20px 22px; }
}
/* ---------- Round five (14 Sep): header fit, bands, panels, cards, people, buttons ---------- */

/* Header: a slightly wider column than the page, so the longest menus (Superyacht Australia, the GBR chapter) sit on one line beside the logo; a menu that still cannot fit moves to a second row and never runs over the logo */
body.ama-polish .ama-head__inner { padding-left: max(20px, 2vw, calc((100% - 1320px) / 2)) !important; padding-right: max(20px, 2vw, calc((100% - 1320px) / 2)) !important; }
body.ama-polish .ama-head .wp-block-navigation__container { flex-wrap: wrap !important; row-gap: 8px !important; }
body.ama-polish .ama-head--gbr .wp-block-navigation__container { column-gap: 14px !important; }
/* The header on the photo is placed from the top of the header area (Australian Marine's header area was not positioned, so it landed a screen's height down the page) */
body.ama-polish.ama-head-over header.wp-block-template-part:has(.ama-head) { position: relative !important; z-index: 40; }

/* Page title band: its text lines up with the page column */
body.ama-polish .wp-block-group.has-secondary-background-color[style*="border-radius"] > .wp-block-group { max-width: 1184px !important; margin-left: auto !important; margin-right: auto !important; padding-left: 0 !important; padding-right: 0 !important; }
@media (max-width: 1224px) { body.ama-polish .wp-block-group.has-secondary-background-color[style*="border-radius"] > .wp-block-group { padding-left: 20px !important; padding-right: 20px !important; } }

/* Superyacht Australia's older pages sit beside a column of photo tiles; with the new page text they take the full width like the other associations */
body.ama-polish.ama-has-preview main .wp-block-columns:has(.wp-block-post-content) { display: block !important; max-width: none !important; width: auto !important; margin: 0 !important; }
body.ama-polish.ama-has-preview main .wp-block-columns:has(.wp-block-post-content) > .wp-block-column:not(:has(.wp-block-post-content)) { display: none !important; }
body.ama-polish.ama-has-preview main .wp-block-columns:has(.wp-block-post-content) > .wp-block-column { max-width: none !important; width: auto !important; flex-basis: auto !important; }

/* The closing membership band is a panel with space before the footer, so two navy blocks never meet */
body.ama-polish .wp-block-post-content > .ama-cta.alignfull:last-child {
	margin: 0 max(20px, 2vw, calc((100% - 1320px) / 2)) clamp(56px, 6vw, 96px) !important;
	width: auto !important;
	border-radius: 20px;
	overflow: hidden;
	padding-left: clamp(28px, 4.5vw, 68px) !important;
	padding-right: clamp(28px, 4.5vw, 68px) !important;
}
body.ama-polish main[style*="padding-left:4vw"] .wp-block-post-content > .ama-cta.alignfull:last-child {
	margin-left: max(calc(20px - 4vw), calc((100% - 1320px) / 2)) !important;
	margin-right: max(calc(20px - 4vw), calc((100% - 1320px) / 2)) !important;
	padding-left: clamp(28px, 4.5vw, 68px) !important;
	padding-right: clamp(28px, 4.5vw, 68px) !important;
}

/* One call-to-action style: text links read as buttons, white on photos and dark bands */
body.ama-polish .ama-textlink a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	max-width: 100%;
	padding: 12px 20px !important;
	background: var(--wp--preset--color--secondary);
	color: #fff !important;
	border-radius: 8px;
	font: 500 15px/1.25 var(--ama-heading) !important;
	text-decoration: none !important;
	white-space: normal !important;
	transition: transform .15s ease, box-shadow .15s ease;
}
body.ama-polish .ama-textlink a::before { display: none !important; }
body.ama-polish .ama-textlink a::after { content: "\2192"; }
body.ama-polish .ama-textlink a:hover { color: #fff !important; transform: translateY(-1px); box-shadow: 0 8px 18px rgba(11, 30, 54, .2); }
body.ama-polish :is(.wp-block-cover, .ama-cta, .ama-section--deep) .ama-textlink a { background: #fff; color: var(--ama-deep) !important; }
body.ama-polish :is(.wp-block-cover, .ama-cta, .ama-section--deep) .ama-textlink a:hover { color: var(--ama-deep) !important; }

/* Association cards with logos: the Australian Marine hub in two columns, and the "Part of Australian Marine" cards */
body.ama-polish .ama-hubcards { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 781px) { body.ama-polish .ama-hubcards { grid-template-columns: 1fr; } }
body.ama-polish .ama-pillars .ama-card-logo { height: 76px; margin: 0 0 18px !important; display: flex !important; align-items: center; }
body.ama-polish .ama-pillars .ama-card-logo a { display: flex; align-items: center; height: 100%; }
body.ama-polish .ama-pillars .ama-card-logo img { width: auto !important; max-width: 100% !important; height: 60px !important; object-fit: contain; aspect-ratio: auto !important; border-radius: 0 !important; box-shadow: none !important; }
body.ama-polish .ama-pillars .ama-card-logo.ama-card-logo--aimex img { height: 52px !important; }
body.ama-polish .ama-pillars .ama-card-logo.ama-card-logo--acmg img { height: 68px !important; }
body.ama-polish .ama-pillars .ama-card-logo.ama-card-logo--sya img { height: 44px !important; }
body.ama-polish .ama-pillars .ama-card-logo.ama-card-logo--gbr img { height: 72px !important; }

/* People: larger round photos, framed from the upper part of the picture so heads are not cut */
body.ama-polish .ama-person img,
body.ama-polish .ama-people-query .wp-block-post-featured-image img { width: 168px !important; height: 168px !important; object-position: 50% 22% !important; }

/* Australian Marine's homepage: the text sits higher and the four associations run along the foot of the photo, lined up with the page column */
body.ama-polish.ama-home.am-assoc-am .wp-block-post-content > .wp-block-cover:first-child { padding-top: 140px !important; padding-bottom: 0 !important; min-height: 680px !important; align-items: stretch !important; }
body.ama-polish.ama-home.am-assoc-am .wp-block-post-content > .wp-block-cover:first-child > .wp-block-cover__inner-container { display: flex !important; flex-direction: column !important; justify-content: flex-start !important; }
body.ama-polish.ama-home.am-assoc-am .wp-block-post-content > .wp-block-cover:first-child h1 { max-width: 1000px !important; }
body.ama-polish.ama-home.am-assoc-am .wp-block-post-content > .wp-block-cover:first-child .wp-block-buttons { margin-bottom: 64px !important; }
body.ama-polish.ama-home.am-assoc-am .wp-block-post-content > .wp-block-cover:first-child .ama-hero-logos {
	position: relative !important;
	margin: auto 0 0 !important;
	width: 100% !important;
	max-width: none !important;
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px 48px !important;
	padding: 24px 0 !important;
	background: rgba(4, 14, 28, .55);
	box-shadow: 0 0 0 100vmax rgba(4, 14, 28, .55);
	clip-path: inset(0 -100vmax);
}
body.ama-polish.ama-home.am-assoc-am .wp-block-post-content > .wp-block-cover:first-child .ama-hero-logos > p { font: 600 12px/1.2 var(--ama-heading) !important; letter-spacing: .14em !important; text-transform: uppercase !important; color: rgba(255, 255, 255, .85) !important; margin: 0 8px 0 0 !important; }
body.ama-polish .ama-hero-logos figure { margin: 0 !important; }
body.ama-polish .ama-hero-logos img { width: auto !important; height: 40px !important; opacity: .9; transition: opacity .15s ease; }
body.ama-polish .ama-hero-logos a:hover img { opacity: 1; }
body.ama-polish .ama-hero-logos .ama-card-logo.ama-card-logo--aimex img { height: 36px !important; }
body.ama-polish .ama-hero-logos .ama-card-logo.ama-card-logo--acmg img { height: 46px !important; }
body.ama-polish .ama-hero-logos .ama-card-logo.ama-card-logo--sya img { height: 32px !important; }
body.ama-polish .ama-hero-logos .ama-card-logo.ama-card-logo--gbr img { height: 50px !important; }
@media (max-width: 781px) {
	body.ama-polish.ama-home.am-assoc-am .wp-block-post-content > .wp-block-cover:first-child .ama-hero-logos { gap: 14px 26px !important; padding: 18px 0 !important; }
	body.ama-polish.ama-home.am-assoc-am .wp-block-post-content > .wp-block-cover:first-child .ama-hero-logos > p { width: 100%; }
}

/* Association cards on Australian Marine's homepage: the buttons line up along the foot of each card */
body.ama-polish .ama-assoc-cards > .wp-block-column { display: flex !important; flex-direction: column !important; }
body.ama-polish .ama-assoc-cards .ama-card { flex: 1 1 auto !important; display: flex !important; flex-direction: column !important; }
body.ama-polish .ama-assoc-cards .ama-card .ama-go { margin-top: auto !important; padding-top: 16px !important; }
body.ama-polish .ama-assoc-cards .ama-card .ama-go a { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px !important; background: var(--wp--preset--color--secondary); color: #fff !important; border-radius: 8px; font: 500 15px/1.25 var(--ama-heading) !important; text-decoration: none !important; }
body.ama-polish .ama-assoc-cards .ama-card .ama-go a::after { content: "\2192"; color: #fff !important; }
body.ama-polish .ama-assoc-cards .ama-card .ama-go a:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(11, 30, 54, .2); }

/* Latest news cards: a few lines of the story, then a clear line-led "Read more" at the foot */
body.ama-polish .ama-news-scroll .wp-block-post-template > .wp-block-post { display: flex !important; flex-direction: column !important; }
body.ama-polish .ama-news-scroll .wp-block-post-excerpt { margin: 10px 22px 0 !important; }
body.ama-polish .ama-news-scroll .wp-block-post-excerpt__excerpt { font-size: 15px !important; line-height: 1.6 !important; color: var(--ama-muted) !important; margin: 0 !important; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
body.ama-polish .ama-news-scroll .wp-block-read-more { margin: auto 22px 24px !important; padding-top: 18px !important; display: inline-flex !important; align-items: center; gap: 12px; align-self: flex-start; font: 500 15px/1.3 var(--ama-heading) !important; color: var(--wp--preset--color--secondary) !important; text-decoration: none !important; }
body.ama-polish .ama-news-scroll .wp-block-read-more::before { content: ""; display: block; width: 28px; height: 2px; background: var(--ama-accent); transition: width .2s ease; }
body.ama-polish .ama-news-scroll .wp-block-read-more:hover { text-decoration: underline !important; text-underline-offset: 4px; }
body.ama-polish .ama-news-scroll .wp-block-read-more:hover::before { width: 40px; }

/* Footers: the four association logos under Australian Marine's line, and a join button in every footer */
body.ama-polish .ama-foot .ama-foot__logos { display: flex !important; flex-wrap: wrap; align-items: center; gap: 14px 22px !important; margin: 22px 0 0 !important; }
body.ama-polish .ama-foot .ama-foot__logos figure { margin: 0 !important; }
body.ama-polish .ama-foot .ama-foot__logos .wp-block-image img { width: auto !important; height: 24px !important; margin: 0 !important; opacity: .85; }
body.ama-polish .ama-foot .ama-foot__logos .ama-card-logo--aimex img { height: 22px !important; }
body.ama-polish .ama-foot .ama-foot__logos .ama-card-logo--acmg img { height: 28px !important; }
body.ama-polish .ama-foot .ama-foot__logos .ama-card-logo--sya img { height: 19px !important; }
body.ama-polish .ama-foot .ama-foot__logos .ama-card-logo--gbr img { height: 30px !important; }
body.ama-polish .ama-foot .ama-foot__logos a:hover img { opacity: 1; }
body.ama-polish .ama-foot .ama-foot__cta { margin-top: 26px !important; }
body.ama-polish .ama-foot .ama-foot__cta .wp-block-button__link { background: #fff !important; color: var(--ama-deep) !important; border-radius: 8px !important; padding: 12px 22px !important; font: 500 15px/1.2 var(--ama-heading) !important; text-decoration: none !important; }
body.ama-polish .ama-foot .ama-foot__cta .wp-block-button__link::after { content: "\00a0\2192"; }
body.ama-polish .ama-foot .ama-foot__cta .wp-block-button__link:hover { text-decoration: none !important; box-shadow: 0 8px 18px rgba(0, 0, 0, .25); }

/* Pages still without the new bands (Membership, Benefits and the like): room under the title band and before the footer */
body.ama-polish main .wp-block-post-content > :first-child:not(.alignfull):not(.wp-block-cover) { margin-top: clamp(40px, 5vw, 64px) !important; }
body.ama-polish main .wp-block-post-content > :last-child:not(.alignfull):not(.wp-block-cover) { margin-bottom: clamp(56px, 6vw, 96px) !important; }

/* Member listing logo: the logo box takes the card's full width */
body.ama-polish.single-sy_member .is-image-field { width: 100% !important; align-self: stretch !important; box-sizing: border-box; }

/* Older shared pages that sat beside a column of photo tiles (Awards, Publications and the like): the tiles go, and the page text sits in the page column under the title band */
body.ama-polish.page main .wp-block-columns:has(> .wp-block-column > .wp-block-post-content) > .wp-block-column:not(:has(.wp-block-post-content)) { display: none !important; }
body.ama-polish.page:not(.ama-has-preview) main .wp-block-columns:has(> .wp-block-column > .wp-block-post-content) { display: block !important; max-width: 1184px !important; width: auto !important; margin: 0 auto !important; }
body.ama-polish.page:not(.ama-has-preview) main .wp-block-columns:has(> .wp-block-column > .wp-block-post-content) > .wp-block-column { max-width: none !important; width: auto !important; flex-basis: auto !important; }
body.ama-polish.page:not(.ama-has-preview) main .wp-block-columns:has(> .wp-block-column > .wp-block-post-content) .wp-block-post-content > :not(.alignfull) { margin-left: 0 !important; margin-right: auto !important; max-width: 820px !important; }
@media (max-width: 1224px) { body.ama-polish.page:not(.ama-has-preview) main .wp-block-columns:has(> .wp-block-column > .wp-block-post-content) { padding-left: 0 !important; padding-right: 0 !important; } }

/* GBR hero buttons: the same filled and outline buttons as the other associations, in place of the chapter's line links */
body.ama-polish.ama-hero-first.am-assoc-gbr .wp-block-post-content > .wp-block-cover:first-child .wp-block-button__link { padding: 14px 26px !important; font: 500 16px/1.2 var(--ama-heading) !important; border-radius: 8px !important; }
body.ama-polish.ama-hero-first.am-assoc-gbr .wp-block-post-content > .wp-block-cover:first-child .wp-block-button:not(.is-style-outline) .wp-block-button__link { background: #fff !important; color: var(--ama-deep) !important; border: 2px solid #fff !important; }
body.ama-polish.ama-hero-first.am-assoc-gbr .wp-block-post-content > .wp-block-cover:first-child .wp-block-button.is-style-outline .wp-block-button__link { background: transparent !important; color: #fff !important; border: 2px solid #fff !important; }
body.ama-polish.ama-hero-first.am-assoc-gbr .wp-block-post-content > .wp-block-cover:first-child .wp-block-button__link::before { display: none !important; content: none !important; }
body.ama-polish.ama-hero-first.am-assoc-gbr .wp-block-post-content > .wp-block-cover:first-child .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover { color: var(--ama-deep) !important; }

/* Latest news cards: every photo the same shape, so one tall photo no longer stretches the whole row */
body.ama-polish .ama-news-scroll .wp-block-post-featured-image { margin: 0 !important; aspect-ratio: 16 / 10; overflow: hidden; }
body.ama-polish .ama-news-scroll .wp-block-post-featured-image :is(a, img) { display: block !important; width: 100% !important; height: 100% !important; }
body.ama-polish .ama-news-scroll .wp-block-post-featured-image img { object-fit: cover !important; aspect-ratio: auto !important; }
body.ama-polish .ama-news-scroll .wp-block-post-title { display: -webkit-box !important; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Photos in page text carry the same rounded corners as the cards (logos, team graphics and people photos keep their own shape) */
body.ama-polish .wp-block-post-content .wp-block-image:not(.ama-card-logo):not(.ama-natural):not(.is-style-rounded) img,
body.ama-polish.single-post .wp-block-post-featured-image img { border-radius: var(--ama-radius) !important; }

/* Upcoming events: larger cards, two across */
body.ama-polish .ama-events { grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 1fr)) !important; gap: 24px !important; margin-top: 28px !important; }
body.ama-polish .ama-event__link { padding: 26px 28px !important; gap: 22px !important; align-items: flex-start; }
body.ama-polish .ama-event__date { width: 80px !important; height: 86px !important; }
body.ama-polish .ama-event__month { font-size: 13px !important; }
body.ama-polish .ama-event__day { font-size: 34px !important; margin-top: 6px !important; }
body.ama-polish .ama-event__title { font-size: 21px !important; line-height: 1.3 !important; }
body.ama-polish .ama-event__when { font-size: 15.5px !important; }
body.ama-polish .ama-event__where { font-size: 15px !important; }
body.ama-polish .ama-event__badges { margin-top: 10px !important; }

/* People cards pulled from the people list carry the same accent line; names that link read as names */
body.ama-polish .ama-people-query .wp-block-post-template > .wp-block-post { border-top: 3px solid var(--ama-accent) !important; }
body.ama-polish .ama-person :is(h2, h3, h4) a { color: inherit !important; text-decoration: none !important; }
body.ama-polish .ama-person :is(h2, h3, h4) a:hover { color: var(--ama-accent-text, var(--wp--preset--color--secondary)) !important; }

/* ---------- Member listing pages ---------- */
body.ama-polish.single-sy_member .wp-block-columns.alignwide { max-width: 1184px !important; margin: 48px auto 88px !important; gap: clamp(24px, 3vw, 40px) !important; align-items: flex-start !important; }
body.ama-polish.single-sy_member .wp-block-columns.alignwide > .wp-block-column:first-child { flex: 0 0 360px !important; max-width: 360px; }
body.ama-polish.single-sy_member .wp-block-columns.alignwide > .wp-block-column:first-child > .wp-block-group.has-border-color,
body.ama-polish.single-sy_member .wp-block-columns.alignwide > .wp-block-column.has-border-color {
	background: #fff;
	border: 1px solid var(--ama-line) !important;
	border-radius: var(--ama-radius) !important;
	box-shadow: var(--ama-shadow) !important;
	overflow: hidden;
}
body.ama-polish.single-sy_member .wp-block-columns.alignwide > .wp-block-column:first-child > .wp-block-group.has-border-color { padding: 0 !important; gap: 0 !important; }
body.ama-polish.single-sy_member .is-image-field { height: 190px; margin: 0 !important; padding: 28px !important; display: flex !important; align-items: center; justify-content: center; border-bottom: 1px solid var(--ama-line); }
body.ama-polish.single-sy_member .is-image-field :is(.value, a) { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
body.ama-polish.single-sy_member .is-image-field img { width: auto !important; height: auto !important; max-width: 100% !important; max-height: 120px !important; object-fit: contain; }
body.ama-polish.single-sy_member .wp-block-columns.alignwide > .wp-block-column:first-child > .wp-block-group.has-border-color > .wp-block-group { padding: 22px 26px 4px !important; display: block !important; }
body.ama-polish.single-sy_member .wp-block-columns.alignwide > .wp-block-column:first-child .wp-block-mfb-meta-field-block:not(.is-image-field) { font: 400 15.5px/1.6 var(--ama-text) !important; color: var(--ama-ink) !important; margin: 0 !important; }
body.ama-polish.single-sy_member .wp-block-columns.alignwide > .wp-block-column:first-child p.wp-block-mfb-meta-field-block,
body.ama-polish.single-sy_member .wp-block-columns.alignwide > .wp-block-column:first-child div.wp-block-mfb-meta-field-block:not(.is-image-field) { display: block; margin-top: 14px !important; }
body.ama-polish.single-sy_member .wp-block-columns.alignwide > .wp-block-column:first-child :is(.prefix, strong) { font: 600 11.5px/1.5 var(--ama-heading) !important; letter-spacing: .12em; text-transform: uppercase; color: var(--ama-muted) !important; }
body.ama-polish.single-sy_member .wp-block-columns.alignwide > .wp-block-column:first-child a { color: var(--wp--preset--color--secondary) !important; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
body.ama-polish.single-sy_member .wp-block-columns.alignwide > .wp-block-column:first-child .wp-block-buttons { margin: 20px 26px 26px !important; }
body.ama-polish.single-sy_member .wp-block-columns.alignwide > .wp-block-column:first-child .wp-block-button__link { background: transparent !important; color: var(--wp--preset--color--secondary) !important; border: 1.5px solid var(--wp--preset--color--secondary) !important; border-radius: 8px !important; padding: 11px 18px !important; font: 500 14.5px/1.2 var(--ama-heading) !important; text-decoration: none !important; }
body.ama-polish.single-sy_member .wp-block-columns.alignwide > .wp-block-column:first-child .wp-block-button__link::before { content: "\2190\00a0"; }
body.ama-polish.single-sy_member .wp-block-columns.alignwide > .wp-block-column.has-border-color { padding: clamp(28px, 3.5vw, 44px) !important; }
body.ama-polish.single-sy_member .wp-block-columns.alignwide > .wp-block-column.has-border-color > .wp-block-group:first-child { display: flex !important; flex-wrap: wrap; gap: 8px !important; margin: 0 0 22px !important; }
body.ama-polish.single-sy_member .wp-block-columns.alignwide > .wp-block-column.has-border-color > .wp-block-group:first-child .wp-block-mfb-meta-field-block { background: var(--ama-tint) !important; color: var(--wp--preset--color--secondary) !important; border-radius: 999px !important; padding: 6px 13px !important; margin: 0 !important; font: 600 12px/1.2 var(--ama-heading) !important; letter-spacing: .06em; text-transform: uppercase; }
body.ama-polish.single-sy_member .wp-block-columns.alignwide > .wp-block-column.has-border-color > .wp-block-group:first-child :is(a, .value) { color: inherit !important; background: none !important; padding: 0 !important; text-decoration: none !important; font: inherit !important; }
body.ama-polish.single-sy_member .wp-block-post-content :is(p, li) { font: 400 17px/1.75 var(--ama-text) !important; color: var(--ama-ink) !important; }
body.ama-polish.single-sy_member .wp-block-post-content p { margin: 0 0 1.05em !important; }
body.ama-polish.single-sy_member .wp-block-post-content a { color: var(--wp--preset--color--secondary) !important; text-underline-offset: 3px; }
body.ama-polish.single-sy_member .has-secondary-background-color p a { font: 600 12.5px/1.2 var(--ama-heading) !important; letter-spacing: .1em; text-transform: uppercase; color: #fff !important; opacity: .85; text-decoration: none !important; }
body.ama-polish.single-sy_member .has-secondary-background-color p a:hover { opacity: 1; }
@media (max-width: 781px) {
	body.ama-polish.single-sy_member .wp-block-columns.alignwide { margin: 28px 20px 56px !important; }
	body.ama-polish.single-sy_member .wp-block-columns.alignwide > .wp-block-column:first-child { flex-basis: 100% !important; max-width: none; }
}

/* ---------- Key facts and common questions on the About pages (answer engines, 14 Sep 2026) ---------- */
body.ama-polish .ama-keyfacts { margin: 40px 0 0 !important; max-width: 920px; }
body.ama-polish .ama-keyfacts h2 { font-size: clamp(22px, 1.8vw, 26px) !important; margin: 0 0 16px !important; }
body.ama-polish .ama-keyfacts figure { margin: 0 !important; }
body.ama-polish .ama-keyfacts table { width: 100%; border-collapse: collapse; font-size: 16px; }
body.ama-polish .ama-keyfacts :is(th, td) { border: 0 !important; border-bottom: 1px solid var(--ama-line) !important; padding: 13px 16px 13px 0 !important; text-align: left; vertical-align: top; line-height: 1.55; }
body.ama-polish .ama-keyfacts tr:first-child :is(th, td) { border-top: 1px solid var(--ama-line) !important; }
body.ama-polish .ama-keyfacts th { width: 30%; font: 600 13px/1.5 var(--ama-heading); letter-spacing: .06em; text-transform: uppercase; color: var(--ama-muted); padding-top: 15px !important; }
body.ama-polish .ama-keyfacts td a, body.ama-polish .ama-faq details a { color: var(--wp--preset--color--secondary) !important; text-decoration: underline; text-underline-offset: 3px; }
body.ama-polish .ama-faq .wp-block-details { max-width: 920px; border-bottom: 1px solid var(--ama-line); margin: 0 !important; padding: 0 !important; }
body.ama-polish .ama-faq > h2 + .wp-block-details { border-top: 1px solid var(--ama-line); margin-top: 26px !important; }
body.ama-polish .ama-faq summary { list-style: none; cursor: pointer; position: relative; padding: 20px 52px 20px 0; font: 600 18px/1.45 var(--ama-heading); color: var(--wp--preset--color--secondary); }
body.ama-polish .ama-faq summary::-webkit-details-marker { display: none; }
body.ama-polish .ama-faq summary::after { content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font: 400 30px/1 var(--ama-heading); color: var(--ama-accent-text, var(--ama-muted)); }
body.ama-polish .ama-faq details[open] > summary::after { content: "\2212"; }
body.ama-polish .ama-faq summary:hover { color: var(--ama-accent-text, var(--wp--preset--color--secondary)); }
body.ama-polish .ama-faq summary:focus-visible { outline: 2px solid var(--wp--preset--color--secondary); outline-offset: 4px; border-radius: 4px; }
body.ama-polish .ama-faq details > :not(summary) { margin: 0 0 14px !important; max-width: 820px; font-size: 16.5px; line-height: 1.7; }
body.ama-polish .ama-faq details > :last-child { margin-bottom: 24px !important; }
@media (max-width: 781px) {
	body.ama-polish .ama-keyfacts th { width: 38%; }
	body.ama-polish .ama-faq summary { font-size: 16.5px; }
}

@media (prefers-reduced-motion: reduce) {
	body.ama-polish * { transition: none !important; }
}

/* ---------- Member listing card: every detail inside the card's padding, one label style ---------- */
body.ama-polish.single-sy_member .wp-block-columns.alignwide > .wp-block-column:first-child > .wp-block-group.has-border-color > :not(.is-image-field) { margin-left: 26px !important; margin-right: 26px !important; }
body.ama-polish.single-sy_member .wp-block-columns.alignwide > .wp-block-column:first-child > .wp-block-group.has-border-color > .wp-block-group { padding: 22px 0 0 !important; }
body.ama-polish.single-sy_member .wp-block-columns.alignwide > .wp-block-column:first-child > .wp-block-group.has-border-color > .wp-block-group > .wp-block-mfb-meta-field-block { display: block !important; margin: 0 !important; }
body.ama-polish.single-sy_member .wp-block-columns.alignwide > .wp-block-column:first-child > .wp-block-group.has-border-color > .wp-block-mfb-meta-field-block:not(.is-image-field) { display: block !important; margin-top: 16px !important; }
body.ama-polish.single-sy_member .wp-block-columns.alignwide > .wp-block-column:first-child .prefix { display: block !important; margin-bottom: 3px; }
body.ama-polish.single-sy_member .wp-block-columns.alignwide > .wp-block-column:first-child .prefix br { display: none; }
body.ama-polish.single-sy_member .wp-block-columns.alignwide > .wp-block-column:first-child .is-url-field::before { content: "Website"; display: block; margin-bottom: 3px; font: 600 11.5px/1.5 var(--ama-heading); letter-spacing: .12em; text-transform: uppercase; color: var(--ama-muted); }
body.ama-polish.single-sy_member .wp-block-columns.alignwide > .wp-block-column:first-child > .wp-block-group.has-border-color > .wp-block-buttons { margin: 24px 26px 26px !important; }
/* Photos in a listing's description sit clear of the text, with rounded corners */
body.ama-polish.single-sy_member .wp-block-post-content img { border-radius: var(--ama-radius) !important; height: auto; }
body.ama-polish.single-sy_member .wp-block-post-content :is(.alignleft, img.alignleft, figure.alignleft) { float: left; margin: 6px 28px 18px 0 !important; max-width: 42%; }
body.ama-polish.single-sy_member .wp-block-post-content :is(.alignright, img.alignright, figure.alignright) { float: right; margin: 6px 0 18px 28px !important; max-width: 42%; }
body.ama-polish.single-sy_member .wp-block-post-content::after { content: ""; display: table; clear: both; }

/* ---------- Round six (14 Sep, late) ---------- */
/* The strip's first logo lines up with the header logo below it (both on the header's column) */
body.ama-polish .ama-switcher__list { padding-left: max(7px, calc(2vw - 13px), calc((100% - 1320px) / 2 - 13px)) !important; padding-right: max(7px, calc(2vw - 13px), calc((100% - 1320px) / 2 - 13px)) !important; }

/* Australian Marine's hero: more room for the photo, the text centred in the space, the association bar centred */
body.ama-polish.ama-home.am-assoc-am .wp-block-post-content > .wp-block-cover:first-child { min-height: clamp(760px, 94vh, 980px) !important; padding-top: 124px !important; }
body.ama-polish.ama-home.am-assoc-am .wp-block-post-content > .wp-block-cover:first-child > .wp-block-cover__inner-container > :first-child { margin-top: auto !important; }
body.ama-polish.ama-home.am-assoc-am .wp-block-post-content > .wp-block-cover:first-child .wp-block-buttons { margin-bottom: 56px !important; }
body.ama-polish.ama-home.am-assoc-am .wp-block-post-content > .wp-block-cover:first-child .ama-hero-logos { justify-content: center !important; gap: 18px 56px !important; }

/* Upcoming events: a photo on each card (a navy panel until the event has one), the date badge over its lower edge */
body.ama-polish .ama-event__link { display: grid !important; grid-template-columns: auto 1fr; align-items: start !important; padding: 0 !important; gap: 0 18px !important; overflow: hidden; }
body.ama-polish .ama-event__media { display: block !important; grid-column: 1 / -1; aspect-ratio: 16 / 7; background: linear-gradient(120deg, var(--ama-deep), var(--wp--preset--color--secondary)); overflow: hidden; }
body.ama-polish .ama-event__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
body.ama-polish .ama-event__link:hover .ama-event__media img { transform: scale(1.04); }
body.ama-polish .ama-event__date { margin: -38px 0 24px 26px !important; position: relative; z-index: 1; box-shadow: 0 6px 18px rgba(11, 30, 54, .25); }
body.ama-polish .ama-event__body { padding: 20px 26px 24px 0 !important; }

/* Member listings: photos in the description stay inside the card at a sensible size */
body.ama-polish.single-sy_member .wp-block-post-content :is(img, video, iframe) { max-width: 100% !important; height: auto !important; }
body.ama-polish.single-sy_member .wp-block-post-content .wp-block-image,
body.ama-polish.single-sy_member .wp-block-post-content figure { max-width: min(100%, 460px) !important; margin-left: 0 !important; margin-right: auto !important; }
body.ama-polish.single-sy_member .wp-block-post-content .wp-block-columns .wp-block-image { max-width: 100% !important; }
body.ama-polish.single-sy_member .wp-block-post-content img { max-height: 420px; object-fit: cover; }
body.ama-polish.single-sy_member .wp-block-post-content .wp-block-columns { gap: 28px !important; align-items: flex-start !important; margin: 8px 0 24px !important; }
body.ama-polish.single-sy_member .wp-block-columns.alignwide > .wp-block-column.has-border-color { min-width: 0; overflow: hidden; }

/* Upcoming events: the photo sits on the right of the card at a fixed width; cards without a photo keep the date and text only */
body.ama-polish .ama-event__link { display: flex !important; flex-direction: row !important; align-items: stretch !important; gap: 22px !important; padding: 24px 0 24px 26px !important; }
body.ama-polish .ama-event__media { order: 3; flex: 0 0 34%; aspect-ratio: auto !important; margin: -24px 0 -24px auto !important; background: none !important; min-height: 150px; }
body.ama-polish .ama-event__media:empty { display: none !important; }
body.ama-polish .ama-event__link:not(:has(.ama-event__media img)) { padding-right: 26px !important; }
body.ama-polish .ama-event__date { margin: 0 !important; box-shadow: none !important; align-self: flex-start; }
body.ama-polish .ama-event__body { padding: 0 !important; flex: 1 1 auto; min-width: 0; }
@media (max-width: 640px) { body.ama-polish .ama-event__media { flex-basis: 30%; } }

/* ---------- Events page (the calendar's list): a title band like the other inner pages, and two columns of tidy cards ---------- */
body.ama-polish.post-type-archive-tribe_events .wp-site-blocks > h2.wp-block-heading {
	margin: 0 !important;
	max-width: none !important;
	padding: 40px max(20px, calc((100% - 1184px) / 2)) 38px !important;
	background: linear-gradient(90deg, var(--ama-deep) 0%, var(--wp--preset--color--secondary) 100%) !important;
	color: #fff !important;
	text-align: left !important;
	font: 600 clamp(34px, 3.2vw, 52px)/1.12 var(--ama-heading) !important;
}
body.ama-polish.post-type-archive-tribe_events .wp-site-blocks > .wp-block-group:has(.wp-block-query) { margin: 0 !important; padding: clamp(40px, 5vw, 64px) max(20px, calc((100% - 1184px) / 2)) clamp(56px, 6vw, 96px) !important; }
body.ama-polish.post-type-archive-tribe_events .wp-block-query { max-width: 1184px !important; margin: 0 auto !important; }
body.ama-polish.post-type-archive-tribe_events .wp-block-post-template { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px !important; margin: 0 !important; padding: 0 !important; }
@media (max-width: 900px) { body.ama-polish.post-type-archive-tribe_events .wp-block-post-template { grid-template-columns: 1fr; } }
body.ama-polish.post-type-archive-tribe_events li.tribe_events { margin: 0 !important; }
body.ama-polish.post-type-archive-tribe_events li.tribe_events > .wp-block-columns {
	position: relative;
	height: 100%;
	margin: 0 !important;
	padding: 0 !important;
	gap: 0 !important;
	flex-wrap: nowrap !important;
	align-items: stretch !important;
	background: #fff;
	border: 1px solid var(--ama-line) !important;
	border-top: 3px solid var(--ama-accent) !important;
	border-radius: var(--ama-radius) !important;
	box-shadow: var(--ama-shadow) !important;
	overflow: hidden;
	transition: transform .2s ease, box-shadow .2s ease;
}
body.ama-polish.post-type-archive-tribe_events li.tribe_events > .wp-block-columns:hover { transform: translateY(-3px); box-shadow: var(--ama-shadow-lift) !important; }
body.ama-polish.post-type-archive-tribe_events li.tribe_events > .wp-block-columns > .wp-block-column:first-child { order: 2; flex: 0 0 36% !important; max-width: 36%; }
body.ama-polish.post-type-archive-tribe_events li.tribe_events > .wp-block-columns > .wp-block-column:first-child:not(:has(img)) { display: none !important; }
body.ama-polish.post-type-archive-tribe_events li.tribe_events .wp-block-post-featured-image { margin: 0 !important; height: 100%; }
body.ama-polish.post-type-archive-tribe_events li.tribe_events .wp-block-post-featured-image :is(a, img) { display: block !important; width: 100% !important; height: 100% !important; }
body.ama-polish.post-type-archive-tribe_events li.tribe_events .wp-block-post-featured-image img { object-fit: cover !important; min-height: 170px; border-radius: 0 !important; aspect-ratio: auto !important; }
body.ama-polish.post-type-archive-tribe_events li.tribe_events > .wp-block-columns > .wp-block-column:last-child { order: 1; flex: 1 1 auto !important; max-width: none; min-width: 0; padding: 24px 26px !important; display: flex !important; flex-direction: column; justify-content: center; gap: 6px; }
body.ama-polish.post-type-archive-tribe_events li.tribe_events .tribe-events-schedule { margin: 0 !important; }
body.ama-polish.post-type-archive-tribe_events li.tribe_events .tribe-events-schedule__datetime,
body.ama-polish.post-type-archive-tribe_events li.tribe_events .tribe-events-schedule__datetime span { margin: 0 !important; font: 600 13px/1.4 var(--ama-heading) !important; letter-spacing: .08em; text-transform: uppercase; color: var(--ama-accent-text, var(--ama-muted)) !important; }
body.ama-polish.post-type-archive-tribe_events li.tribe_events .wp-block-post-title { font: 600 21px/1.3 var(--ama-heading) !important; margin: 2px 0 4px !important; }
body.ama-polish.post-type-archive-tribe_events li.tribe_events .wp-block-post-title a { color: var(--wp--preset--color--secondary) !important; text-decoration: none !important; }
body.ama-polish.post-type-archive-tribe_events li.tribe_events .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; }
body.ama-polish.post-type-archive-tribe_events li.tribe_events .tribe-block__venue { margin: 0 !important; }
body.ama-polish.post-type-archive-tribe_events li.tribe_events .tribe-block__venue :is(h3, a, div) { font: 400 15px/1.5 var(--ama-text) !important; color: var(--ama-muted) !important; margin: 0 !important; text-decoration: none !important; }

/* Australian Marine's hero fits the screen, so the association bar is in view (a little of the next section shows below it) */
body.ama-polish.ama-home.am-assoc-am .wp-block-post-content > .wp-block-cover:first-child { min-height: clamp(620px, calc(100vh - 110px), 880px) !important; min-height: clamp(620px, calc(100svh - 110px), 880px) !important; padding-top: 116px !important; }
body.ama-polish.ama-home.am-assoc-am .wp-block-post-content > .wp-block-cover:first-child .wp-block-buttons { margin-bottom: 40px !important; }

/* Events page: the photo fills its column to the height of the card's text (it had sized the card to the photo) */
body.ama-polish.post-type-archive-tribe_events li.tribe_events > .wp-block-columns > .wp-block-column:first-child { position: relative; min-height: 170px; }
body.ama-polish.post-type-archive-tribe_events li.tribe_events > .wp-block-columns > .wp-block-column:first-child .wp-block-post-featured-image { position: absolute !important; inset: 0; height: auto !important; width: auto !important; }
body.ama-polish.post-type-archive-tribe_events li.tribe_events .wp-block-post-featured-image img { min-height: 0 !important; }

/* ---------- Member listing descriptions: even spacing whatever the original formatting ---------- */
body.ama-polish.single-sy_member .wp-block-post-content { font: 400 17px/1.75 var(--ama-text); color: var(--ama-ink); }
body.ama-polish.single-sy_member .wp-block-post-content > :first-child { margin-top: 0 !important; }
body.ama-polish.single-sy_member .wp-block-post-content > :last-child,
body.ama-polish.single-sy_member .wp-block-post-content > :last-child > :last-child { margin-bottom: 0 !important; }
body.ama-polish.single-sy_member .wp-block-post-content :is(p, div):empty,
body.ama-polish.single-sy_member .wp-block-post-content p:has(> br:only-child) { display: none !important; }
body.ama-polish.single-sy_member .wp-block-post-content :is(p, ul, ol, blockquote, figure, .wp-block-columns) { margin-top: 0 !important; margin-bottom: 1.05em !important; }
body.ama-polish.single-sy_member .wp-block-post-content :is(ul, ol) { padding-left: 1.25em !important; }
body.ama-polish.single-sy_member .wp-block-post-content li { font: 400 17px/1.65 var(--ama-text) !important; margin: 0 0 .4em !important; padding-left: .2em; }
body.ama-polish.single-sy_member .wp-block-post-content li:last-child { margin-bottom: 0 !important; }
body.ama-polish.single-sy_member .wp-block-post-content li::marker { color: var(--ama-accent); }
body.ama-polish.single-sy_member .wp-block-post-content :is(h2, h3, h4, h5) { font: 600 20px/1.35 var(--ama-heading) !important; color: var(--wp--preset--color--secondary) !important; margin: 1.5em 0 .5em !important; letter-spacing: 0 !important; text-transform: none !important; }
body.ama-polish.single-sy_member .wp-block-post-content > :is(h2, h3, h4, h5):first-child { margin-top: 0 !important; }
body.ama-polish.single-sy_member .wp-block-post-content :is(strong, b) { font-weight: 600; }
body.ama-polish.single-sy_member .wp-block-post-content a { word-break: break-word; }
body.ama-polish.single-sy_member .wp-block-post-content hr { border: 0; border-top: 1px solid var(--ama-line); margin: 1.6em 0 !important; }
body.ama-polish.single-sy_member .wp-block-columns.alignwide > .wp-block-column.has-border-color { padding-bottom: clamp(26px, 3vw, 36px) !important; }

/* ---------- Footer join buttons: white and raised on every footer (a general button rule had turned them navy on navy) ---------- */
body.ama-polish .ama-foot .ama-foot__cta .wp-block-button:not(.is-style-outline) .wp-block-button__link.wp-element-button { background: #fff !important; color: var(--ama-deep) !important; border: 0 !important; box-shadow: 0 6px 18px rgba(0, 0, 0, .28) !important; transition: transform .15s ease, box-shadow .15s ease; }
body.ama-polish .ama-foot .ama-foot__cta .wp-block-button:not(.is-style-outline) .wp-block-button__link.wp-element-button:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0, 0, 0, .35) !important; color: var(--ama-deep) !important; }
/* Footer social icons: centred, on one row where they fit */
body.ama-polish :is(.ama-foot, footer) .wp-block-social-links { justify-content: center !important; gap: 8px !important; }

/* ---------- Sections: room above a heading that follows other content, a darker lede, contained videos ---------- */
body.ama-polish .ama-section > :not(:first-child):is(h2, .ama-eyebrow) { margin-top: clamp(44px, 4.5vw, 64px) !important; }
body.ama-polish .ama-section > .ama-eyebrow + h2 { margin-top: 0 !important; }
body.ama-polish .ama-lede { font-size: clamp(19px, 1.5vw, 22px) !important; line-height: 1.6 !important; color: var(--ama-ink) !important; max-width: 900px; }
body.ama-polish .wp-block-post-content .wp-block-embed { max-width: 920px; margin-top: 36px !important; margin-bottom: 0 !important; }
body.ama-polish .wp-block-post-content .wp-block-embed iframe { border-radius: var(--ama-radius); }

/* ---------- Single event pages (the calendar's own layout) ---------- */
body.ama-polish.single-tribe_events .tec-block__single-event { width: 100% !important; }
body.ama-polish.single-tribe_events .tribe-events-pg-template { box-sizing: border-box; width: auto !important; max-width: 1184px !important; margin: 0 auto !important; padding: clamp(40px, 5vw, 64px) 20px clamp(56px, 6vw, 96px) !important; }
@media (min-width: 1224px) { body.ama-polish.single-tribe_events .tribe-events-pg-template { padding-left: 0 !important; padding-right: 0 !important; } }
body.ama-polish.single-tribe_events .tribe-events-back { margin: 0 0 14px !important; }
body.ama-polish.single-tribe_events .tribe-events-back a { font: 600 12.5px/1.2 var(--ama-heading) !important; letter-spacing: .1em; text-transform: uppercase; color: var(--wp--preset--color--secondary) !important; text-decoration: none !important; }
body.ama-polish.single-tribe_events h1.tribe-events-single-event-title { font: 600 clamp(34px, 3.2vw, 52px)/1.12 var(--ama-heading) !important; color: var(--wp--preset--color--secondary) !important; margin: 0 0 12px !important; }
body.ama-polish.single-tribe_events .tribe-events-schedule { margin: 0 0 30px !important; padding: 0 !important; background: none !important; border: 0 !important; }
body.ama-polish.single-tribe_events .tribe-events-schedule :is(h2, h3, div, span) { font: 600 15px/1.4 var(--ama-heading) !important; letter-spacing: .06em; text-transform: uppercase; color: var(--ama-accent-text, var(--ama-muted)) !important; margin: 0 !important; }
body.ama-polish.single-tribe_events .tribe-events-event-image { margin: 0 0 34px !important; max-width: 100%; border-radius: var(--ama-radius); overflow: hidden; aspect-ratio: 16 / 7; background: var(--ama-tint); }
body.ama-polish.single-tribe_events .tribe-events-event-image img { display: block; width: 100% !important; max-width: 100% !important; height: 100% !important; object-fit: cover; border-radius: 0 !important; }
body.ama-polish.single-tribe_events .tribe-events-single-event-description { max-width: 820px; margin: 0 0 32px !important; }
body.ama-polish.single-tribe_events .tribe-events-single-event-description :is(p, li) { font: 400 17px/1.75 var(--ama-text) !important; color: var(--ama-ink) !important; }
body.ama-polish.single-tribe_events .tribe-events-single-event-description p { margin: 0 0 1.05em !important; }
body.ama-polish.single-tribe_events .tribe-events-single-event-description p:empty { display: none; }
body.ama-polish.single-tribe_events .tribe-events-single-event-description img { max-width: 100% !important; height: auto !important; border-radius: var(--ama-radius); }
body.ama-polish.single-tribe_events .tribe-events-single-event-description a { color: var(--wp--preset--color--secondary) !important; text-underline-offset: 3px; }
body.ama-polish.single-tribe_events .tribe-events-c-subscribe-dropdown__container { margin: 0 0 28px !important; }
body.ama-polish.single-tribe_events .tribe-events-event-meta { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px 32px; margin: 8px 0 40px !important; padding: 28px 30px !important; background: var(--ama-tint) !important; border: 0 !important; border-radius: var(--ama-radius); }
body.ama-polish.single-tribe_events .tribe-events-event-meta .tribe-events-meta-group { width: auto !important; float: none !important; padding: 0 !important; margin: 0 !important; }
body.ama-polish.single-tribe_events .tribe-events-event-meta :is(.tribe-events-single-section-title, h2, h3) { font: 600 12.5px/1.4 var(--ama-heading) !important; letter-spacing: .12em; text-transform: uppercase; color: var(--ama-muted) !important; margin: 0 0 12px !important; }
body.ama-polish.single-tribe_events .tribe-events-event-meta :is(dt, .tribe-events-meta-label) { font: 600 12px/1.4 var(--ama-heading) !important; letter-spacing: .06em; text-transform: uppercase; color: var(--ama-muted) !important; margin: 10px 0 2px !important; }
body.ama-polish.single-tribe_events .tribe-events-event-meta :is(dd, .tribe-events-meta-value, address, p) { font: 400 16px/1.55 var(--ama-text) !important; color: var(--ama-ink) !important; margin: 0 !important; }
body.ama-polish.single-tribe_events .tribe-events-event-meta a { color: var(--wp--preset--color--secondary) !important; }
body.ama-polish.single-tribe_events .tribe-events-venue-map { grid-column: 1 / -1; width: 100% !important; float: none !important; }
body.ama-polish.single-tribe_events .tribe-events-venue-map iframe { width: 100% !important; border-radius: var(--ama-radius); }
body.ama-polish.single-tribe_events .tribe-events-nav-pagination { border-top: 1px solid var(--ama-line); padding-top: 22px; margin-top: 8px; }
body.ama-polish.single-tribe_events .tribe-events-nav-pagination a { font: 500 15px/1.4 var(--ama-heading) !important; color: var(--wp--preset--color--secondary) !important; text-decoration: none !important; }

/* ---------- News story pages: no side tiles, the photo at its own shape above the story, the story in a readable column ---------- */
body.ama-polish.single-post main .wp-block-columns:has(.wp-block-post-content) { display: block !important; max-width: 1184px !important; width: auto !important; margin: clamp(40px, 5vw, 64px) auto clamp(56px, 6vw, 96px) !important; }
body.ama-polish.single-post main .wp-block-columns:has(.wp-block-post-content) > .wp-block-column:not(:has(.wp-block-post-content)) { display: none !important; }
body.ama-polish.single-post main .wp-block-columns:has(.wp-block-post-content) > .wp-block-column { max-width: none !important; width: auto !important; flex-basis: auto !important; }
body.ama-polish.single-post main .wp-block-group:has(> .wp-block-post-featured-image) { display: block !important; margin: 0 0 32px !important; padding: 0 !important; }
body.ama-polish.single-post main .wp-block-group:has(> .wp-block-post-featured-image) > .wp-block-post-excerpt { display: none !important; }
body.ama-polish.single-post main .wp-block-post-featured-image { width: auto !important; max-width: 820px !important; height: auto !important; margin: 0 !important; }
body.ama-polish.single-post main .wp-block-post-featured-image img { width: auto !important; max-width: 100% !important; height: auto !important; max-height: 560px; object-fit: contain; border-radius: var(--ama-radius) !important; display: block; }
body.ama-polish.single-post main .wp-block-post-content { max-width: 820px !important; margin: 0 !important; }
body.ama-polish.single-post main .wp-block-post-content :is(p, li) { font: 400 17px/1.75 var(--ama-text) !important; color: var(--ama-ink) !important; }
body.ama-polish.single-post main .wp-block-post-content p { margin: 0 0 1.05em !important; }
body.ama-polish.single-post main .wp-block-post-content :is(p, div):empty { display: none !important; }
body.ama-polish.single-post main .wp-block-post-content :is(h2, h3, h4) { font: 600 22px/1.35 var(--ama-heading) !important; color: var(--wp--preset--color--secondary) !important; margin: 1.4em 0 .5em !important; }
body.ama-polish.single-post main .wp-block-post-content > :is(h2, h3, h4):first-child { margin-top: 0 !important; }
body.ama-polish.single-post main .wp-block-post-content li::marker { color: var(--ama-accent); }
body.ama-polish.single-post main .wp-block-post-content img { max-width: 100% !important; height: auto !important; border-radius: var(--ama-radius); }
body.ama-polish.single-post main .wp-block-post-content a { color: var(--wp--preset--color--secondary) !important; text-underline-offset: 3px; }
@media (max-width: 1224px) { body.ama-polish.single-post main .wp-block-columns:has(.wp-block-post-content) { margin-left: 0 !important; margin-right: 0 !important; } }

/* ---------- News lists (Australian Marine news and each association's news): smaller cards, three across ---------- */
body.ama-polish .wp-block-query:not(.ama-news-scroll) .wp-block-post-template:has(> li.type-post) { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 28px !important; max-width: 1184px !important; width: auto !important; margin: clamp(40px, 5vw, 64px) auto clamp(56px, 6vw, 96px) !important; padding: 0 !important; list-style: none; }
@media (max-width: 1024px) { body.ama-polish .wp-block-query:not(.ama-news-scroll) .wp-block-post-template:has(> li.type-post) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 640px) { body.ama-polish .wp-block-query:not(.ama-news-scroll) .wp-block-post-template:has(> li.type-post) { grid-template-columns: 1fr !important; } }
@media (max-width: 1224px) { body.ama-polish .wp-block-query:not(.ama-news-scroll) .wp-block-post-template:has(> li.type-post) { margin-left: 20px !important; margin-right: 20px !important; } }
body.ama-polish .wp-block-query:not(.ama-news-scroll) li.type-post { margin: 0 !important; width: auto !important; max-width: none !important; }
body.ama-polish .wp-block-query:not(.ama-news-scroll) li.type-post > :is(.wp-block-columns, .wp-block-group) { position: relative; display: flex !important; flex-direction: column !important; height: 100%; gap: 0 !important; margin: 0 !important; padding: 0 0 22px !important; background: #fff !important; border: 1px solid var(--ama-line) !important; border-radius: var(--ama-radius) !important; box-shadow: var(--ama-shadow) !important; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
body.ama-polish .wp-block-query:not(.ama-news-scroll) li.type-post > :is(.wp-block-columns, .wp-block-group):hover { transform: translateY(-3px); box-shadow: var(--ama-shadow-lift) !important; }
body.ama-polish .wp-block-query:not(.ama-news-scroll) li.type-post > .wp-block-columns > .wp-block-column { display: contents !important; }
body.ama-polish .wp-block-query:not(.ama-news-scroll) li.type-post .wp-block-post-featured-image { order: 0; width: 100% !important; margin: 0 0 16px !important; aspect-ratio: 16 / 10; overflow: hidden; }
body.ama-polish .wp-block-query:not(.ama-news-scroll) li.type-post .wp-block-post-featured-image :is(a, img) { display: block; width: 100% !important; height: 100% !important; }
body.ama-polish .wp-block-query:not(.ama-news-scroll) li.type-post .wp-block-post-featured-image img { object-fit: cover !important; aspect-ratio: auto !important; border-radius: 0 !important; }
body.ama-polish .wp-block-query:not(.ama-news-scroll) li.type-post .wp-block-template-part { order: 1; margin: 0 22px 6px !important; }
body.ama-polish .wp-block-query:not(.ama-news-scroll) li.type-post .wp-block-template-part .wp-block-group { background: none !important; padding: 0 !important; margin: 0 !important; justify-content: flex-start !important; gap: 8px !important; }
body.ama-polish .wp-block-query:not(.ama-news-scroll) li.type-post :is(.wp-block-post-date, .wp-block-post-terms, .wp-block-post-terms a) { font: 600 12px/1.4 var(--ama-heading) !important; letter-spacing: .08em; text-transform: uppercase; color: var(--ama-accent-text, var(--ama-muted)) !important; text-decoration: none !important; }
body.ama-polish .wp-block-query:not(.ama-news-scroll) li.type-post .wp-block-post-title { order: 2; margin: 0 22px 8px !important; font: 600 19px/1.35 var(--ama-heading) !important; display: -webkit-box !important; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
body.ama-polish .wp-block-query:not(.ama-news-scroll) li.type-post .wp-block-post-title a { color: var(--wp--preset--color--secondary) !important; text-decoration: none !important; }
body.ama-polish .wp-block-query:not(.ama-news-scroll) li.type-post .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; }
body.ama-polish .wp-block-query:not(.ama-news-scroll) li.type-post .wp-block-post-excerpt { order: 3; margin: 0 22px !important; }
body.ama-polish .wp-block-query:not(.ama-news-scroll) li.type-post .wp-block-post-excerpt__excerpt { font-size: 15px !important; line-height: 1.6 !important; color: var(--ama-muted) !important; margin: 0 !important; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
body.ama-polish .wp-block-query:not(.ama-news-scroll) li.type-post :is(.wp-block-post-excerpt__more-text, .wp-block-read-more) { order: 4; margin: auto 22px 0 !important; padding-top: 14px; font: 500 15px/1.3 var(--ama-heading) !important; }
body.ama-polish .wp-block-query:not(.ama-news-scroll) li.type-post :is(.wp-block-post-excerpt__more-text a, .wp-block-read-more) { color: var(--wp--preset--color--secondary) !important; text-decoration: none !important; }
body.ama-polish .wp-block-query:not(.ama-news-scroll) li.type-post .wp-block-spacer { display: none !important; }

/* ---------- Older text pages (publications, guides and the like): tidy rules, headings, links, lists and photo rows ---------- */
body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content :is(p, li) { font: 400 17px/1.75 var(--ama-text); color: var(--ama-ink); }
body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content > p { margin-top: 0 !important; margin-bottom: 1.05em !important; }
body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content :is(p, div):empty { display: none !important; }
body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content hr,
body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content .wp-block-separator { border: 0 !important; border-top: 1px solid var(--ama-line) !important; height: 0 !important; background: none !important; opacity: 1 !important; margin: 44px 0 36px !important; max-width: 820px; }
body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content :is(h2, h3, h4) { font-family: var(--ama-heading) !important; font-weight: 600 !important; color: var(--wp--preset--color--secondary) !important; margin: 1.6em 0 .6em !important; line-height: 1.3 !important; }
body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content h2 { font-size: clamp(24px, 2vw, 30px) !important; }
body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content :is(h3, h4) { font-size: 20px !important; }
body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content :is(h2, h3, h4) a { color: inherit !important; text-decoration: none !important; }
body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content a { color: var(--wp--preset--color--secondary); text-underline-offset: 3px; }
body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content li::marker { color: var(--ama-accent); }
/* A line that is only a link, directly above a row of cover and text (an issue title), reads as a title */
body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content > p:has(> a:only-child):has(+ .wp-block-columns) { margin: 0 0 18px !important; }
body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content > p:has(> a:only-child):has(+ .wp-block-columns) a { font: 600 21px/1.35 var(--ama-heading) !important; color: var(--wp--preset--color--secondary) !important; text-decoration: none !important; }
body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content > p:has(> a:only-child):has(+ .wp-block-columns) a:hover { text-decoration: underline !important; }
body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content .wp-block-columns { gap: 32px !important; align-items: flex-start !important; margin: 0 0 12px !important; }
body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content .wp-block-columns .wp-block-image img { box-shadow: var(--ama-shadow-lift); }
body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content .wp-block-buttons { margin: 8px 0 24px !important; }

/* ---------- r13 Whole-site sweep: one reading column and wide media on every older page ---------- */
/* Every block sits on the 1184 page column; text keeps an 820 reading width, and wide things (tables, galleries, tiles, columns) use the full column */
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content.wp-block-post-content > :not(.alignfull):not(.alignleft):not(.alignright) { margin-left: max(0px, calc((100% - 1184px) / 2)) !important; margin-right: auto !important; max-width: min(820px, 100%) !important; }
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content.wp-block-post-content > :is(.wp-block-gallery, .wp-block-columns, .wp-block-table, .wp-block-query, .wp-block-group:has(> .wp-block-cover), .ngg-galleryoverview, .soliloquy-outer-container, table):not(.alignfull) { max-width: min(1184px, 100%) !important; }
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content.wp-block-post-content > .alignfull:first-child + * { margin-top: 64px !important; }
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content.wp-block-post-content > :last-child:not(.alignfull) { margin-bottom: 80px !important; }
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content.wp-block-post-content :is(p, li, div)[style*="justify"] { text-align: left !important; }

/* Rows of photo tiles (regions, show sections): an even grid of rounded tiles with the title on a dark fade at the bottom, the whole tile clickable */
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content .wp-block-group:has(> .wp-block-cover):not(:has(> :not(.wp-block-cover))) { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important; gap: 24px !important; margin-top: 24px !important; margin-bottom: 0 !important; padding: 0 !important; }
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content .wp-block-group:has(> .wp-block-cover) + .wp-block-group:has(> .wp-block-cover) { margin-top: 24px !important; }
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content .wp-block-group:has(> .wp-block-cover):not(:has(> :not(.wp-block-cover))) > .wp-block-cover { min-height: 300px !important; height: auto !important; width: auto !important; max-width: none !important; margin: 0 !important; padding: 24px 26px !important; border-radius: var(--ama-radius) !important; overflow: hidden; align-items: flex-end !important; justify-content: flex-start !important; box-shadow: var(--ama-shadow-lift); }
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content .wp-block-group:has(> .wp-block-cover):not(:has(> :not(.wp-block-cover))) > .wp-block-cover > .wp-block-cover__background { background: linear-gradient(180deg, rgba(6, 18, 36, 0) 38%, rgba(6, 18, 36, .82) 100%) !important; opacity: 1 !important; }
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content .wp-block-group:has(> .wp-block-cover):not(:has(> :not(.wp-block-cover))) > .wp-block-cover img.wp-block-cover__image-background { transition: transform .5s ease !important; }
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content .wp-block-group:has(> .wp-block-cover):not(:has(> :not(.wp-block-cover))) > .wp-block-cover:hover img.wp-block-cover__image-background { transform: scale(1.04); }
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content .wp-block-group:has(> .wp-block-cover):not(:has(> :not(.wp-block-cover))) > .wp-block-cover > .wp-block-cover__inner-container { width: 100% !important; max-width: none !important; margin: 0 !important; position: static !important; }
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content .wp-block-group:has(> .wp-block-cover):not(:has(> :not(.wp-block-cover))) > .wp-block-cover .wp-block-cover__inner-container :is(p, h2, h3, h4) { font: 600 22px/1.25 var(--ama-heading) !important; color: #fff !important; text-align: left !important; margin: 0 !important; max-width: none !important; }
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content .wp-block-group:has(> .wp-block-cover):not(:has(> :not(.wp-block-cover))) > .wp-block-cover .wp-block-cover__inner-container a { color: #fff !important; text-decoration: none !important; }
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content .wp-block-group:has(> .wp-block-cover):not(:has(> :not(.wp-block-cover))) > .wp-block-cover .wp-block-cover__inner-container a::after { content: " \2192"; font-weight: 400; }
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content .wp-block-group:has(> .wp-block-cover):not(:has(> :not(.wp-block-cover))) > .wp-block-cover .wp-block-cover__inner-container a::before { content: ""; position: absolute; inset: 0; z-index: 2; }

/* Photo galleries: four across (or the gallery's own column count), landscape crops, rounded */
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content .wp-block-gallery.has-nested-images { --ama-gal: 4; gap: 16px !important; display: flex !important; flex-wrap: wrap !important; }
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content .wp-block-gallery.has-nested-images.columns-2 { --ama-gal: 2; }
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content .wp-block-gallery.has-nested-images.columns-3 { --ama-gal: 3; }
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content .wp-block-gallery.has-nested-images > figure.wp-block-image { width: calc((100% - (var(--ama-gal) - 1) * 16px) / var(--ama-gal)) !important; flex: 0 0 calc((100% - (var(--ama-gal) - 1) * 16px) / var(--ama-gal)) !important; margin: 0 !important; max-width: none !important; }
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content .wp-block-gallery.has-nested-images > figure.wp-block-image img { width: 100% !important; height: auto !important; aspect-ratio: 4 / 3 !important; object-fit: cover !important; object-position: 50% 35%; border-radius: 10px !important; box-shadow: none !important; }
@media (max-width: 900px) { html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content .wp-block-gallery.has-nested-images { --ama-gal: 2 !important; } }

/* Tables: the site font throughout, quiet row lines; tables of logos lose their grid lines */
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content table { border-collapse: collapse !important; font-family: var(--ama-text) !important; font-size: 16px !important; }
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content table :is(td, th, a, span, strong, p) { font-family: var(--ama-text) !important; }
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content table :is(td, th) { padding: 10px 14px !important; vertical-align: middle; line-height: 1.5; }
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content figure.wp-block-table:not(.is-style-stripes) table :is(td, th) { border: 0 !important; border-bottom: 1px solid var(--ama-line) !important; }
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content figure.wp-block-table:has(img) table :is(td, th) { border: 0 !important; text-align: center !important; padding: 12px !important; }
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content figure.wp-block-table:has(img) table a { font: 600 15px/1.4 var(--ama-heading) !important; color: var(--wp--preset--color--secondary) !important; text-decoration: none !important; }
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content figure.wp-block-table:has(img) table img { max-height: 110px; width: auto !important; object-fit: contain; border-radius: 8px; }
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content figure.wp-block-table.is-style-stripes thead :is(th, td) { font: 600 16px/1.35 var(--ama-heading) !important; color: var(--wp--preset--color--secondary); border-bottom: 2px solid var(--wp--preset--color--secondary) !important; }
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content figure.wp-block-table.is-style-stripes thead a { text-decoration: none !important; }

/* Coloured panels keep their own text colour (a navy "Become a member" bar had navy text); a panel that is only a link reads as a button */
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content .has-background a { color: inherit !important; }
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content p.has-background.has-base-color { color: #fff !important; }
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content.wp-block-post-content > p.has-background:has(> a:only-child) { width: fit-content !important; padding: 15px 30px !important; border-radius: 999px !important; font: 600 16px/1.3 var(--ama-heading) !important; text-align: left !important; margin-top: 40px !important; box-shadow: var(--ama-shadow-lift); }
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content.wp-block-post-content > p.has-background:has(> a:only-child) a { text-decoration: none !important; font: inherit !important; }

/* Big single photos on the chapter's destination and itinerary pages: no taller than 600px */
html body.ama-polish.ama-std.page:not(.ama-has-preview) main .wp-block-post-content > figure.wp-block-image:not(.ama-natural) img { width: 100% !important; height: auto !important; max-height: 600px; object-fit: cover; }

/* ---------- r14 Sweep, second pass: tile titles, gallery crops, photo sizes and spacing ---------- */
/* Tile titles sit above the dark fade (they were painting underneath it) */
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content .wp-block-group:has(> .wp-block-cover):not(:has(> :not(.wp-block-cover))) > .wp-block-cover > .wp-block-cover__inner-container { position: absolute !important; inset: 0 !important; z-index: 3 !important; display: flex !important; flex-direction: column !important; justify-content: flex-end !important; padding: 24px 26px !important; }
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content .wp-block-group:has(> .wp-block-cover):not(:has(> :not(.wp-block-cover))) > .wp-block-cover > .wp-block-cover__inner-container > * { position: static !important; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }

/* Gallery tiles hold their 4:3 shape even before a photo has loaded */
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content .wp-block-gallery.has-nested-images > figure.wp-block-image { aspect-ratio: 4 / 3 !important; height: auto !important; overflow: hidden !important; border-radius: 10px !important; align-self: flex-start !important; background: var(--ama-line); }
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content .wp-block-gallery.has-nested-images > figure.wp-block-image img { height: 100% !important; }

/* Single photos on older pages: no taller than 640px (portrait covers and photos shrink rather than fill the screen), with room below */
html body.ama-polish.page:not(.ama-has-preview):not(.ama-std) main .wp-block-post-content > figure.wp-block-image:not(.ama-natural) img { max-height: 640px !important; width: auto !important; max-width: 100% !important; height: auto !important; }
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content.wp-block-post-content > figure.wp-block-image { margin-bottom: 22px !important; }
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content.wp-block-post-content > :is(figure.wp-block-embed, .wp-block-video) { margin-bottom: 22px !important; }
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content.wp-block-post-content > .wp-block-group:not(.has-background):not(:has(> .wp-block-cover)) { padding-left: 0 !important; padding-right: 0 !important; }

/* Gallery index: the event gallery tiles use the full column, four across */
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content.wp-block-post-content > .sya-cpg-grid { max-width: min(1184px, 100%) !important; display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 24px !important; }
@media (max-width: 900px) { html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content.wp-block-post-content > .sya-cpg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }

/* Board and committee cards: bullet lists read left, at the card's text size */
html body.ama-polish .ama-person :is(ul, ol) { text-align: left !important; padding-left: 1.2em !important; margin: 6px 0 12px !important; }
html body.ama-polish .ama-person li { font-size: 14.5px !important; line-height: 1.6 !important; text-align: left !important; margin: 0 0 4px !important; }

/* ---------- r15 Sweep, third pass ---------- */
/* Pages with no body of their own (old member directory templates, placeholder parents): no leftover sidebar tiles */
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-columns:has(> .wp-block-column:first-child:not(:has(*))) > .wp-block-column:not(:first-child) { display: none !important; }

/* Older shortcode galleries (thumbnails stacked one per line): a tight grid of square thumbnails across the full column */
html body.ama-polish main .wp-block-post-content.wp-block-post-content > .gallery { max-width: min(1184px, 100%) !important; display: grid !important; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important; gap: 14px !important; margin-top: 8px !important; }
html body.ama-polish main .wp-block-post-content .gallery br { display: none !important; }
html body.ama-polish main .wp-block-post-content .gallery .gallery-item { width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important; float: none !important; }
html body.ama-polish main .wp-block-post-content .gallery .gallery-icon, html body.ama-polish main .wp-block-post-content .gallery .gallery-icon a { display: block !important; width: 100% !important; }
html body.ama-polish main .wp-block-post-content .gallery .gallery-icon img { display: block; width: 100% !important; height: auto !important; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px !important; border: 0 !important; box-shadow: none !important; transition: transform .3s ease, box-shadow .3s ease !important; }
html body.ama-polish main .wp-block-post-content .gallery .gallery-icon a:hover img { transform: translateY(-2px); box-shadow: var(--ama-shadow-lift) !important; }
html body.ama-polish main .wp-block-post-content .gallery .gallery-caption { font-size: 13px; color: var(--ama-muted); margin-top: 6px; }

/* People lists built from the person records (staff pages): one card, not a bordered card inside a card */
html body.ama-polish main .wp-block-post-content .wp-block-post-template > li > .wp-block-group.has-border-color { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; min-height: 0 !important; padding: 0 !important; }
html body.ama-polish main .wp-block-post-content .wp-block-post-template > li.person .wp-block-post-featured-image { padding: 0 !important; margin: 0 0 16px !important; }
html body.ama-polish main .wp-block-post-content .wp-block-post-template > li.person .wp-block-post-featured-image img { width: 100% !important; aspect-ratio: 1 / 1 !important; object-fit: cover; object-position: 50% 22%; border-radius: 0 !important; }
html body.ama-polish main .wp-block-post-content .wp-block-post-template > li.person .wp-block-post-title { font: 600 18px/1.3 var(--ama-heading) !important; margin: 0 16px 4px !important; }
html body.ama-polish main .wp-block-post-content .wp-block-post-template > li.person .wp-block-post-title a { color: var(--ama-ink) !important; text-decoration: none !important; }
html body.ama-polish main .wp-block-post-content .wp-block-post-template > li.person .wp-block-mfb-meta-field-block { font-size: 14.5px !important; color: var(--ama-muted); padding: 0 16px !important; }

/* Photo link cards: a row of three fills the column instead of leaving an empty fourth slot */
body.ama-polish .ama-explore { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important; }

/* AIMEX and ACMG membership benefit pages: the long benefit lists read as a two-column panel across the full column */
html body.ama-polish.page:is(.page-id-20020, .page-id-20027):not(.ama-has-preview) main .wp-block-post-content.wp-block-post-content > ul:has(> li:nth-child(10)) { max-width: min(1184px, 100%) !important; columns: 2; column-gap: 56px; background: var(--ama-tint); border-radius: var(--ama-radius); padding: 30px 36px 18px 56px !important; margin-top: 8px !important; }
html body.ama-polish.page:is(.page-id-20020, .page-id-20027):not(.ama-has-preview) main .wp-block-post-content.wp-block-post-content > ul:has(> li:nth-child(10)) > li { break-inside: avoid; margin: 0 0 12px !important; font-size: 16px !important; line-height: 1.6 !important; }
@media (max-width: 900px) { html body.ama-polish.page:is(.page-id-20020, .page-id-20027):not(.ama-has-preview) main .wp-block-post-content.wp-block-post-content > ul:has(> li:nth-child(10)) { columns: 1; } }

/* ---------- r16 Sweep, fourth pass ---------- */
/* Room between a list and the paragraph after it on older pages */
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content.wp-block-post-content > :is(ul, ol) { margin-bottom: 22px !important; }

/* Pages with no body of their own (old member directory templates, placeholder parents): no leftover sidebar tiles (r15's version nested :has and was ignored) */
html body.ama-polish.page:not(.ama-has-preview) main > .wp-block-columns:not(:has(.wp-block-post-content)) > .wp-block-column[style*="flex-basis:20%"] { display: none !important; }

/* A shortcode gallery wrapped in a paragraph or shortcode block still uses the full column */
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content.wp-block-post-content > :not(.gallery):has(> .gallery) { max-width: min(1184px, 100%) !important; }

/* Checklist: a long list of benefits in two columns with ticks (membership pages) */
body.ama-polish .ama-section ul.ama-checklist { list-style: none !important; padding: 0 !important; margin: 30px 0 0 !important; columns: 2; column-gap: 56px; max-width: none !important; }
body.ama-polish .ama-section ul.ama-checklist > li { position: relative; break-inside: avoid; padding: 0 0 0 34px !important; margin: 0 0 16px !important; font-size: 16px !important; line-height: 1.6 !important; }
body.ama-polish .ama-section ul.ama-checklist > li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--ama-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
body.ama-polish .ama-section ul.ama-checklist > li::marker { content: none; }
@media (max-width: 900px) { body.ama-polish .ama-section ul.ama-checklist { columns: 1; } }

/* Membership options: price cards side by side */
body.ama-polish .ama-pillars .ama-price { font: 600 26px/1.2 var(--ama-heading) !important; color: var(--wp--preset--color--secondary) !important; margin: 0 0 12px !important; }
body.ama-polish .ama-pillars .ama-price small { font: 500 14px/1 var(--ama-text); color: var(--ama-muted); }
body.ama-polish .ama-pillars > .wp-block-column ul { padding-left: 1.1em; margin: 14px 0 18px; }
body.ama-polish .ama-pillars > .wp-block-column ul li { font-size: 15px; line-height: 1.6; margin: 0 0 8px; color: var(--ama-ink); }
body.ama-polish .ama-pillars > .wp-block-column ul li::marker { color: var(--ama-accent); }
body.ama-polish .ama-note { font-size: 15px !important; color: var(--ama-muted); margin-top: 26px !important; }

/* ---------- r17 Sweep, fifth pass ---------- */
/* Text links inside the dark closing panel read white (phone and email were navy on navy) */
body.ama-polish .ama-cta p a:not(.wp-block-button__link),
body.ama-polish .ama-section--deep p a:not(.wp-block-button__link) { color: #fff !important; text-decoration: underline !important; text-decoration-color: rgba(255, 255, 255, .45) !important; text-underline-offset: 3px; }
body.ama-polish .ama-cta p a:not(.wp-block-button__link):hover,
body.ama-polish .ama-section--deep p a:not(.wp-block-button__link):hover { text-decoration-color: #fff !important; }

/* ---------- r18 Sweep, sixth pass: classic images and captions, old headings, logo tables, embeds, judges, 404 ---------- */
/* Classic captioned images (inline width:1200px) stay on the reading column, rounded, with a small caption */
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content.wp-block-post-content > figure.wp-caption { width: auto !important; max-width: min(820px, 100%) !important; margin-top: 8px !important; margin-bottom: 26px !important; }
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content > figure.wp-caption img { width: 100% !important; height: auto !important; display: block; }
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content > :is(figure, p) img:not(.emoji) { border-radius: 10px; }
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content > p > :is(img, a > img).aligncenter { margin-left: 0 !important; margin-right: auto !important; }
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content :is(figcaption, .wp-caption-text) { font: 400 14px/1.5 var(--ama-text) !important; color: var(--ama-muted) !important; text-align: left !important; margin: 8px 0 0 !important; }

/* Old heading styles: no italics or underlines inside headings; a stray H1 in the body reads as a section heading */
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content :is(h1, h2, h3, h4, h5, h6) :is(em, i, u) { font-style: normal !important; text-decoration: none !important; }
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content :is(h1, h2, h3, h4, h5, h6)[style*="underline"],
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content :is(h1, h2, h3, h4, h5, h6) [style*="underline"] { text-decoration: none !important; }
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content.wp-block-post-content > h1 { font: 600 clamp(24px, 2vw, 30px)/1.3 var(--ama-heading) !important; color: var(--wp--preset--color--secondary) !important; margin: 1.4em 0 .6em !important; }
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content.wp-block-post-content > :is(h2, h3, h4, h5, h6) { margin-top: 1.6em !important; }

/* Centred headings and lines inside a left-aligned page read left; doubled divider lines show once; stray inline font sizes follow the body */
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content.wp-block-post-content > :is(h2, h3, h4, h5, h6, p):is(.has-text-align-center, [style*="text-align: center"], [style*="text-align:center"]) { text-align: left !important; }
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content.wp-block-post-content > :is(hr, .wp-block-separator) + :is(hr, .wp-block-separator) { display: none !important; }
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content.wp-block-post-content > p span[style*="font-size"] { font-size: inherit !important; }

/* Photo tiles as the last block keep room above the footer */
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content.wp-block-post-content > .wp-block-group:has(> .wp-block-cover):not(:has(> :not(.wp-block-cover))):last-child { margin-bottom: 80px !important; }

/* Bare HTML tables of logos (charter brokers, training providers): no grid lines, logos at one height, names underneath */
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content.wp-block-post-content > table:has(img) { max-width: min(1184px, 100%) !important; width: 100% !important; table-layout: fixed; margin-bottom: 28px !important; }
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content.wp-block-post-content > table:has(img) :is(td, th) { border: 0 !important; text-align: center !important; vertical-align: middle !important; padding: 18px 14px !important; background: none !important; }
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content.wp-block-post-content > table:has(img) img { max-height: 90px !important; max-width: 100% !important; width: auto !important; height: auto !important; object-fit: contain; border-radius: 0 !important; display: inline-block; }
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content.wp-block-post-content > table:has(img) a { font: 600 15px/1.4 var(--ama-heading) !important; color: var(--wp--preset--color--secondary) !important; text-decoration: none !important; }

/* Classic video and map embeds inside paragraphs: full reading width, 16:9, rounded */
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content.wp-block-post-content > p > iframe { width: 100% !important; height: auto !important; aspect-ratio: 16 / 9; border: 0 !important; border-radius: 12px; display: block; }

/* Old slideshows sit on the left edge of the reading column with round light arrows */
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content :is(.soliloquy-outer-container, .soliloquy-container) { margin-left: 0 !important; margin-right: auto !important; max-width: min(820px, 100%) !important; }
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content .soliloquy-container { border-radius: 12px; overflow: hidden; }
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content .soliloquy-controls-direction a { background-color: rgba(255, 255, 255, .92) !important; border-radius: 50% !important; box-shadow: 0 4px 14px rgba(0, 0, 0, .2); }

/* Awards judging panel: portraits one size and round, each name reads as a heading */
html body.ama-polish.page-id-21535:not(.ama-has-preview) main .wp-block-post-content.wp-block-post-content > figure.wp-block-image { margin: 6px 0 18px !important; }
html body.ama-polish.page-id-21535:not(.ama-has-preview) main .wp-block-post-content.wp-block-post-content > figure.wp-block-image img { width: 180px !important; height: 180px !important; max-height: none !important; object-fit: cover; object-position: 50% 22%; border-radius: 50% !important; box-shadow: var(--ama-shadow); }
html body.ama-polish.page-id-21535:not(.ama-has-preview) main .wp-block-post-content.wp-block-post-content > p:has(+ figure.wp-block-image) { font: 600 21px/1.35 var(--ama-heading) !important; color: var(--wp--preset--color--secondary) !important; margin-top: 8px !important; }

/* The not-found page: on the page column, with a normal-width search box */
body.ama-polish.error404 main .alignwide { max-width: 1184px !important; margin-left: auto !important; margin-right: auto !important; }
body.ama-polish.error404 main .wp-block-search { max-width: 560px; }
body.ama-polish.error404 main .wp-block-search__inside-wrapper { gap: 10px; }
body.ama-polish.error404 main h1 { font-size: clamp(30px, 3vw, 44px) !important; }

/* Photo heroes on the versions' pages: text starts on the page column, in line with the content below */
body.ama-polish.ama-std .wp-block-post-content > .wp-block-cover.alignfull:first-child { padding-left: max(20px, calc((100% - 1184px) / 2)) !important; padding-right: max(20px, calc((100% - 1184px) / 2)) !important; }

/* ---------- r19 Sweep, seventh pass ---------- */
/* Contact Us (Australian Marine): the form sits on the page column under a normal heading, not centred under a navy box */
html body.ama-polish.page-id-612:not(.ama-has-preview) main .wp-block-post-content > .wp-block-group.alignfull { margin-left: 0 !important; margin-right: 0 !important; padding: 0 !important; }
html body.ama-polish.page-id-612:not(.ama-has-preview) main .wp-block-post-content > .wp-block-group.alignfull > .wp-block-group { max-width: 820px !important; margin: 64px 0 80px max(0px, calc((100% - 1184px) / 2)) !important; padding: 0 !important; }
html body.ama-polish.page-id-612:not(.ama-has-preview) main .wp-block-post-content :is(h1, h2, h3, p).has-background { background: none !important; color: var(--wp--preset--color--secondary) !important; padding: 0 !important; text-align: left !important; font: 600 clamp(24px, 2vw, 30px)/1.3 var(--ama-heading) !important; margin: 0 0 24px !important; }
html body.ama-polish.page-id-612:not(.ama-has-preview) main .wp-block-post-content form :is(input, textarea, select) { border-radius: 8px !important; }
html body.ama-polish.page-id-612:not(.ama-has-preview) main .wp-block-post-content form :is(button, input[type="submit"]) { margin-left: 0 !important; }
html body.ama-polish.page-id-612:not(.ama-has-preview) main .wp-block-post-content form .wpforms-submit-container,
html body.ama-polish.page-id-612:not(.ama-has-preview) main .wp-block-post-content form .gform_footer { text-align: left !important; }

/* Full-column galleries: the event gallery index and shortcode galleries were still held to the reading width (the reading-width rule was more specific) */
html body.ama-polish.ama-polish.page.page:not(.ama-has-preview):not(.ama-x) main .wp-block-post-content.wp-block-post-content.wp-block-post-content > :is(.sya-cpg-grid, .gallery),
html body.ama-polish.ama-polish.page.page:not(.ama-has-preview):not(.ama-x) main .wp-block-post-content.wp-block-post-content.wp-block-post-content > :not(.gallery):has(> .gallery) { max-width: min(1184px, 100%) !important; }

/* Judges panel portraits: one round size (r18's rule lost to the general photo height rule) */
html body.ama-polish.ama-polish.page.page-id-21535:not(.ama-has-preview):not(.ama-std):not(.ama-x) main .wp-block-post-content.wp-block-post-content.wp-block-post-content > figure.wp-block-image:not(.ama-natural) img { width: 180px !important; height: 180px !important; max-height: none !important; max-width: 180px !important; object-fit: cover !important; object-position: 50% 22%; border-radius: 50% !important; }

/* Tables of logos become an even grid of logo tiles: every logo the same height, empty cells dropped */
html body.ama-polish.ama-polish.page:not(.ama-has-preview):not(.ama-x) main .wp-block-post-content.wp-block-post-content > table:has(img) { display: block !important; table-layout: auto !important; }
html body.ama-polish.ama-polish.page:not(.ama-has-preview):not(.ama-x) main .wp-block-post-content.wp-block-post-content > table:has(img) tbody { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
html body.ama-polish.ama-polish.page:not(.ama-has-preview):not(.ama-x) main .wp-block-post-content.wp-block-post-content > table:has(img) tr { display: contents !important; }
html body.ama-polish.ama-polish.page:not(.ama-has-preview):not(.ama-x) main .wp-block-post-content.wp-block-post-content > table:has(img) :is(td, th) { display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 130px; padding: 20px !important; border: 1px solid var(--ama-line) !important; border-radius: var(--ama-radius); background: #fff !important; box-shadow: var(--ama-shadow); width: auto !important; height: auto !important; }
html body.ama-polish.ama-polish.page:not(.ama-has-preview):not(.ama-x) main .wp-block-post-content.wp-block-post-content > table:has(img) :is(td, th):not(:has(img)):not(:has(a)) { display: none !important; }
html body.ama-polish.ama-polish.page:not(.ama-has-preview):not(.ama-x) main .wp-block-post-content.wp-block-post-content > table:has(img) img { height: 64px !important; max-height: 64px !important; width: auto !important; max-width: 88% !important; object-fit: contain !important; border-radius: 0 !important; }

/* People cards from the person records (committee, staff): the photo fills the top of the card edge to edge */
html body.ama-polish main .wp-block-post-content .wp-block-post-template > li.person > .wp-block-group > .wp-block-group { padding: 0 !important; align-items: stretch !important; gap: 0 !important; }
html body.ama-polish main .wp-block-post-content .wp-block-post-template > li.person .wp-block-post-featured-image { width: 100% !important; max-width: none !important; }
html body.ama-polish main .wp-block-post-content .wp-block-post-template > li.person .wp-block-post-featured-image :is(a, img) { display: block; width: 100% !important; }
html body.ama-polish main .wp-block-post-content .wp-block-post-template > li.person :is(.wp-block-post-title, .wp-block-mfb-meta-field-block) { text-align: center !important; }

/* The first block on an older page keeps its distance from the title band */
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content.wp-block-post-content > :first-child:not(.alignfull) { margin-top: 56px !important; }

/* Bare HTML tables of text (conference programs and the like): quiet row lines, left-aligned cells, the site font */
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content.wp-block-post-content > table:not(:has(img)) { max-width: min(1184px, 100%) !important; width: 100% !important; border: 0 !important; margin-bottom: 28px !important; }
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content.wp-block-post-content > table:not(:has(img)) :is(td, th) { border: 0 !important; border-bottom: 1px solid var(--ama-line) !important; text-align: left !important; vertical-align: top !important; padding: 12px 14px !important; background: none !important; }
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content.wp-block-post-content > table:not(:has(img)) tr:first-child :is(td, th) { font-weight: 600; color: var(--wp--preset--color--secondary); border-bottom: 2px solid var(--wp--preset--color--secondary) !important; }
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content.wp-block-post-content > table:not(:has(img)) :is(td, th) :is(u, a) { text-decoration: none !important; }

/* ---------- r20 Sweep, eighth pass ---------- */
/* Government contacts (SYA): each government's name reads as a heading and its links sit in a two-column list of link tiles */
html body.ama-polish.page-id-214:not(.ama-has-preview) main .wp-block-post-content.wp-block-post-content > p:has(+ ul) { font: 600 20px/1.35 var(--ama-heading) !important; color: var(--wp--preset--color--secondary) !important; margin: 36px 0 12px !important; }
html body.ama-polish.page-id-214:not(.ama-has-preview) main .wp-block-post-content.wp-block-post-content > p:has(+ ul) :is(strong, b) { font-weight: inherit; }
html body.ama-polish.ama-polish.page-id-214:not(.ama-has-preview):not(.ama-x) main .wp-block-post-content.wp-block-post-content > ul { max-width: min(1184px, 100%) !important; list-style: none !important; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; margin: 0 0 10px !important; }
html body.ama-polish.page-id-214:not(.ama-has-preview) main .wp-block-post-content > ul > li { margin: 0 !important; padding: 0 !important; }
html body.ama-polish.page-id-214:not(.ama-has-preview) main .wp-block-post-content > ul > li::marker { content: none; }
html body.ama-polish.page-id-214:not(.ama-has-preview) main .wp-block-post-content > ul > li > a { display: block; height: 100%; padding: 14px 18px; border: 1px solid var(--ama-line); border-radius: 10px; background: #fff; box-shadow: var(--ama-shadow); font: 500 15.5px/1.45 var(--ama-text); color: var(--ama-ink) !important; text-decoration: none !important; overflow-wrap: anywhere; transition: transform .2s ease, box-shadow .2s ease !important; }
html body.ama-polish.page-id-214:not(.ama-has-preview) main .wp-block-post-content > ul > li > a:hover { transform: translateY(-2px); box-shadow: var(--ama-shadow-lift); }

/* An old slideshow directly in the page keeps to the reading column (the wide-block rule was more specific) */
html body.ama-polish.ama-polish.page.page:not(.ama-has-preview):not(.ama-x) main .wp-block-post-content.wp-block-post-content.wp-block-post-content > .soliloquy-outer-container { max-width: min(820px, 100%) !important; }

/* GBR homepage testimonials: the quote cards line up with their heading */
body.ama-polish.am-assoc-gbr.ama-home .ama-section .wp-block-columns:has(.wp-block-quote) { gap: 24px !important; }
body.ama-polish.am-assoc-gbr.ama-home .ama-section .wp-block-columns:has(.wp-block-quote) > .wp-block-column { padding: 0 !important; margin: 0 !important; }
body.ama-polish.am-assoc-gbr.ama-home .ama-section .wp-block-quote { margin: 0 !important; max-width: none !important; height: 100%; box-sizing: border-box; }

/* ---------- r21 Sweep, ninth pass ---------- */
/* People cards: the inner card had 22px side margins inside the list item, so photos never reached the card edges */
html body.ama-polish main .wp-block-post-content .wp-block-post-template > li.person > .wp-block-group { margin: 0 !important; width: 100% !important; min-height: 0 !important; }
html body.ama-polish main .wp-block-post-content .wp-block-post-template > li.person > .wp-block-group > .wp-block-group { width: 100% !important; }
html body.ama-polish main .wp-block-post-content .wp-block-post-template > li.person > .wp-block-group > .wp-block-group > .wp-block-group { padding: 0 14px !important; }

/* Logo tiles: one tile height, and logos sized against the tile rather than their link (small logos were collapsing) */
html body.ama-polish.ama-polish.page:not(.ama-has-preview):not(.ama-x) main .wp-block-post-content.wp-block-post-content > table:has(img) :is(td, th) { min-height: 0 !important; height: 150px !important; }
html body.ama-polish.ama-polish.page:not(.ama-has-preview):not(.ama-x) main .wp-block-post-content.wp-block-post-content > table:has(img) :is(td, th) a:has(img) { display: flex !important; align-items: center; justify-content: center; width: 100%; }
html body.ama-polish.ama-polish.page:not(.ama-has-preview):not(.ama-x) main .wp-block-post-content.wp-block-post-content > table:has(img) img { max-width: 210px !important; min-width: 90px; }
html body.ama-polish.ama-polish.page:not(.ama-has-preview):not(.ama-x) main .wp-block-post-content.wp-block-post-content > table:has(img) :is(td, th) br { display: none; }

/* ---------- r22 Sweep, tenth pass ---------- */
/* Government contacts: each entry (department name and its web address) is one tile; the address is a small link inside it */
html body.ama-polish.page-id-214:not(.ama-has-preview) main .wp-block-post-content > ul > li { padding: 14px 18px !important; border: 1px solid var(--ama-line); border-radius: 10px; background: #fff; box-shadow: var(--ama-shadow); font: 500 15.5px/1.45 var(--ama-text) !important; color: var(--ama-ink) !important; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
html body.ama-polish.page-id-214:not(.ama-has-preview) main .wp-block-post-content > ul > li > a { display: inline !important; height: auto !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; transform: none !important; font: 400 14px/1.4 var(--ama-text) !important; color: var(--wp--preset--color--secondary) !important; text-decoration: underline !important; text-decoration-color: var(--ama-line) !important; text-underline-offset: 3px; overflow-wrap: anywhere; }
html body.ama-polish.page-id-214:not(.ama-has-preview) main .wp-block-post-content > ul > li > a:hover { text-decoration-color: currentColor !important; }
html body.ama-polish.page-id-214:not(.ama-has-preview) main .wp-block-post-content > ul > li br { display: none; }

/* ---------- r23 Sweep, eleventh pass ---------- */
/* Logo tiles: the old cells pad themselves with blank paragraphs, and the logo files are squares with white space around the mark.
   Blank paragraphs go, and each logo gets a fixed box so square and wide logos read at a similar size. */
html body.ama-polish.ama-polish.page:not(.ama-has-preview):not(.ama-x) main .wp-block-post-content.wp-block-post-content > table:has(img) :is(td, th) > p:not(:has(a, img)) { display: none !important; }
html body.ama-polish.ama-polish.page:not(.ama-has-preview):not(.ama-x) main .wp-block-post-content.wp-block-post-content > table:has(img) :is(td, th) > p { margin: 0 !important; width: 100%; display: flex; justify-content: center; }
html body.ama-polish.ama-polish.page:not(.ama-has-preview):not(.ama-x) main .wp-block-post-content.wp-block-post-content > table:has(img) :is(td, th) { height: 170px !important; }
html body.ama-polish.ama-polish.page:not(.ama-has-preview):not(.ama-x) main .wp-block-post-content.wp-block-post-content > table:has(img) img { width: 100% !important; max-width: 200px !important; min-width: 0 !important; height: 120px !important; max-height: 120px !important; object-fit: contain !important; margin: 0 auto !important; }

/* "Download the Great Barrier Reef Superyacht Guide" at the foot of the chapter's pages: a button, not a bold line */
body.ama-polish .wp-block-post-content p.ama-go { margin-top: 36px !important; }
body.ama-polish .wp-block-post-content p.ama-go a { display: inline-flex !important; align-items: center; gap: 8px; padding: 13px 24px !important; border-radius: 999px !important; background: var(--wp--preset--color--secondary) !important; color: #fff !important; font: 600 15px/1.2 var(--ama-heading) !important; text-decoration: none !important; box-shadow: var(--ama-shadow); transition: transform .2s ease, box-shadow .2s ease !important; }
body.ama-polish .wp-block-post-content p.ama-go a:hover { transform: translateY(-2px); box-shadow: var(--ama-shadow-lift); }
body.ama-polish .wp-block-post-content p.ama-go :is(strong, b) { font-weight: inherit !important; }

/* Old forms on older pages (event registrations and the like): rounded fields and a navy pill button */
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content form :is(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="url"], select, textarea) { border: 1px solid #cfd8e3 !important; border-radius: 8px !important; padding: 10px 12px !important; font: 400 16px/1.4 var(--ama-text) !important; background: #fff !important; box-shadow: none !important; max-width: 100%; }
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content form :is(input[type="submit"], button[type="submit"], button:not([type])):not(.wp-block-search__button) { background: var(--wp--preset--color--secondary) !important; color: #fff !important; border: 0 !important; border-radius: 999px !important; padding: 13px 28px !important; font: 600 15px/1.2 var(--ama-heading) !important; cursor: pointer; box-shadow: var(--ama-shadow); }
html body.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content form label { font: 500 15px/1.4 var(--ama-text); color: var(--ama-ink); }

/* Photo heroes on the versions' pages: a stronger fade behind the text so it reads over bright water and sand */
body.ama-polish.ama-std .wp-block-post-content > .wp-block-cover.alignfull:first-child > .wp-block-cover__background { background: linear-gradient(90deg, rgba(3, 25, 40, .74) 0%, rgba(3, 25, 40, .5) 42%, rgba(3, 25, 40, .12) 78%) !important; opacity: 1 !important; }
body.ama-polish.ama-std .wp-block-post-content > .wp-block-cover.alignfull:first-child .wp-block-cover__inner-container :is(h1, h2, p) { text-shadow: 0 1px 14px rgba(0, 0, 0, .35); }

/* The last block on an older page always keeps room above the footer (a coloured button panel was sitting on it) */
html body.ama-polish.ama-polish.page:not(.ama-has-preview):not(.ama-x) main .wp-block-post-content.wp-block-post-content.wp-block-post-content > :last-child:not(.alignfull) { margin-bottom: 80px !important; }

/* ---------- r24 Sweep, twelfth pass ---------- */
/* Room above the footer when the page ends in a hidden empty paragraph (the last visible block was sitting on the footer) */
html body.ama-polish.ama-polish.page:not(.ama-has-preview):not(.ama-x) main .wp-block-post-content.wp-block-post-content.wp-block-post-content > :has(+ p:empty:last-child):not(.alignfull),
html body.ama-polish.ama-polish.page:not(.ama-has-preview):not(.ama-x) main .wp-block-post-content.wp-block-post-content.wp-block-post-content > :has(+ p:empty + p:empty:last-child):not(.alignfull) { margin-bottom: 80px !important; }

/* News lists: every card photo the same 16:10 shape (taller photos were stretching some cards), titles cut cleanly after three lines */
body.ama-polish main .wp-block-query .wp-block-post-template > li .wp-block-post-featured-image { height: auto !important; }
body.ama-polish main .wp-block-query .wp-block-post-template > li .wp-block-post-featured-image img { width: 100% !important; height: auto !important; aspect-ratio: 16 / 10 !important; object-fit: cover !important; display: block; }
body.ama-polish main .wp-block-query .wp-block-post-template > li h2.wp-block-post-title { display: -webkit-box !important; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden !important; max-height: none !important; }

/* Page numbers under news and other lists: round buttons, the current page filled */
body.ama-polish main .wp-block-query-pagination { gap: 8px !important; align-items: center; margin-top: 40px !important; flex-wrap: wrap; }
body.ama-polish main .wp-block-query-pagination-numbers { display: flex !important; gap: 8px; flex-wrap: wrap; }
body.ama-polish main .wp-block-query-pagination :is(.page-numbers, .wp-block-query-pagination-next, .wp-block-query-pagination-previous) { display: inline-flex !important; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 14px !important; border: 1px solid var(--ama-line); border-radius: 999px; background: #fff; font: 600 15px/1 var(--ama-heading) !important; color: var(--wp--preset--color--secondary) !important; text-decoration: none !important; margin: 0 !important; }
body.ama-polish main .wp-block-query-pagination .page-numbers.current { background: var(--wp--preset--color--secondary); border-color: var(--wp--preset--color--secondary); color: #fff !important; }
body.ama-polish main .wp-block-query-pagination .page-numbers.dots { border: 0; background: none; min-width: 20px; padding: 0 !important; }
body.ama-polish main .wp-block-query-pagination a:hover { border-color: var(--wp--preset--color--secondary); }

/* ---------- r25 Kristina's review of the form, events and publications ---------- */
/* Membership form: centred on the page, the line above it centred to match, room above the footer */
html body.ama-polish.ama-polish .wp-block-post-content.wp-block-post-content > .ama-zform { box-sizing: border-box; width: 100% !important; max-width: 860px !important; margin: 8px auto 104px !important; }
html body.ama-polish.ama-polish .wp-block-post-content.wp-block-post-content > p:has(+ .ama-zform) { max-width: 860px !important; margin-left: auto !important; margin-right: auto !important; text-align: center; }

/* Event pages: one centred column for the title, photo, text and details */
html body.ama-polish.single-tribe_events .tribe-events-pg-template .tribe-events-single { max-width: 880px !important; margin: 0 auto !important; }
html body.ama-polish.single-tribe_events .tribe-events-single > .tribe_events { flex-direction: column !important; align-items: stretch !important; }
html body.ama-polish.single-tribe_events .tribe-events-single .tribe-events-event-image { aspect-ratio: 16 / 9 !important; }
html body.ama-polish.single-tribe_events .tribe-events-single .tribe-events-single-event-description { max-width: none !important; }
html body.ama-polish.single-tribe_events .tribe-events-single .tribe-events-single-event-description:empty { display: none !important; }
/* The details panel runs the full column: dates side by side, the venue beside them, no stray rules through it */
html body.ama-polish.single-tribe_events .tribe-events-single .tribe-events-event-meta { box-sizing: border-box; width: 100% !important; align-self: stretch !important; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important; gap: 22px 40px !important; margin: 12px 0 44px !important; padding: 28px 32px !important; position: relative; }
html body.ama-polish.single-tribe_events .tribe-events-single .tribe-events-event-meta::before,
html body.ama-polish.single-tribe_events .tribe-events-single .tribe-events-event-meta::after { content: none !important; display: none !important; border: 0 !important; }
html body.ama-polish.single-tribe_events .tribe-events-single .tribe-events-event-meta .tribe-events-single-section-title { font: 600 12.5px/1.4 var(--ama-heading) !important; letter-spacing: .12em !important; text-transform: uppercase !important; color: var(--ama-accent-text, var(--ama-muted)) !important; margin: 0 0 12px !important; padding: 0 !important; border: 0 !important; }
html body.ama-polish.single-tribe_events .tribe-events-single .tribe-events-meta-group-details .tribe-events-meta-list { display: flex !important; flex-wrap: wrap; gap: 6px 36px; }
html body.ama-polish.single-tribe_events .tribe-events-single .tribe-events-event-meta :is(ul, li) { list-style: none !important; margin: 0 !important; padding: 0 !important; }
html body.ama-polish.single-tribe_events .tribe-events-single .tribe-events-event-meta li { font: 400 16px/1.55 var(--ama-text) !important; color: var(--ama-ink) !important; }
html body.ama-polish.single-tribe_events .tribe-events-single .tribe-events-event-meta .tribe-events-meta-label { display: block; margin: 0 0 2px !important; }
html body.ama-polish.single-tribe_events .tribe-events-single .tribe-events-event-meta .tribe-venue { font-weight: 600 !important; }
html body.ama-polish.single-tribe_events .tribe-events-single .tribe-events-event-meta address { font-style: normal !important; }
html body.ama-polish.single-tribe_events .tribe-events-single abbr.tribe-events-abbr { text-decoration: none !important; border: 0 !important; cursor: auto; }
/* One rule above the previous and next event links, not two */
html body.ama-polish.single-tribe_events .tribe-events-single #tribe-events-footer { border-top: 0 !important; margin: 0 !important; padding: 0 !important; }

/* Australia InDepth: each series a heading over a grid of episode cards, every video the same 16:9 size */
html body.ama-polish.ama-polish .wp-block-post-content.wp-block-post-content > .ama-series { box-sizing: border-box; width: 100% !important; max-width: 1184px !important; margin: 64px 0 0 !important; }
html body.ama-polish.ama-polish .wp-block-post-content.wp-block-post-content > .ama-series:last-child { margin-bottom: 96px !important; }
body.ama-polish .ama-series > .ama-series__num { font: 600 12.5px/1.4 var(--ama-heading) !important; letter-spacing: .12em; text-transform: uppercase; color: var(--ama-accent-text, var(--ama-muted)) !important; margin: 0 0 6px !important; }
body.ama-polish .ama-series > h2.ama-series__title { font: 600 clamp(26px, 2.4vw, 34px)/1.2 var(--ama-heading) !important; color: var(--wp--preset--color--secondary) !important; margin: 0 0 28px !important; padding: 0 !important; border: 0 !important; }
body.ama-polish .ama-episodes { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px !important; margin: 0 !important; }
body.ama-polish .ama-episode { display: flex !important; flex-direction: column; margin: 0 !important; background: #fff; border: 1px solid var(--ama-line); border-radius: var(--ama-radius); overflow: hidden; box-shadow: 0 6px 20px rgba(11, 30, 54, .06); }
body.ama-polish .ama-episode > .ama-episode__video { position: relative; aspect-ratio: 16 / 9; margin: 0 !important; background: #0b1e36; }
body.ama-polish .ama-episode > .ama-episode__video iframe { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none !important; border: 0 !important; border-radius: 0 !important; display: block; }
body.ama-polish .ama-episode > :not(.ama-episode__video) { padding-left: 26px !important; padding-right: 26px !important; }
body.ama-polish .ama-episode > .ama-episode__num { font: 600 12px/1.4 var(--ama-heading) !important; letter-spacing: .12em; text-transform: uppercase; color: var(--ama-muted) !important; margin: 22px 0 4px !important; }
body.ama-polish .ama-episode > h3.ama-episode__title { font: 600 21px/1.3 var(--ama-heading) !important; color: var(--wp--preset--color--secondary) !important; margin: 0 0 12px !important; }
body.ama-polish .ama-episode > p:not(.ama-episode__num) { font: 400 15.5px/1.65 var(--ama-text) !important; color: var(--ama-ink) !important; margin: 0 0 12px !important; }
body.ama-polish .ama-episode > :last-child { margin-bottom: 26px !important; }
@media (max-width: 781px) { body.ama-polish .ama-episodes { grid-template-columns: 1fr; } }

/* Publications: a tile for each publication, its cover on a soft panel, the whole tile a link */
html body.ama-polish.ama-polish .wp-block-post-content.wp-block-post-content > .ama-pubs { box-sizing: border-box; width: 100% !important; max-width: 1184px !important; display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px !important; margin: 44px 0 104px !important; }
body.ama-polish .ama-pub { position: relative; display: flex !important; flex-direction: column; margin: 0 !important; background: #fff; border: 1px solid var(--ama-line); border-radius: var(--ama-radius); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
body.ama-polish .ama-pub:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(11, 30, 54, .12); }
body.ama-polish .ama-pub > .ama-pub__cover { box-sizing: border-box; display: flex; align-items: center; justify-content: center; aspect-ratio: 6 / 5; padding: 30px; margin: 0 !important; background: linear-gradient(160deg, #eef3f8 0%, #dde7f1 100%); }
body.ama-polish .ama-pub > .ama-pub__cover img { display: block; width: auto !important; height: auto !important; max-width: 100% !important; max-height: 100% !important; aspect-ratio: auto !important; object-fit: contain; border-radius: 3px !important; box-shadow: 0 12px 26px rgba(11, 30, 54, .24) !important; margin: 0 !important; }
body.ama-polish .ama-pub > :not(.ama-pub__cover) { padding-left: 24px !important; padding-right: 24px !important; }
body.ama-polish .ama-pub > .ama-pub__kicker { font: 600 12px/1.4 var(--ama-heading) !important; letter-spacing: .12em; text-transform: uppercase; color: var(--ama-accent-text, var(--ama-muted)) !important; margin: 22px 0 6px !important; }
body.ama-polish .ama-pub > h2.ama-pub__title { font: 600 20px/1.3 var(--ama-heading) !important; margin: 0 0 10px !important; padding-top: 0 !important; border: 0 !important; }
body.ama-polish .ama-pub > h2.ama-pub__title a { color: var(--wp--preset--color--secondary) !important; text-decoration: none !important; }
body.ama-polish .ama-pub > h2.ama-pub__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
body.ama-polish .ama-pub > .ama-pub__desc { font: 400 15.5px/1.6 var(--ama-text) !important; color: var(--ama-ink) !important; margin: 0 0 16px !important; }
body.ama-polish .ama-pub > .ama-pub__go { margin: auto 0 24px !important; font: 600 14.5px/1.3 var(--ama-heading) !important; color: var(--wp--preset--color--secondary) !important; }
body.ama-polish .ama-pub > .ama-pub__go::after { content: " \2192"; }
body.ama-polish .ama-pub:hover > h2.ama-pub__title a { text-decoration: underline !important; text-underline-offset: 3px; }
@media (max-width: 1000px) { html body.ama-polish.ama-polish .wp-block-post-content.wp-block-post-content > .ama-pubs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { html body.ama-polish.ama-polish .wp-block-post-content.wp-block-post-content > .ama-pubs { grid-template-columns: 1fr; } }

/* ---------- r26 Centring the form, the publication tiles and the episode grids ---------- */
/* The id inside :is() only lifts these above the older page rules that pin blocks to the left; nothing carries that id */
html body.ama-polish.ama-polish .wp-block-post-content.wp-block-post-content > :is(.ama-zform, .ama-pubs, .ama-series, #ama-centre) { margin-left: auto !important; margin-right: auto !important; }
html body.ama-polish.ama-polish .wp-block-post-content.wp-block-post-content > :is(p, #ama-centre):has(+ .ama-zform) { margin-left: auto !important; margin-right: auto !important; }

/* ---------- r27 Overnight layout pass ---------- */
/* Superyacht Marinas: the map runs the full page width at a comfortable height, with room above the footer */
html body.ama-polish.ama-polish .wp-block-post-content.wp-block-post-content > :is(mappress-map, .mapp-layout, #ama-centre) { box-sizing: border-box; display: block; width: 100% !important; max-width: 1184px !important; height: clamp(460px, 62vh, 680px) !important; margin: 8px auto 104px !important; border: 1px solid var(--ama-line) !important; border-radius: var(--ama-radius) !important; overflow: hidden; }

/* News cards: one card edge, not two (the list item and the card inside it both drew a border and shadow) */
body.ama-polish .wp-block-post-template > li.wp-block-post:has(> .wp-block-group) { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; border-radius: 0 !important; }
body.ama-polish .wp-block-post-template > li.wp-block-post > .wp-block-group { height: 100%; box-sizing: border-box; display: flex !important; flex-direction: column; }
/* The date and categories line: categories sit under the date, so a wrapped line never starts with a stray dot */
body.ama-polish .wp-block-post-template > li .wp-block-template-part > .wp-block-group { flex-direction: column !important; align-items: flex-start !important; gap: 2px !important; }
body.ama-polish .wp-block-post-template > li .wp-block-post-terms__prefix { display: none !important; }

/* A news story: the photo and text in one centred reading column, the title band lined up with it, less empty space before More news */
body.ama-polish.single-post main .wp-block-group:has(> .wp-block-post-featured-image) { justify-content: center !important; }
body.ama-polish.single-post main .wp-block-post-featured-image,
body.ama-polish.single-post main .wp-block-post-content { margin-left: auto !important; margin-right: auto !important; }
body.ama-polish.single-post main .wp-block-post-featured-image { max-width: 820px !important; width: 100% !important; }
body.ama-polish.single-post main .wp-block-columns:has(.wp-block-post-content) { margin-bottom: 48px !important; }
body.ama-polish.single-post .wp-block-group.has-secondary-background-color > .wp-block-group { box-sizing: border-box; max-width: calc(820px + 8vw) !important; margin-left: auto !important; margin-right: auto !important; }
body.ama-polish.single-post .wp-block-group.has-secondary-background-color > .wp-block-group > :is(h1, .wp-block-post-title) { max-width: none !important; }
body.ama-polish.single-post .wp-site-blocks > .wp-block-group:has(> .wp-block-query) { padding-top: 24px !important; }
body.ama-polish.single-post .wp-site-blocks > .wp-block-group:has(> .wp-block-query) > :is(h2, .wp-block-heading, .wp-block-query) { box-sizing: border-box; max-width: 1184px !important; width: 100%; margin-left: auto !important; margin-right: auto !important; padding-left: 0 !important; padding-right: 0 !important; }
body.ama-polish.single-post .wp-block-query:not(main) .wp-block-post-template > li :is(.wp-block-post-date, .wp-block-post-terms) { padding-left: 22px !important; padding-right: 22px !important; }

/* Page not found: a centred message with a real search box */
body.ama-polish.error404 main { box-sizing: border-box; max-width: 760px !important; margin: 0 auto !important; padding: clamp(64px, 9vw, 120px) 20px clamp(80px, 10vw, 140px) !important; text-align: center; }
body.ama-polish.error404 main h1 { text-align: center !important; font: 600 clamp(30px, 3vw, 44px)/1.2 var(--ama-heading) !important; color: var(--wp--preset--color--secondary) !important; margin: 0 0 14px !important; }
body.ama-polish.error404 main p { font: 400 17px/1.7 var(--ama-text) !important; color: var(--ama-muted) !important; margin: 0 0 26px !important; }
body.ama-polish.error404 main .wp-block-search { margin: 0 auto !important; }
body.ama-polish.error404 main .wp-block-search__inside-wrapper { gap: 8px; }
body.ama-polish.error404 main .wp-block-search__input { border: 1px solid var(--ama-line) !important; border-radius: 999px !important; padding: 12px 20px !important; text-transform: none !important; letter-spacing: 0 !important; font: 400 16px/1.4 var(--ama-text) !important; background: #fff !important; }

/* Member pages: an empty detail no longer shows as a blank grey pill */
body.ama-polish .wp-block-mfb-meta-field-block:has(.value:empty),
body.ama-polish .wp-block-mfb-meta-field-block:empty { display: none !important; }

/* Event details: the website link wraps cleanly */
html body.ama-polish.single-tribe_events .tribe-events-single .tribe-events-event-url a { overflow-wrap: anywhere; }

/* ---------- r28 Overnight layout pass, second round ---------- */
/* Page numbers under every list: centred, with Previous and Next as the same round buttons */
body.ama-polish .wp-block-query-pagination { justify-content: center !important; width: 100%; max-width: 1184px; margin-left: auto !important; margin-right: auto !important; }
body.ama-polish .wp-block-query-pagination :is(.wp-block-query-pagination-next, .wp-block-query-pagination-previous) { display: inline-flex !important; align-items: center; height: 42px; padding: 0 18px !important; border: 1px solid var(--ama-line) !important; border-radius: 999px !important; background: #fff !important; font: 600 15px/1 var(--ama-heading) !important; color: var(--wp--preset--color--secondary) !important; text-decoration: none !important; margin: 0 !important; }
/* A news story: no tall empty band between More news and the footer */
body.ama-polish.single-post .wp-site-blocks > .wp-block-group:has(> .wp-block-query) { padding-bottom: 80px !important; margin-bottom: 0 !important; }
body.ama-polish.single-post .wp-site-blocks > .wp-block-group:has(> .wp-block-query) .wp-block-query { margin-bottom: 0 !important; }
body.ama-polish.single-post .wp-site-blocks > .wp-block-group:has(> .wp-block-query) .wp-block-query > :not(.wp-block-post-template) { display: none !important; }

/* Older pages (the old page template): the reading column is centred on the page instead of pinned left; wide tables and galleries keep the full width */
html body.ama-polish.page:not(.ama-std):not(.ama-has-preview) main .wp-block-columns > .wp-block-column > .wp-block-post-content > :is(*, #ama-centre) { margin-left: auto !important; margin-right: auto !important; }
html body.ama-polish.page:not(.ama-std):not(.ama-has-preview) main .wp-block-columns > .wp-block-column > .wp-block-post-content > .wp-block-group > :is(p, h2, h3, h4, ul, ol, figure, #ama-centre) { margin-left: auto !important; margin-right: auto !important; }
/* Pasted fonts (Arial, Open Sans) take the site's text face */
body.ama-polish main .wp-block-post-content [style*="font-family"] { font-family: inherit !important; }
body.ama-polish main .wp-block-post-content p strong { font-weight: 600; }
/* Rules between sections: one light line, never two in a row */
body.ama-polish main .wp-block-post-content hr { border: 0 !important; border-top: 1px solid var(--ama-line) !important; background: none !important; height: 0 !important; opacity: 1 !important; margin-top: 44px !important; margin-bottom: 44px !important; }
body.ama-polish main .wp-block-post-content hr + hr { display: none !important; }

/* The navy Join panel lines up with the 1184px page area, its buttons an even width */
html body.ama-polish.ama-polish :is(.ama-section.ama-cta, #ama-centre) { box-sizing: border-box; max-width: 1184px !important; margin-left: auto !important; margin-right: auto !important; }
body.ama-polish .ama-section.ama-cta .wp-block-button__link { min-width: 200px; justify-content: center; text-align: center; }

/* Milestones on the About pages: a timeline, the year in a navy chip beside each line */
body.ama-polish .ama-section > ul.wp-block-list:has(> li > strong:first-child) { list-style: none !important; max-width: 820px !important; margin: 8px 0 0 !important; padding: 0 !important; border-left: 2px solid var(--ama-line); }
body.ama-polish .ama-section > ul.wp-block-list:has(> li > strong:first-child) > li { position: relative; margin: 0 !important; padding: 12px 0 12px 28px !important; font: 400 16px/1.6 var(--ama-text) !important; color: var(--ama-ink) !important; }
body.ama-polish .ama-section > ul.wp-block-list:has(> li > strong:first-child) > li::before { content: ""; position: absolute; left: -7px; top: 19px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--wp--preset--color--secondary); }
body.ama-polish .ama-section > ul.wp-block-list:has(> li > strong:first-child) > li > strong:first-child { display: inline-block; margin-right: 10px; padding: 3px 10px; border-radius: 999px; background: var(--wp--preset--color--secondary); color: #fff !important; font: 600 13px/1.4 var(--ama-heading) !important; letter-spacing: .02em; }

/* Footer social icons sit flush with the column on every version */
body.ama-polish .ama-foot .wp-block-social-links { justify-content: flex-start !important; margin-left: 0 !important; padding-left: 0 !important; }

/* ---------- r29 Overnight layout pass, third round ---------- */
/* Great Barrier Reef photo heroes: the words line up with the header logo and the page below */
body.ama-polish.ama-hero-first.am-assoc-gbr .wp-block-post-content > .wp-block-cover.alignfull:first-child > .wp-block-cover__inner-container { box-sizing: border-box; width: 100% !important; max-width: 1184px !important; margin-left: auto !important; margin-right: auto !important; padding-left: 0 !important; padding-right: 0 !important; }
@media (max-width: 1224px) { body.ama-polish.ama-hero-first.am-assoc-gbr .wp-block-post-content > .wp-block-cover.alignfull:first-child > .wp-block-cover__inner-container { padding-left: 20px !important; padding-right: 20px !important; } }

/* Photo galleries: every gallery the same, three across, photos cropped to one shape with rounded corners (two photos, two across) */
html body.ama-polish main .wp-block-post-content .wp-block-gallery.has-nested-images:not([class*="ama-"]) { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 16px !important; max-width: 1184px !important; margin-left: auto !important; margin-right: auto !important; }
html body.ama-polish main .wp-block-post-content .wp-block-gallery.has-nested-images:not([class*="ama-"]):has(> figure:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; max-width: 820px !important; }
html body.ama-polish main .wp-block-post-content .wp-block-gallery.has-nested-images:not([class*="ama-"]) > figure.wp-block-image { width: auto !important; max-width: none !important; margin: 0 !important; flex: none !important; }
html body.ama-polish main .wp-block-post-content .wp-block-gallery.has-nested-images:not([class*="ama-"]) > figure.wp-block-image img { width: 100% !important; height: 100% !important; aspect-ratio: 4 / 3 !important; object-fit: cover !important; border-radius: var(--ama-radius) !important; }
html body.ama-polish main .wp-block-post-content .gallery { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 16px !important; max-width: 1184px !important; margin: 0 auto 32px !important; }
html body.ama-polish main .wp-block-post-content .gallery .gallery-caption { display: none !important; }
/* The Photo Gallery index: tiles like the rest of the site, photo on top, title under it */
body.ama-polish .sya-cpg-cell { border-radius: var(--ama-radius) !important; border: 1px solid var(--ama-line) !important; box-shadow: none !important; background: #fff !important; overflow: hidden; align-items: stretch !important; padding: 0 !important; transition: transform .2s ease, box-shadow .2s ease; }
body.ama-polish .sya-cpg-cell:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(11, 30, 54, .12) !important; }
body.ama-polish .sya-cpg-image { order: -1 !important; padding: 0 !important; flex: none !important; aspect-ratio: 16 / 10; overflow: hidden; margin: 0 !important; }
body.ama-polish .sya-cpg-image img { width: 100% !important; height: 100% !important; object-fit: cover !important; border-radius: 0 !important; display: block; }
body.ama-polish .sya-cpg-title { text-align: left !important; margin: 14px 18px 18px !important; font: 600 16px/1.35 var(--ama-heading) !important; color: var(--wp--preset--color--secondary) !important; text-wrap: balance; }
/* Long page titles wrap evenly instead of leaving a year alone on the second line */
body.ama-polish :is(h1, .wp-block-post-title) { text-wrap: balance; }
html body.ama-polish main .wp-block-post-content .gallery > br { display: none !important; }
html body.ama-polish main .wp-block-post-content .gallery .gallery-item { width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important; float: none !important; }
html body.ama-polish main .wp-block-post-content .gallery .gallery-item img { display: block; width: 100% !important; height: auto !important; aspect-ratio: 4 / 3 !important; object-fit: cover !important; border: 0 !important; border-radius: var(--ama-radius) !important; }
@media (max-width: 900px) { html body.ama-polish main .wp-block-post-content :is(.wp-block-gallery.has-nested-images:not([class*="ama-"]), .gallery) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }

/* Tiles that link to a topic but have no photo (Vessels Entering Australia): navy tiles in an even grid, the title wrapping inside */
html body.ama-polish main .wp-block-post-content .wp-block-group.is-layout-grid:has(> .wp-block-cover:not(:has(img)):not(:has(video))) { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 20px !important; max-width: 1184px !important; margin-left: auto !important; margin-right: auto !important; }
html body.ama-polish main .wp-block-post-content .wp-block-group.is-layout-grid > .wp-block-cover:not(:has(img)):not(:has(video)) { min-height: 150px !important; border-radius: var(--ama-radius) !important; overflow: hidden; align-items: flex-end !important; padding: 26px !important; transition: transform .2s ease, box-shadow .2s ease; }
html body.ama-polish.ama-polish.page main .wp-block-post-content .wp-block-group.is-layout-grid > .wp-block-cover:not(:has(img)):not(:has(video)) > :is(.wp-block-cover__background, #ama-centre) { background: linear-gradient(135deg, #013275 0%, #0b4c96 100%) !important; opacity: 1 !important; }
html body.ama-polish main .wp-block-post-content .wp-block-group.is-layout-grid > .wp-block-cover:not(:has(img)):not(:has(video)):hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(11, 30, 54, .18); }
html body.ama-polish main .wp-block-post-content .wp-block-group.is-layout-grid > .wp-block-cover:not(:has(img)):not(:has(video)) .wp-block-cover__inner-container { width: 100% !important; padding: 0 !important; }
html body.ama-polish main .wp-block-post-content .wp-block-group.is-layout-grid > .wp-block-cover:not(:has(img)):not(:has(video)) p { text-align: left !important; font: 600 20px/1.3 var(--ama-heading) !important; color: #fff !important; margin: 0 !important; overflow-wrap: anywhere; text-shadow: none !important; }
html body.ama-polish main .wp-block-post-content .wp-block-group.is-layout-grid > .wp-block-cover:not(:has(img)):not(:has(video)) p a { color: #fff !important; text-decoration: none !important; }
html body.ama-polish main .wp-block-post-content .wp-block-group.is-layout-grid > .wp-block-cover:not(:has(img)):not(:has(video)) p a::after { content: ""; position: absolute; inset: 0; }
@media (max-width: 900px) { html body.ama-polish main .wp-block-post-content .wp-block-group.is-layout-grid:has(> .wp-block-cover:not(:has(img)):not(:has(video))) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }

/* Older pages: text never sits hard against a table, columns or picture above it */
html body.ama-polish.page:not(.ama-std):not(.ama-has-preview) main .wp-block-post-content > :is(.wp-block-table, table, .wp-block-columns, figure) + :is(p, h2, h3, h4) { margin-top: 32px !important; }

/* Membership benefits tables: section rows as tinted bands, not underlined like links; lighter stripes */
body.ama-polish main .wp-block-post-content table td[colspan] { background: var(--ama-tint) !important; font: 600 15px/1.4 var(--ama-heading) !important; color: var(--wp--preset--color--secondary) !important; }
body.ama-polish main .wp-block-post-content table td[colspan] :is(span, strong, u) { text-decoration: none !important; color: inherit !important; }
body.ama-polish main .wp-block-post-content .wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: #f9fbfd !important; }
body.ama-polish main .wp-block-post-content .wp-block-table { border: 1px solid var(--ama-line); border-radius: var(--ama-radius); overflow: hidden; }

/* Member directory: filters and results on the 1184px page line, room above the footer, lighter tiles */
html body.ama-polish main :is(.search-filter-query, .wp-block-columns.alignwide:has(.search-filter-field), #ama-centre) { box-sizing: border-box; max-width: 1184px !important; margin-left: auto !important; margin-right: auto !important; }
html body.ama-polish main .search-filter-query { margin-bottom: 96px !important; }
html body.ama-polish main .search-filter-query li.wp-block-post > .wp-block-group.has-border-color { border-radius: var(--ama-radius) !important; border-color: var(--ama-line) !important; box-shadow: 0 1px 3px rgba(1, 50, 117, .06), 0 6px 18px rgba(11, 30, 54, .05) !important; }
html body.ama-polish main .search-filter-field--control-type-reset { flex: 0 0 auto !important; min-width: 88px; white-space: nowrap; }

/* Events list: a card with no photo drops its empty photo column, so the title and venue use the full width */
body.ama-polish .wp-block-post-template li .wp-block-columns > .wp-block-column:not(:has(*)) { display: none !important; }

/* Plain tables on older pages (conference program and the like): bordered, left-aligned, a navy header row, soft stripes */
html body.ama-polish.page:not(.ama-std):not(.ama-has-preview) main .wp-block-post-content .wp-block-table:not(:has(img)) table { border: 0 !important; border-collapse: separate !important; border-spacing: 0; width: 100%; }
html body.ama-polish.page:not(.ama-std):not(.ama-has-preview) main .wp-block-post-content .wp-block-table:not(:has(img)) :is(td, th) { text-align: left !important; padding: 13px 18px !important; border: 0 !important; border-bottom: 1px solid var(--ama-line) !important; font: 400 15.5px/1.5 var(--ama-text) !important; vertical-align: top; }
html body.ama-polish.page:not(.ama-std):not(.ama-has-preview) main .wp-block-post-content .wp-block-table:not(:has(img)) :is(thead th, tr:first-child > td):not([colspan]) { background: var(--wp--preset--color--secondary) !important; color: #fff !important; font: 600 13.5px/1.4 var(--ama-heading) !important; letter-spacing: .03em; }
html body.ama-polish.page:not(.ama-std):not(.ama-has-preview) main .wp-block-post-content .wp-block-table:not(:has(img)) tr:first-child > td :is(a, strong, span) { color: #fff !important; text-decoration: none !important; }

/* Pasted text alignment and underlines that aren't links */
body.ama-polish main .wp-block-post-content [style*="justify"] { text-align: left !important; }
body.ama-polish main .wp-block-post-content u:not(a u) { text-decoration: none !important; }
body.ama-polish main .wp-block-post-content a { overflow-wrap: anywhere; }
/* Older embedded videos and captioned pictures fill the reading column */
body.ama-polish main .wp-block-post-content :is(iframe[src*="youtube"], iframe[src*="vimeo"]) { width: 100% !important; max-width: 820px; height: auto !important; aspect-ratio: 16 / 9; border-radius: var(--ama-radius); display: block; }
body.ama-polish main .wp-block-post-content .wp-caption { width: 100% !important; max-width: 820px !important; }
body.ama-polish main .wp-block-post-content .wp-caption img { width: 100% !important; height: auto !important; border-radius: var(--ama-radius); }
body.ama-polish main .wp-block-post-content .wp-caption-text { font: 400 13px/1.5 var(--ama-text) !important; color: var(--ama-muted) !important; margin-top: 8px !important; }

/* The news strip on the Superyacht Australia home page: the third card is never clipped at the edge */
body.ama-polish .ama-news-scroll .wp-block-post-template { padding-right: 2px !important; padding-left: 1px !important; }

/* ---------- r30 Overnight layout pass, fourth round ---------- */
/* Photo galleries: three across everywhere (two photos, two across) */
html body.ama-polish.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content .wp-block-gallery.has-nested-images { --ama-gal: 3 !important; }
html body.ama-polish.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content .wp-block-gallery.has-nested-images:has(> figure:nth-child(2):last-child) { --ama-gal: 2 !important; }
@media (max-width: 900px) { html body.ama-polish.ama-polish.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content .wp-block-gallery.has-nested-images { --ama-gal: 2 !important; } }
/* The Photo Gallery index starts a comfortable distance below the title band */
html body.ama-polish.ama-polish.page.page:not(.ama-has-preview):not(.ama-x) main .wp-block-post-content.wp-block-post-content.wp-block-post-content > :is(.sya-cpg-grid, #ama-centre) { margin-top: clamp(40px, 5vw, 64px) !important; }

/* Topic tiles with no photo: three across, titles wrap inside the tile */
html body.ama-polish.ama-polish.page main .wp-block-post-content :is(.wp-block-group.is-layout-grid, #ama-centre):has(> .wp-block-cover:not(:has(img)):not(:has(video))) { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 20px !important; margin-bottom: 20px !important; }
html body.ama-polish.ama-polish.page main .wp-block-post-content .wp-block-group.is-layout-grid > .wp-block-cover:not(:has(img)):not(:has(video)) :is(.wp-block-cover__inner-container, p, #ama-centre) { max-width: 100% !important; white-space: normal !important; }
html body.ama-polish.ama-polish.page main .wp-block-post-content .wp-block-group.is-layout-grid > .wp-block-cover:not(:has(img)):not(:has(video)) p { font-size: 20px !important; }
@media (max-width: 900px) { html body.ama-polish.ama-polish.page main .wp-block-post-content :is(.wp-block-group.is-layout-grid, #ama-centre):has(> .wp-block-cover:not(:has(img)):not(:has(video))) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }

/* Tables: the navy header styling only applies to a real first row, never to a section band */
html body.ama-polish.page:not(.ama-std):not(.ama-has-preview) main .wp-block-post-content .wp-block-table:not(:has(img)) table:has(thead) tbody tr:first-child > td:not([colspan]) { background: transparent !important; color: var(--ama-ink) !important; font: 400 15.5px/1.5 var(--ama-text) !important; letter-spacing: 0; }
html body.ama-polish.page:not(.ama-std):not(.ama-has-preview) main .wp-block-post-content .wp-block-table:not(:has(img)) table :is(td, th)[colspan] :is(a, strong, span, u) { color: var(--wp--preset--color--secondary) !important; text-decoration: none !important; }
html body.ama-polish.page:not(.ama-std):not(.ama-has-preview) main .wp-block-post-content .wp-block-table:not(:has(img)) table:has(thead) tbody tr:first-child > td:not([colspan]) :is(a, strong, span) { color: inherit !important; }

/* Publication tiles on the sub-pages (magazine issues, directory editions, guides): the same tile as the Publications page */
body.ama-polish .ama-pub > h3.ama-pub__title { font: 600 20px/1.3 var(--ama-heading) !important; margin: 0 0 10px !important; padding-top: 0 !important; border: 0 !important; }
body.ama-polish .ama-pub > h3.ama-pub__title a { color: var(--wp--preset--color--secondary) !important; text-decoration: none !important; }
body.ama-polish .ama-pub > h3.ama-pub__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
body.ama-polish .ama-pub:hover > h3.ama-pub__title a { text-decoration: underline !important; text-underline-offset: 3px; }
body.ama-polish .ama-pubs--editions .ama-pub > .ama-pub__desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
html body.ama-polish.ama-polish .wp-block-post-content.wp-block-post-content > :is(.ama-pubs, #ama-centre) { margin-left: auto !important; margin-right: auto !important; }
/* A single publication: its cover beside the text, with a button to read it */
html body.ama-polish.ama-polish .wp-block-post-content.wp-block-post-content > :is(.ama-pub-feature, #ama-centre) { box-sizing: border-box; display: grid !important; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; max-width: 1184px !important; margin: 8px auto 104px !important; }
body.ama-polish .ama-pub-feature__cover { display: block; padding: 28px; border-radius: var(--ama-radius); background: linear-gradient(160deg, #eef3f8 0%, #dde7f1 100%); }
body.ama-polish .ama-pub-feature__cover img { display: block; width: 100% !important; height: auto !important; border-radius: 3px !important; box-shadow: 0 12px 26px rgba(11, 30, 54, .24) !important; }
body.ama-polish .ama-pub-feature__text > p { max-width: 720px; margin: 0 0 1em !important; }
body.ama-polish .ama-pub-feature__text .wp-block-buttons { margin-top: 24px !important; }
@media (max-width: 781px) { html body.ama-polish.ama-polish .wp-block-post-content.wp-block-post-content > :is(.ama-pub-feature, #ama-centre) { grid-template-columns: 1fr; } }

/* Member directory: a company without its own logo shows an empty logo box, not another member's logo */
html body.ama-polish main .search-filter-query li.wp-block-post:not(:has(a[href*="pantaenius"])) img[src*="antaenius" i] { visibility: hidden !important; }

/* ---------- r31 Overnight layout pass, fifth round ---------- */
/* Topic tiles with no photo (Vessels Entering Australia): three across, titles wrap inside the tile, the arrow follows the title
   (the r29/r30 versions of these rules nested :has() inside :has(), which browsers ignore) */
html body.ama-polish.ama-polish.page main .wp-block-post-content :is(.wp-block-group, #ama-centre):has(> .wp-block-cover):not(:has(img)):not(:has(video)) { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 20px !important; margin-bottom: 20px !important; }
@media (max-width: 900px) { html body.ama-polish.ama-polish.page main .wp-block-post-content :is(.wp-block-group, #ama-centre):has(> .wp-block-cover):not(:has(img)):not(:has(video)) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
html body.ama-polish.ama-polish.page main .wp-block-post-content .wp-block-group:has(> .wp-block-cover):not(:has(img)) > .wp-block-cover .wp-block-cover__inner-container :is(p, a, #ama-centre) { white-space: normal !important; overflow-wrap: break-word !important; font-size: 20px !important; line-height: 1.3 !important; }
html body.ama-polish.ama-polish.page main .wp-block-post-content .wp-block-group:has(> .wp-block-cover):not(:has(img)) > .wp-block-cover .wp-block-cover__inner-container a::after { position: static !important; inset: auto !important; }

/* A single publication page: the cover and text start a comfortable distance below the title band */
html body.ama-polish.ama-polish .wp-block-post-content.wp-block-post-content > :is(.ama-pub-feature, #ama-centre) { margin-top: clamp(40px, 5vw, 64px) !important; }

/* ---------- r32 Overnight layout pass, sixth round ---------- */
/* Testimonials: quote cards in two columns across the page instead of one long column */
html body.ama-polish.ama-polish .wp-block-post-content.wp-block-post-content > :is(.ama-quotes, #ama-centre) { box-sizing: border-box; columns: 2; column-gap: 28px; max-width: 1184px !important; width: 100%; margin: 8px auto 96px !important; }
body.ama-polish .ama-quotes > .wp-block-quote { break-inside: avoid; display: block; margin: 0 0 28px !important; }
@media (max-width: 781px) { html body.ama-polish.ama-polish .wp-block-post-content.wp-block-post-content > :is(.ama-quotes, #ama-centre) { columns: 1; } }
/* Photos grouped into a gallery on the Great Barrier Reef pages sit on the page line with room around them */
html body.ama-polish.ama-polish .wp-block-post-content.wp-block-post-content > :is(.wp-block-gallery.ama-photo-run, #ama-centre) { max-width: 1184px !important; margin: 36px auto 44px !important; }
/* A gallery set to two columns (four photos) keeps two across */
html body.ama-polish.ama-polish.page:not(.ama-has-preview) main .wp-block-post-content .wp-block-gallery.has-nested-images.columns-2.columns-2 { --ama-gal: 2 !important; }
html body.ama-polish.ama-polish .wp-block-post-content .wp-block-gallery.ama-photo-run { display: flex !important; flex-wrap: wrap !important; gap: 16px !important; }
html body.ama-polish.ama-polish .wp-block-post-content .wp-block-gallery.ama-photo-run > figure.wp-block-image { width: calc((100% - (var(--ama-gal, 3) - 1) * 16px) / var(--ama-gal, 3)) !important; flex: 0 0 calc((100% - (var(--ama-gal, 3) - 1) * 16px) / var(--ama-gal, 3)) !important; margin: 0 !important; max-width: none !important; }
html body.ama-polish.ama-polish .wp-block-post-content .wp-block-gallery.ama-photo-run > figure.wp-block-image img { width: 100% !important; height: 100% !important; aspect-ratio: 4 / 3 !important; object-fit: cover !important; border-radius: var(--ama-radius) !important; }

/* ---------- r33 Overnight layout pass, seventh round ---------- */
/* Testimonials: the quote cards start a comfortable distance below the photo hero */
html body.ama-polish.ama-polish .wp-block-post-content.wp-block-post-content > :is(.ama-quotes, #ama-centre) { margin-top: clamp(40px, 5vw, 64px) !important; }

/* Destinations: a photo tile for each destination, the whole tile a link */
html body.ama-polish.ama-polish .wp-block-post-content.wp-block-post-content > :is(.ama-dest-tiles, #ama-centre) { box-sizing: border-box; display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px !important; width: 100%; max-width: 1184px !important; margin: 40px auto 72px !important; }
body.ama-polish .ama-dest-tile { position: relative; margin: 0 !important; border-radius: var(--ama-radius); overflow: hidden; background: #0b1e36; aspect-ratio: 4 / 3; transition: transform .2s ease, box-shadow .2s ease; }
body.ama-polish .ama-dest-tile:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(11, 30, 54, .18); }
body.ama-polish .ama-dest-tile > .ama-dest-tile__photo { position: absolute; inset: 0; margin: 0 !important; }
body.ama-polish .ama-dest-tile > .ama-dest-tile__photo img { width: 100% !important; height: 100% !important; object-fit: cover !important; border-radius: 0 !important; display: block; transition: transform .5s ease; }
body.ama-polish .ama-dest-tile:hover > .ama-dest-tile__photo img { transform: scale(1.04); }
body.ama-polish .ama-dest-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 18, 36, 0) 40%, rgba(6, 18, 36, .82) 100%); pointer-events: none; }
body.ama-polish .ama-dest-tile > h3.ama-dest-tile__title { position: absolute; left: 22px; right: 22px; bottom: 18px; z-index: 2; margin: 0 !important; font: 600 20px/1.3 var(--ama-heading) !important; color: #fff !important; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
body.ama-polish .ama-dest-tile > h3.ama-dest-tile__title a { color: #fff !important; text-decoration: none !important; }
body.ama-polish .ama-dest-tile > h3.ama-dest-tile__title a::before { content: ""; position: absolute; inset: -400px -22px -18px; }
@media (max-width: 900px) { html body.ama-polish.ama-polish .wp-block-post-content.wp-block-post-content > :is(.ama-dest-tiles, #ama-centre) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
html body.ama-polish.ama-polish .wp-block-post-content.wp-block-post-content > :is(h2.ama-dest-video__title, .ama-dest-video, #ama-centre) { max-width: 820px !important; margin-left: auto !important; margin-right: auto !important; }
body.ama-polish .ama-dest-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--ama-radius); overflow: hidden; margin-bottom: 96px !important; background: #0b1e36; }
body.ama-polish .ama-dest-video iframe { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0; }

/* Contact pages: a card for each contact, on a tinted panel line */
html body.ama-polish.ama-polish .wp-block-post-content.wp-block-post-content > :is(.ama-contact-cards, #ama-centre) { box-sizing: border-box; display: grid !important; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px !important; width: 100%; max-width: 1184px !important; margin: 32px auto 104px !important; }
body.ama-polish .ama-contact-card { margin: 0 !important; padding: 26px 26px 22px !important; background: #fff; border: 1px solid var(--ama-line); border-radius: var(--ama-radius); box-shadow: 0 6px 20px rgba(11, 30, 54, .05); }
body.ama-polish .ama-contact-card > .ama-contact-card__label { font: 600 12px/1.4 var(--ama-heading) !important; letter-spacing: .12em; text-transform: uppercase; color: var(--ama-accent-text, var(--ama-muted)) !important; margin: 0 0 10px !important; }
body.ama-polish .ama-contact-card > p:not(.ama-contact-card__label) { font: 400 16.5px/1.55 var(--ama-text) !important; color: var(--ama-ink) !important; margin: 0 0 4px !important; overflow-wrap: anywhere; }
body.ama-polish .ama-contact-card a { color: var(--wp--preset--color--secondary) !important; text-decoration: none !important; font-weight: 500; }
body.ama-polish .ama-contact-card a:hover { text-decoration: underline !important; text-underline-offset: 3px; }

/* ---------- r34 Morning pass ---------- */
/* Superyacht Australia Membership: "What are members involved in?" as a tidy set of tags instead of one long comma list */
body.ama-polish .wp-block-post-content ul.ama-tags { list-style: none !important; display: flex !important; flex-wrap: wrap; gap: 8px !important; padding: 0 !important; margin: 14px 0 8px !important; }
body.ama-polish .wp-block-post-content ul.ama-tags > li { list-style: none !important; margin: 0 !important; padding: 6px 13px !important; background: color-mix(in srgb, var(--wp--preset--color--secondary, #013275) 6%, #fff); border: 1px solid color-mix(in srgb, var(--wp--preset--color--secondary, #013275) 16%, #fff); border-radius: 999px; font: 500 14px/1.35 var(--ama-text) !important; color: var(--ama-ink) !important; }
body.ama-polish .wp-block-post-content ul.ama-tags > li::before { content: none !important; display: none !important; }
body.ama-polish .wp-block-post-content ul.ama-tags > li::marker { content: ""; }

/* ---------- r35 Morning pass, second round ---------- */
/* Awards Judging Panel: a card for each judge, round photo beside the name, role and bio */
html body.ama-polish.ama-polish .wp-block-post-content.wp-block-post-content > :is(.ama-bios, #ama-centre) { box-sizing: border-box; display: grid !important; gap: 20px !important; width: 100%; max-width: 980px !important; margin: 36px auto 104px !important; }
body.ama-polish .ama-bio { display: grid !important; grid-template-columns: 120px minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 30px; align-items: start; margin: 0 !important; padding: 30px 32px !important; background: #fff; border: 1px solid var(--ama-line); border-radius: var(--ama-radius); box-shadow: var(--ama-shadow); }
body.ama-polish .ama-bio > .ama-bio__photo { grid-column: 1; grid-row: 1 / span 3; margin: 0 !important; }
body.ama-polish .ama-bio > .ama-bio__photo img { width: 120px !important; height: 120px !important; max-width: none !important; object-fit: cover !important; border-radius: 50% !important; display: block; box-shadow: 0 0 0 4px var(--ama-tint); }
body.ama-polish .ama-bio > h3.ama-bio__name { grid-column: 2; grid-row: 1; margin: 2px 0 4px !important; font: 600 21px/1.3 var(--ama-heading) !important; color: var(--ama-navy) !important; }
body.ama-polish .ama-bio > p.ama-bio__role { grid-column: 2; grid-row: 2; margin: 0 0 14px !important; font: 500 14.5px/1.45 var(--ama-text) !important; color: var(--ama-muted) !important; }
body.ama-polish .ama-bio > .ama-bio__text { grid-column: 2; grid-row: 3; margin: 0 !important; }
body.ama-polish .ama-bio > .ama-bio__text > p { margin: 0 0 12px !important; font: 400 16px/1.65 var(--ama-text) !important; color: var(--ama-ink) !important; }
body.ama-polish .ama-bio > .ama-bio__text > p:last-child { margin-bottom: 0 !important; }
@media (max-width: 700px) {
	body.ama-polish .ama-bio { grid-template-columns: 1fr; grid-template-rows: none; padding: 24px 22px !important; }
	body.ama-polish .ama-bio > * { grid-column: 1 !important; grid-row: auto !important; }
	body.ama-polish .ama-bio > .ama-bio__photo { margin-bottom: 16px !important; }
}

/* ---------- r36 Morning pass, third round ---------- */
/* Join panels (AIMEX, ACMG, Superyacht Australia): the panel sits on the 1184px page line, so its side padding stays fixed
   instead of growing with the screen (on wide screens the text was squeezed to one letter a line, Kristina 15 Sep) */
html body.ama-polish.ama-polish :is(.ama-section.ama-cta, #ama-centre) { padding-left: clamp(24px, 5vw, 64px) !important; padding-right: clamp(24px, 5vw, 64px) !important; }

/* Events: the details box straight under the photo, then the description */
body.ama-polish.single-tribe_events .tribe-events-single .type-tribe_events { display: flex !important; flex-direction: column; }
body.ama-polish.single-tribe_events .tribe-events-single .type-tribe_events > .tribe-events-event-image { order: 1; }
body.ama-polish.single-tribe_events .tribe-events-single .type-tribe_events > .tribe-events-event-meta { order: 2; margin-top: 28px !important; margin-bottom: 36px !important; }
body.ama-polish.single-tribe_events .tribe-events-single .type-tribe_events > .tribe-events-single-event-description { order: 3; }
body.ama-polish.single-tribe_events .tribe-events-single .type-tribe_events > :not(.tribe-events-event-image):not(.tribe-events-event-meta):not(.tribe-events-single-event-description) { order: 4; }

/* Photos of people: cropped photos keep the top of the picture so heads are not cut off */
body.ama-polish :is(.ama-explore figure img, .ama-split figure img, .ama-pillars .ama-pillar__img img, .ama-event__media img, .sya-cpg-image img, .wp-block-post-featured-image img, .tribe-events-event-image img, .wp-block-gallery figure img, .gallery img, .wp-block-post-content .wp-block-image img) { object-position: 50% 0% !important; }
body.ama-polish :is(.ama-people-query, li.person, .ama-people, .ama-bio__photo) img { object-position: 50% 22% !important; }

/* Publications: every cover panel the same height; the landscape covers get more pictures to fill their panel */
body.ama-polish .ama-pub > .ama-pub__cover { position: relative; box-sizing: border-box; aspect-ratio: 3 / 4 !important; min-height: 0 !important; height: auto !important; padding: 0 !important; overflow: hidden; }
body.ama-polish .ama-pub > .ama-pub__cover:not(.ama-pub__cover--stack):not(.ama-pub__cover--collage) img { position: absolute; inset: 0; margin: auto !important; width: auto !important; height: auto !important; max-width: calc(100% - 64px) !important; max-height: calc(100% - 64px) !important; }
body.ama-polish .ama-pub > .ama-pub__cover--stack { display: flex !important; flex-direction: column; justify-content: center; align-items: stretch; gap: 14px; padding: 32px !important; }
body.ama-polish .ama-pub > .ama-pub__cover--stack img { position: static; width: 100% !important; height: auto !important; max-width: 100% !important; max-height: none !important; }
body.ama-polish .ama-pub > .ama-pub__cover--stack img.ama-pub__still { aspect-ratio: 2.6 / 1 !important; object-fit: cover !important; object-position: 50% 50% !important; }
body.ama-polish .ama-pub > .ama-pub__cover--collage img { position: absolute; margin: 0 !important; max-width: none !important; border-radius: 3px !important; box-shadow: 0 12px 26px rgba(11, 30, 54, .24) !important; }
body.ama-polish .ama-pub > .ama-pub__cover--collage img.ama-pub__back { top: 9%; height: 50% !important; width: auto !important; }
body.ama-polish .ama-pub > .ama-pub__cover--collage img.ama-pub__back--l { left: 11%; transform: rotate(-5deg); }
body.ama-polish .ama-pub > .ama-pub__cover--collage img.ama-pub__back--r { right: 11%; transform: rotate(5deg); }
body.ama-polish .ama-pub > .ama-pub__cover--collage img.ama-pub__front { left: 7%; bottom: 9%; width: 86% !important; height: auto !important; z-index: 1; }

/* Older pages: a photo set to the right or left floats inside the reading column (the Awards page's Apprentice photo sat outside it) */
html body.ama-polish.ama-polish.page:not(.ama-std):not(.ama-has-preview) main .wp-block-columns > .wp-block-column > .wp-block-post-content > :is(figure.wp-block-image.alignright, #ama-centre),
html body.ama-polish.ama-polish.page:not(.ama-std):not(.ama-has-preview) main .wp-block-post-content > :is(figure.wp-block-image.alignright, #ama-centre) { float: right !important; margin: 6px 0 20px 32px !important; max-width: 42%; }
html body.ama-polish.ama-polish.page:not(.ama-std):not(.ama-has-preview) main .wp-block-columns > .wp-block-column > .wp-block-post-content > :is(figure.wp-block-image.alignleft, #ama-centre),
html body.ama-polish.ama-polish.page:not(.ama-std):not(.ama-has-preview) main .wp-block-post-content > :is(figure.wp-block-image.alignleft, #ama-centre) { float: left !important; margin: 6px 32px 20px 0 !important; max-width: 42%; }
body.ama-polish.page main .wp-block-post-content > :is(hr, .wp-block-separator, h2) { clear: both; }

/* News stories: one reading format (the plugin marks the parts; the stored stories are unchanged) */
body.ama-polish.single-post main .wp-block-post-content > p.ama-news-lede { font: 400 20px/1.6 var(--ama-text) !important; color: var(--ama-ink) !important; margin: 0 0 1.3em !important; }
body.ama-polish.single-post main .wp-block-post-content > p.ama-news-quote { padding: 2px 0 2px 24px !important; border-left: 3px solid var(--ama-accent); color: #2a3848 !important; }
body.ama-polish.single-post main .wp-block-post-content > p.ama-news-quote + p.ama-news-quote { margin-top: -1.05em !important; padding-top: 1.05em !important; }
body.ama-polish.single-post main .wp-block-post-content > h2.ama-news-sub { font: 600 22px/1.35 var(--ama-heading) !important; color: var(--wp--preset--color--secondary) !important; margin: 1.6em 0 .55em !important; }
body.ama-polish.single-post main .wp-block-post-content > :is(figure, .wp-block-image) { margin: 1.8em 0 !important; }
body.ama-polish.single-post main .wp-block-post-content > :is(ul, ol) { margin: 0 0 1.2em !important; padding-left: 1.3em !important; }
body.ama-polish.single-post main .wp-block-post-content > :is(ul, ol) > li { margin: 0 0 .45em !important; }

/* ---------- r37 Morning pass, fourth round ---------- */
/* Menus: a menu item marked ama-nav-cta (the Great Barrier Reef "Download Guide") is a button at the far right */
body.ama-polish .ama-head .wp-block-navigation__container > .wp-block-navigation-item.ama-nav-cta { margin-left: 10px !important; }
body.ama-polish .ama-head .wp-block-navigation-item.ama-nav-cta > a.wp-block-navigation-item__content { display: inline-flex !important; align-items: center; padding: 9px 18px !important; border-radius: 999px; background: var(--wp--preset--color--secondary) !important; color: #fff !important; font-weight: 600 !important; text-decoration: none !important; line-height: 1.2 !important; transition: background .2s ease, color .2s ease; }
body.ama-polish .ama-head .wp-block-navigation-item.ama-nav-cta > a.wp-block-navigation-item__content:hover { background: var(--ama-deep) !important; color: #fff !important; }
body.ama-polish.ama-head-over .ama-head .wp-block-navigation-item.ama-nav-cta > a.wp-block-navigation-item__content { background: #fff !important; color: var(--ama-deep) !important; }
body.ama-polish.ama-head-over .ama-head .wp-block-navigation-item.ama-nav-cta > a.wp-block-navigation-item__content:hover { background: rgba(255, 255, 255, .86) !important; color: var(--ama-deep) !important; }
body.ama-polish .ama-head .wp-block-navigation-item.ama-nav-cta > a.wp-block-navigation-item__content::after { content: none !important; }
@media (max-width: 1100px) { body.ama-polish .ama-head .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item.ama-nav-cta { margin: 12px 0 0 !important; } }

/* People cards: the bio sits behind a "Read bio" toggle so every card in a row is the same compact size */
body.ama-polish .ama-person .wp-block-details.ama-person__bio { margin: 14px 0 0 !important; padding: 0 !important; border: 0 !important; text-align: center; }
body.ama-polish .ama-person .wp-block-details.ama-person__bio > summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; padding: 7px 16px !important; border: 1px solid var(--ama-line); border-radius: 999px; font: 600 13.5px/1.2 var(--ama-heading) !important; color: var(--wp--preset--color--secondary) !important; background: #fff; transition: border-color .2s ease, background .2s ease; }
body.ama-polish .ama-person .wp-block-details.ama-person__bio > summary::-webkit-details-marker { display: none; }
body.ama-polish .ama-person .wp-block-details.ama-person__bio > summary::after { content: "+"; font-size: 16px; line-height: 1; }
body.ama-polish .ama-person .wp-block-details.ama-person__bio[open] > summary::after { content: "\2013"; }
body.ama-polish .ama-person .wp-block-details.ama-person__bio > summary:hover { border-color: var(--wp--preset--color--secondary); background: var(--ama-tint); }
body.ama-polish .ama-person .wp-block-details.ama-person__bio > :not(summary) { text-align: left !important; font-size: 14.5px !important; line-height: 1.65 !important; margin: 12px 0 0 !important; color: var(--ama-ink) !important; }
body.ama-polish .ama-person .wp-block-details.ama-person__bio > :is(ul, ol) { padding-left: 1.2em !important; }

/* ---------- r38 Morning pass, fifth round ---------- */
/* Older pages: a columns block holding a floated photo keeps to the reading width (the Awards page's Apprentice photo sat outside it) */
html body.ama-polish.ama-polish.page:not(.ama-std):not(.ama-has-preview) main .wp-block-post-content > :is(.wp-block-columns:has(figure.alignright, figure.alignleft), #ama-centre) { max-width: min(820px, 100%) !important; margin-left: auto !important; margin-right: auto !important; }

/* Photo sliders: one clean arrow each side (the slider's own arrow picture showed both arrows at once) */
body.ama-polish .soliloquy-container .soliloquy-controls-direction a { background-image: none !important; background-color: rgba(255, 255, 255, .92) !important; width: 40px !important; height: 40px !important; border-radius: 50% !important; box-shadow: 0 4px 14px rgba(0, 0, 0, .2); }
body.ama-polish .soliloquy-container .soliloquy-controls-direction a > span { display: none !important; }
body.ama-polish .soliloquy-container .soliloquy-controls-direction a::before { content: ""; position: absolute; top: 50%; left: 50%; width: 10px; height: 10px; border-top: 2.5px solid var(--ama-deep); border-right: 2.5px solid var(--ama-deep); transform: translate(-65%, -50%) rotate(45deg); }
body.ama-polish .soliloquy-container .soliloquy-controls-direction a.soliloquy-prev::before { transform: translate(-35%, -50%) rotate(-135deg); }
html body.ama-polish.ama-polish.ama-has-preview .wp-block-post-content > :is(.soliloquy-outer-container, #ama-centre) { max-width: 1184px !important; width: 100%; margin: 0 auto 48px !important; }
body.ama-polish.ama-has-preview .wp-block-post-content .soliloquy-container { border-radius: var(--ama-radius); overflow: hidden; }

/* Publication feature: the button sits under the cover */
body.ama-polish .ama-pub-feature__side { margin: 0 !important; }
body.ama-polish .ama-pub-feature__side .wp-block-buttons { margin: 20px 0 0 !important; justify-content: center; }
body.ama-polish .ama-pub-feature__side .wp-block-button { width: 100%; }
body.ama-polish .ama-pub-feature__side .wp-block-button__link { width: 100%; box-sizing: border-box; justify-content: center; text-align: center; }

/* People lists (committee, staff): the same card as the AIMEX Board, and the whole card opens the profile */
html body.ama-polish.ama-polish main .wp-block-post-template > :is(li.person, #ama-centre) { position: relative; list-style: none; }
html body.ama-polish.ama-polish main .wp-block-post-template > li.person > :is(.wp-block-group, #ama-centre) { display: flex !important; flex-direction: column; align-items: center; height: 100%; min-height: 0 !important; box-sizing: border-box; padding: 24px 20px 20px !important; text-align: center; background: #fff; border: 1px solid var(--ama-line) !important; border-top: 3px solid var(--ama-accent) !important; border-radius: var(--ama-radius) !important; box-shadow: var(--ama-shadow) !important; transition: transform .2s ease, box-shadow .2s ease; }
html body.ama-polish.ama-polish main .wp-block-post-template > li.person:hover > :is(.wp-block-group, #ama-centre) { transform: translateY(-3px); box-shadow: var(--ama-shadow-lift) !important; }
html body.ama-polish.ama-polish main .wp-block-post-template > li.person :is(.wp-block-group, #ama-centre) { gap: 0 !important; padding-left: 0; padding-right: 0; }
html body.ama-polish.ama-polish main .wp-block-post-template > li.person :is(.wp-block-post-featured-image, #ama-centre) { margin: 0 auto 14px !important; padding: 0 !important; width: auto !important; }
html body.ama-polish.ama-polish main .wp-block-post-template > li.person :is(.wp-block-post-featured-image, #ama-centre) img { display: block; width: 150px !important; height: 150px !important; max-width: none !important; aspect-ratio: 1 !important; object-fit: cover !important; object-position: 50% 22% !important; border: 0 !important; border-radius: 10px !important; box-shadow: none !important; }
html body.ama-polish.ama-polish main .wp-block-post-template > li.person :is(.wp-block-post-title, #ama-centre) { margin: 0 0 4px !important; padding: 0 !important; font: 600 17px/1.3 var(--ama-heading) !important; text-align: center !important; }
html body.ama-polish.ama-polish main .wp-block-post-template > li.person :is(.wp-block-post-title, #ama-centre) a { color: var(--wp--preset--color--secondary) !important; text-decoration: none !important; }
html body.ama-polish.ama-polish main .wp-block-post-template > li.person :is(.wp-block-post-title, #ama-centre) a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
html body.ama-polish.ama-polish main .wp-block-post-template > li.person :is(.wp-block-mfb-meta-field-block, #ama-centre) { margin: 0 !important; padding: 0 !important; font: 400 14px/1.45 var(--ama-text) !important; color: var(--ama-muted) !important; text-align: center !important; }

/* Person profiles: a Back link above the text, the photo and role as a card beside it */
body.ama-polish.single-person main .wp-block-columns { max-width: 1040px !important; margin: clamp(40px, 5vw, 64px) auto clamp(64px, 7vw, 104px) !important; gap: clamp(28px, 4vw, 56px) !important; align-items: flex-start !important; }
body.ama-polish.single-person main .wp-block-columns > .wp-block-column:first-child { flex: 0 0 300px !important; max-width: 300px; }
body.ama-polish.single-person main .wp-block-columns > .wp-block-column:first-child > .wp-block-group { padding: 20px !important; background: var(--ama-tint); border: 1px solid var(--ama-line); border-radius: var(--ama-radius); }
body.ama-polish.single-person main .wp-block-columns > .wp-block-column:first-child .wp-block-post-featured-image img { width: 100% !important; aspect-ratio: 1 !important; object-fit: cover !important; object-position: 50% 22% !important; border: 0 !important; border-radius: 10px !important; }
body.ama-polish.single-person main .wp-block-columns > .wp-block-column:first-child .wp-block-mfb-meta-field-block { margin: 14px 0 0 !important; font: 600 15.5px/1.4 var(--ama-heading) !important; font-style: normal !important; color: var(--wp--preset--color--secondary) !important; text-align: center !important; }
body.ama-polish.single-person main .wp-block-post-content { max-width: 680px !important; margin: 0 !important; padding: 0 !important; }
body.ama-polish.single-person main .wp-block-post-content :is(p, li) { font: 400 16.5px/1.7 var(--ama-text) !important; color: var(--ama-ink) !important; }
body.ama-polish.single-person main .wp-block-post-content ul { margin: 0 0 1.1em !important; padding-left: 1.2em !important; }
body.ama-polish .ama-back { margin: 0 0 22px !important; }
body.ama-polish .ama-back a { font: 600 12.5px/1.3 var(--ama-heading) !important; letter-spacing: .1em; text-transform: uppercase; color: var(--wp--preset--color--secondary) !important; text-decoration: none !important; }
body.ama-polish .ama-back a::before { content: "\2190\00a0\00a0"; }
body.ama-polish .ama-back a:hover { text-decoration: underline !important; text-underline-offset: 3px; }
@media (max-width: 781px) { body.ama-polish.single-person main .wp-block-columns > .wp-block-column:first-child { flex-basis: auto !important; max-width: 100%; } }

/* Join panels with a publication: the cover above the button (Great Barrier Reef 2026 guide) */
body.ama-polish .ama-cta a.ama-cta__cover { display: block; width: min(210px, 100%); margin: 0 auto 20px; transition: transform .2s ease; }
body.ama-polish .ama-cta a.ama-cta__cover:hover { transform: translateY(-3px); }
body.ama-polish .ama-cta a.ama-cta__cover img { display: block; width: 100% !important; height: auto !important; border-radius: 3px !important; box-shadow: 0 16px 34px rgba(0, 0, 0, .35) !important; }
body.ama-polish .ama-cta .wp-block-column:has(> .ama-cta__cover) { text-align: center; }
body.ama-polish .ama-cta .wp-block-column:has(> .ama-cta__cover) .wp-block-buttons { justify-content: center; }

/* Tidied older pages and profiles: subheadings from bold lines, PDF marks and document cards */
body.ama-polish .wp-block-post-content h3.ama-sub { font: 600 19px/1.35 var(--ama-heading) !important; color: var(--wp--preset--color--secondary) !important; margin: 1.6em 0 .45em !important; }
body.ama-polish .wp-block-post-content > h3.ama-sub:first-child { margin-top: 0 !important; }
body.ama-polish .wp-block-post-content h3.ama-sub--caps { font: 600 12.5px/1.4 var(--ama-heading) !important; letter-spacing: .12em; text-transform: uppercase; color: var(--ama-accent-text, var(--ama-muted)) !important; margin: 0 0 12px !important; }
body.ama-polish .ama-doc-tag { font-size: .82em; color: var(--ama-muted); white-space: nowrap; }
html body.ama-polish.ama-polish .wp-block-post-content :is(.ama-doc, #ama-centre) { box-sizing: border-box; display: grid !important; grid-template-columns: 120px minmax(0, 1fr); gap: 22px; align-items: center; max-width: min(820px, 100%) !important; margin: 18px auto 30px !important; padding: 18px 22px !important; background: var(--ama-tint); border: 1px solid var(--ama-line); border-radius: var(--ama-radius); }
body.ama-polish .ama-doc__cover { display: block; }
body.ama-polish .ama-doc__cover img { display: block; width: 100% !important; height: auto !important; border-radius: 3px !important; box-shadow: 0 8px 18px rgba(11, 30, 54, .2) !important; }
body.ama-polish .ama-doc__text > p { margin: 0 !important; }
body.ama-polish .ama-doc__text > p.ama-doc__kicker { font: 600 11.5px/1.3 var(--ama-heading) !important; letter-spacing: .12em; text-transform: uppercase; color: var(--ama-accent-text, var(--ama-muted)) !important; margin-bottom: 4px !important; }
body.ama-polish .ama-doc__text > p.ama-doc__title { font: 600 18px/1.35 var(--ama-heading) !important; color: var(--wp--preset--color--secondary) !important; margin-bottom: 12px !important; }
body.ama-polish .wp-block-post-content a.ama-doc__go { display: inline-flex; padding: 9px 16px; border-radius: 999px; background: var(--wp--preset--color--secondary); color: #fff !important; font: 600 14px/1.2 var(--ama-heading) !important; text-decoration: none !important; }
body.ama-polish .wp-block-post-content a.ama-doc__go:hover { background: var(--ama-deep); }

/* ---------- r39 People records and alignment ---------- */
/* People cards drawn from the person records: the whole card opens the profile, and "Read bio" stays clickable above it */
body.ama-polish .ama-person--link { position: relative; transition: transform .2s ease, box-shadow .2s ease; }
body.ama-polish .ama-person--link:hover { transform: translateY(-3px); box-shadow: var(--ama-shadow-lift) !important; }
body.ama-polish .ama-person--link :is(h2, h3, h4) a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
body.ama-polish .ama-person--link .ama-person__bio { position: relative; z-index: 2; }
body.ama-polish .ama-person p.ama-person__company { margin: -8px 0 0 !important; font: 400 14px/1.45 var(--ama-text) !important; color: var(--ama-muted) !important; }

/* Person profiles: the roles list and the "looks after" tags */
body.ama-polish.single-person main .wp-block-post-content ul:is(.ama-person-roles, .ama-tags) { padding-left: 0 !important; list-style: none !important; }
body.ama-polish.single-person main .wp-block-post-content ul.ama-person-roles { margin: 0 0 1.5em !important; }
body.ama-polish.single-person main .wp-block-post-content ul.ama-person-roles > li { margin: 0 !important; padding: 10px 0 !important; border-bottom: 1px solid var(--ama-line); }
body.ama-polish.single-person main .wp-block-post-content ul.ama-person-roles > li strong { color: var(--wp--preset--color--secondary); font-weight: 600; }
body.ama-polish.single-person main .wp-block-post-content ul.ama-person-roles > li span { color: var(--ama-muted); }
body.ama-polish.single-person main .wp-block-post-content ul.ama-tags { margin: 0 0 1.8em !important; }
body.ama-polish.single-person main .wp-block-post-content ul.ama-tags > li { font: 500 14px/1.35 var(--ama-text) !important; }

/* Rebuilt pages: a heading that introduces a card row or the membership form lines up with it */
html body.ama-polish.ama-polish .wp-block-post-content.wp-block-post-content > :is(h2:has(+ .ama-contact-cards), #ama-centre) { box-sizing: border-box; width: 100%; max-width: 1184px !important; margin-left: auto !important; margin-right: auto !important; }
html body.ama-polish.ama-polish .wp-block-post-content.wp-block-post-content > :is(h2:has(+ .ama-zform), #ama-centre) { box-sizing: border-box; width: 100%; max-width: 860px !important; margin-left: auto !important; margin-right: auto !important; }

/* ---------- r40 Cruising, agency tiles ---------- */
/* Photo tiles (Destinations, Cruising): a last tile left on its own row runs the full width as a banner */
body.ama-polish .ama-dest-tiles > .ama-dest-tile:last-child:nth-child(3n+1) { grid-column: 1 / -1; aspect-ratio: 16 / 5; }
@media (max-width: 900px) { body.ama-polish .ama-dest-tiles > .ama-dest-tile:last-child:nth-child(3n+1) { grid-column: auto; aspect-ratio: 4 / 3; } }

/* Text after the tiles on a landing page: a heading and two columns of reading text */
html body.ama-polish.ama-polish .wp-block-post-content.wp-block-post-content > :is(.ama-after-tiles, #ama-centre) { box-sizing: border-box; width: 100%; max-width: 1184px !important; margin: 0 auto 96px !important; }
body.ama-polish .ama-after-tiles > h2 { margin: 0 0 18px !important; }
body.ama-polish .ama-after-tiles > .ama-after-tiles__cols { columns: 2; column-gap: 56px; }
body.ama-polish .ama-after-tiles > .ama-after-tiles__cols > p { break-inside: avoid; margin: 0 0 1.1em !important; }
@media (max-width: 781px) { body.ama-polish .ama-after-tiles > .ama-after-tiles__cols { columns: 1; } }

/* ---------- r41 Advocacy and Vessels Entering Australia ---------- */
/* Photo tiles that name an agency: a small line above the title */
body.ama-polish .ama-dest-tile > p.ama-dest-tile__agency { position: absolute; left: 22px; right: 22px; bottom: 62px; z-index: 2; margin: 0 !important; font: 600 11.5px/1.3 var(--ama-heading) !important; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .88) !important; text-shadow: 0 1px 10px rgba(0, 0, 0, .4); }
body.ama-polish .ama-dest-tiles--topics .ama-dest-tile > h3.ama-dest-tile__title { font-size: 19px !important; line-height: 1.3 !important; }
body.ama-polish .ama-dest-tiles--topics .ama-dest-tile:has(> p.ama-dest-tile__agency) > h3.ama-dest-tile__title { min-height: 2.6em; display: flex; align-items: flex-end; }

/* Issue cards without photos (Advocacy): white cards on the tinted band */
body.ama-polish .ama-section--tint .wp-block-columns.ama-pillars > .wp-block-column:not(:has(.ama-pillar__img)) { box-sizing: border-box; padding: 26px 26px 22px !important; background: #fff; border: 1px solid var(--ama-line); border-top: 3px solid var(--ama-accent); border-radius: var(--ama-radius); box-shadow: var(--ama-shadow); }
body.ama-polish .ama-section--tint .wp-block-columns.ama-pillars > .wp-block-column:not(:has(.ama-pillar__img)) > h3 { margin: 0 0 10px !important; }
body.ama-polish .ama-section--tint .wp-block-columns.ama-pillars > .wp-block-column:not(:has(.ama-pillar__img)) > p { margin: 0 !important; }
body.ama-polish .ama-section--tint .wp-block-columns.ama-pillars + .wp-block-columns.ama-pillars { margin-top: 24px !important; }

/* ---------- r42 Topic tiles: agency line above a two-line title ---------- */
/* The agency line and the title sit together at the foot of the tile, so a title that wraps pushes the agency line up instead of running into it */
body.ama-polish .ama-dest-tiles--topics .ama-dest-tile > p.ama-dest-tile__agency { position: absolute; left: 22px; right: 22px; bottom: auto; top: auto; }
body.ama-polish .ama-dest-tiles--topics .ama-dest-tile:has(> p.ama-dest-tile__agency) { display: flex !important; flex-direction: column; justify-content: flex-end; padding: 0 22px 18px !important; box-sizing: border-box; }
body.ama-polish .ama-dest-tiles--topics .ama-dest-tile:has(> p.ama-dest-tile__agency) > p.ama-dest-tile__agency { position: relative !important; left: auto; right: auto; bottom: auto; z-index: 2; margin: 0 0 6px !important; }
body.ama-polish .ama-dest-tiles--topics .ama-dest-tile:has(> p.ama-dest-tile__agency) > h3.ama-dest-tile__title { position: relative !important; left: auto; right: auto; bottom: auto; min-height: 0; display: block; }

/* ---------- r43 Person profiles: card level with the text, name under the photo ---------- */
/* The Back link carried an older page's 64px top margin, which dropped the text column below the photo card */
html body.ama-polish.ama-polish.single-person main .wp-block-post-content > :is(p.ama-back, #ama-centre) { margin-top: 0 !important; }
html body.ama-polish.ama-polish.single-person main .wp-block-columns > .wp-block-column:last-child .wp-block-post-content { margin-top: 0 !important; padding-top: 0 !important; }
/* The name under the photo, then the role */
html body.ama-polish.ama-polish.single-person main .wp-block-columns > .wp-block-column:first-child :is(p.ama-person-card__name, #ama-centre) { margin: 16px 0 2px !important; font: 600 19px/1.3 var(--ama-heading) !important; color: var(--ama-ink) !important; text-align: center !important; }
html body.ama-polish.ama-polish.single-person main .wp-block-columns > .wp-block-column:first-child :is(.wp-block-mfb-meta-field-block, #ama-centre) { margin: 0 !important; font: 500 14.5px/1.45 var(--ama-text) !important; font-style: normal !important; color: var(--ama-muted) !important; text-align: center !important; }

/* ---------- r44 Logo cards (Chartering in Australia: trained and endorsed companies) ---------- */
html body.ama-polish.ama-polish .wp-block-post-content.wp-block-post-content > :is(.ama-logo-groups, #ama-centre) { box-sizing: border-box; width: 100%; max-width: 1184px !important; margin: clamp(40px, 5vw, 64px) auto 104px !important; padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--ama-line); }
body.ama-polish .ama-logo-groups > h2 { margin: 0 0 10px !important; }
body.ama-polish .ama-logo-groups > p { max-width: 760px; margin: 0 0 8px !important; }
body.ama-polish .ama-logo-groups > h3.ama-logo-groups__label { margin: 34px 0 14px !important; font: 600 12.5px/1.4 var(--ama-heading) !important; letter-spacing: .12em; text-transform: uppercase; color: var(--ama-accent-text, var(--ama-muted)) !important; }
body.ama-polish .ama-logo-groups > .ama-logo-cards { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px !important; margin: 0 !important; }
body.ama-polish .ama-logo-card { position: relative; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; padding: 24px 20px 18px; background: #fff; border: 1px solid var(--ama-line); border-radius: var(--ama-radius); box-shadow: var(--ama-shadow); text-align: center; transition: transform .2s ease, box-shadow .2s ease; }
body.ama-polish .ama-logo-card:hover { transform: translateY(-3px); box-shadow: var(--ama-shadow-lift); }
body.ama-polish .ama-logo-card__logo { display: flex; align-items: center; justify-content: center; width: 100%; height: 92px; margin: 0 0 14px; }
body.ama-polish .ama-logo-card__logo img { display: block; width: auto !important; height: auto !important; max-width: 78% !important; max-height: 92px !important; object-fit: contain !important; border-radius: 0 !important; box-shadow: none !important; }
body.ama-polish .wp-block-post-content .ama-logo-card p.ama-logo-card__name { margin: 0 !important; font: 600 15px/1.35 var(--ama-heading) !important; }
body.ama-polish .wp-block-post-content .ama-logo-card p.ama-logo-card__name a { color: var(--wp--preset--color--secondary) !important; text-decoration: none !important; }
body.ama-polish .wp-block-post-content .ama-logo-card p.ama-logo-card__name a::after { content: ""; position: absolute; inset: 0; }
@media (max-width: 781px) { body.ama-polish .ama-logo-groups > .ama-logo-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { body.ama-polish .ama-logo-groups > .ama-logo-cards { grid-template-columns: 1fr; } }

/* ---------- r45 Logo cards sit level ---------- */
/* WordPress's flow layout gap put a top margin on the second and third cards in each row, so the first card sat higher */
html body.ama-polish.ama-polish .wp-block-post-content .ama-logo-groups > .ama-logo-cards > :is(.ama-logo-card, #ama-centre) { margin: 0 !important; }
html body.ama-polish.ama-polish .wp-block-post-content .ama-logo-groups > .ama-logo-cards { align-items: stretch; }

/* ---------- r46 no style changes: 0.1.78 carries the regional cluster labels, person roles over REST and the bundled image route (17 Sep 2026) ---------- */

/* r47 (0.1.79): association tags on the calendar's event list (17 Sep 2026) */
.tribe-events .ama-event__badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 4px; }
.tribe-events .ama-event__badges .ama-badge { font-size: 11px; line-height: 1; }

/* r48 (0.1.80): association tags on the events list cards (17 Sep 2026) */
.wp-block-post.tribe_events .ama-event__badges,
.tribe-events .ama-event__badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px; }
.wp-block-post.tribe_events .ama-event__badges .ama-badge,
.tribe-events .ama-event__badges .ama-badge { margin: 0; font-size: 11px; line-height: 1; }

/* r49 (0.1.81): association tags on the news list cards (17 Sep 2026) */
.wp-block-post.type-post .ama-event__badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px; }
.wp-block-post.type-post .ama-event__badges .ama-badge { margin: 0; font-size: 11px; line-height: 1; }

/* r50 (0.1.82): tags on lists inside pages */

/* r51 (0.1.83): news card tags line up with the card's title inset (17 Sep 2026) */
.wp-block-post.type-post .ama-event__badges { margin: 16px 22px 6px; }

/* r52 (0.1.84): old-domain redirects, no styles */

/* r53 (0.1.85): merges the other session's 0.1.84 description change */

/* r54 (0.1.86): redirect destinations fixed, one hop */

/* News stories, 28 Sep 2026 (Kristina: "boring and bland"): easier reading size, a softer quote panel, and the member card. */
body.ama-polish.ama-story-trial.single-post main .wp-block-post-content :is(p, li) { font-size: 18px !important; }
body.ama-polish.ama-story-trial.single-post main .wp-block-post-content > p.ama-news-lede { font: 400 22px/1.55 var(--ama-text) !important; color: var(--wp--preset--color--secondary) !important; margin: 0 0 1.2em !important; }
body.ama-polish.ama-story-trial.single-post main .wp-block-post-content > p.ama-news-quote { background: #f4f7fb; border-left: 3px solid var(--ama-accent); border-radius: 0 var(--ama-radius) var(--ama-radius) 0; padding: 14px 22px !important; font-size: 18.5px !important; color: #22303f !important; }
body.ama-polish.ama-story-trial.single-post main .wp-block-post-content > p.ama-news-quote + p.ama-news-quote { margin-top: -1.05em !important; padding-top: 4px !important; border-radius: 0 0 var(--ama-radius) 0; }
body.ama-polish.ama-story-trial.single-post main .wp-block-post-content > p.ama-news-quote:has(+ p.ama-news-quote) { border-radius: 0 var(--ama-radius) 0 0; padding-bottom: 12px !important; }
body.ama-polish.ama-story-trial .ama-story-member { display: flex; gap: 24px; align-items: center; margin: 2.4em 0 0 !important; padding: 24px 26px; border: 1px solid var(--ama-line); border-radius: var(--ama-radius); background: #fff; box-shadow: var(--ama-shadow); }
body.ama-polish.ama-story-trial .ama-story-member__logo { flex: 0 0 150px; display: flex; align-items: center; justify-content: center; min-height: 90px; padding: 10px; background: #f7f9fc; border-radius: 10px; }
body.ama-polish.ama-story-trial .ama-story-member__logo img { max-width: 100% !important; max-height: 90px !important; width: auto !important; height: auto !important; object-fit: contain; border-radius: 0 !important; }
body.ama-polish.ama-story-trial .ama-story-member__body { min-width: 0; }
body.ama-polish.ama-story-trial.single-post main .wp-block-post-content .ama-story-member p.ama-story-member__kicker { font: 600 12px/1.3 var(--ama-heading) !important; letter-spacing: .12em; text-transform: uppercase; color: var(--ama-muted) !important; margin: 0 0 4px !important; }
body.ama-polish.ama-story-trial.single-post main .wp-block-post-content .ama-story-member h2.ama-story-member__name { font: 600 20px/1.3 var(--ama-heading) !important; margin: 0 0 6px !important; }
body.ama-polish.ama-story-trial.single-post main .wp-block-post-content .ama-story-member p.ama-story-member__about { font-size: 15.5px !important; line-height: 1.6 !important; color: var(--ama-muted) !important; margin: 0 0 10px !important; }
body.ama-polish.ama-story-trial.single-post main .wp-block-post-content .ama-story-member p.ama-story-member__go { margin: 0 !important; font: 500 15px/1.3 var(--ama-heading) !important; }
body.ama-polish.ama-story-trial .ama-story-member__go a { text-decoration: none !important; }
body.ama-polish.ama-story-trial .ama-story-member__go a::after { content: " \2192"; }
@media (max-width: 640px) {
	body.ama-polish.ama-story-trial .ama-story-member { flex-direction: column; align-items: flex-start; }
	body.ama-polish.ama-story-trial .ama-story-member__logo { flex-basis: auto; width: 100%; box-sizing: border-box; }
	body.ama-polish.ama-story-trial.single-post main .wp-block-post-content :is(p, li) { font-size: 17px !important; }
	body.ama-polish.ama-story-trial.single-post main .wp-block-post-content > p.ama-news-lede { font-size: 18.5px !important; }
}

/* News stories, round two (28 Sep 2026, Kristina: still "a bit clunky"): a reading column of about 70 characters under the wide
   photo, quoted speech back to ordinary text, and one large pull quote. Signed-in editors only until approved. */
/* Round three (28 Sep 2026, Kristina: the column was "so skinny" and the opening paragraph did not look polished): the text runs the
   photo's full 820px width with edges aligned, the opening paragraph is set in the heading face in dark ink, and body text softens. */
body.ama-polish.ama-story-trial.single-post main .wp-block-post-content { max-width: 820px !important; }
body.ama-polish.ama-story-trial.single-post main .wp-block-post-content :is(p, li) { font-size: 17.5px !important; line-height: 1.8 !important; color: #2a3440 !important; }
body.ama-polish.ama-story-trial.single-post main .wp-block-post-content > p.ama-news-lede { font: 400 20px/1.6 var(--ama-heading) !important; color: var(--ama-ink) !important; letter-spacing: -.005em; margin: 0 0 1.5em !important; padding-bottom: 1.5em !important; border-bottom: 1px solid var(--ama-line); }
body.ama-polish.ama-story-trial.single-post main .wp-block-post-content > p.ama-news-quote,
body.ama-polish.ama-story-trial.single-post main .wp-block-post-content > p.ama-news-quote + p.ama-news-quote,
body.ama-polish.ama-story-trial.single-post main .wp-block-post-content > p.ama-news-quote:has(+ p.ama-news-quote) { background: none !important; border: 0 !important; border-radius: 0 !important; padding: 0 !important; margin: 0 0 1.05em !important; font-size: 17.5px !important; color: #2a3440 !important; }
body.ama-polish.ama-story-trial .ama-pullquote { margin: 2.4em 0 !important; padding: 26px 0 0 !important; border: 0 !important; position: relative; }
body.ama-polish.ama-story-trial .ama-pullquote::before { content: ""; position: absolute; top: 0; left: 0; width: 56px; height: 3px; background: var(--ama-accent); }
body.ama-polish.ama-story-trial .ama-pullquote blockquote { margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; }
body.ama-polish.ama-story-trial.single-post main .wp-block-post-content .ama-pullquote blockquote p { font: 500 26px/1.4 var(--ama-heading) !important; color: var(--wp--preset--color--secondary) !important; margin: 0 !important; letter-spacing: -.005em; }
body.ama-polish.ama-story-trial .ama-pullquote blockquote p::before { content: "\201C"; }
body.ama-polish.ama-story-trial .ama-pullquote blockquote p::after { content: "\201D"; }
body.ama-polish.ama-story-trial .ama-pullquote figcaption { margin: 14px 0 0 !important; font: 600 13px/1.3 var(--ama-heading) !important; letter-spacing: .1em; text-transform: uppercase; color: var(--ama-muted) !important; text-align: left !important; }
body.ama-polish.ama-story-trial .ama-story-member { margin-top: 3em !important; }
@media (max-width: 860px) {
	body.ama-polish.ama-story-trial .ama-pullquote { margin-left: 0 !important; margin-right: 0 !important; }
	body.ama-polish.ama-story-trial.single-post main .wp-block-post-content .ama-pullquote blockquote p { font-size: 22px !important; }
}

/* The date on a story's navy header was the muted grey meant for white pages, and could not be read (Kristina, 28 Sep 2026). For everyone. */
body.ama-polish.single-post .has-secondary-background-color .wp-block-post-date,
body.ama-polish.single-post .has-secondary-background-color .wp-block-post-date time { color: rgba(255, 255, 255, .88) !important; }

/* Photos placed inside a story: no taller than 600px, centred, so a portrait does not fill the screen (28 Sep 2026). For everyone. */
body.ama-polish.single-post main .wp-block-post-content > figure.wp-block-image { text-align: center; }
body.ama-polish.single-post main .wp-block-post-content > figure.wp-block-image img { width: auto !important; max-width: 100% !important; max-height: 600px !important; margin: 0 auto !important; display: block; }

/* Story subheadings (28 Sep 2026): a story's own H2s sit at reading scale, not the landing-page section size. For everyone; quote blocks editors only until approved. */
body.ama-polish.single-post main .wp-block-post-content > h2.wp-block-heading { font: 600 24px/1.3 var(--ama-heading) !important; color: var(--wp--preset--color--secondary) !important; letter-spacing: -.005em; margin: 1.9em 0 .6em !important; }
body.ama-polish.ama-story-trial.single-post main .wp-block-post-content > blockquote.wp-block-quote { margin: 2em 0 !important; padding: 4px 0 4px 24px !important; border-left: 3px solid var(--ama-accent) !important; background: none !important; }
body.ama-polish.ama-story-trial.single-post main .wp-block-post-content > blockquote.wp-block-quote p { font: 500 22px/1.45 var(--ama-heading) !important; color: var(--wp--preset--color--secondary) !important; margin: 0 !important; }
body.ama-polish.ama-story-trial.single-post main .wp-block-post-content > blockquote.wp-block-quote cite { display: block; margin-top: 10px; font: 600 13px/1.3 var(--ama-heading) !important; font-style: normal !important; letter-spacing: .1em; text-transform: uppercase; color: var(--ama-muted) !important; }
@media (max-width: 640px) { body.ama-polish.single-post main .wp-block-post-content > h2.wp-block-heading { font-size: 21px !important; } }

/* Story header: association badges after the category, outlined to read on the navy (28 Sep 2026). For everyone. */
body.ama-polish.single-post .ama-story-assocs { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-left: 10px; vertical-align: middle; }
body.ama-polish.single-post a.ama-story-assoc,
body.ama-polish.single-post span.ama-story-assoc { background: rgba(255, 255, 255, .1) !important; color: #fff !important; border: 1px solid rgba(255, 255, 255, .45); box-shadow: none !important; font: 600 11px/1 var(--ama-heading) !important; letter-spacing: .08em; padding: 5px 8px; border-radius: 4px; text-decoration: none !important; }
body.ama-polish.single-post a.ama-story-assoc:hover { background: rgba(255, 255, 255, .22) !important; }

/* Share row under the story (28 Sep 2026). For everyone. */
body.ama-polish .ama-share { display: flex; align-items: center; gap: 10px; margin: 2.4em 0 0 !important; padding-top: 20px; border-top: 1px solid var(--ama-line); }
body.ama-polish .ama-share__label { font: 600 12px/1.3 var(--ama-heading); letter-spacing: .1em; text-transform: uppercase; color: var(--ama-muted); margin-right: 6px; }
body.ama-polish .ama-share__btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border-radius: 50%; border: 1px solid var(--ama-line); background: #fff; color: var(--wp--preset--color--secondary) !important; cursor: pointer; text-decoration: none !important; transition: background .15s ease, border-color .15s ease; }
body.ama-polish .ama-share__btn:hover { background: #f1f5fa; border-color: #c9d4e2; }
body.ama-polish .ama-share__btn svg { width: 17px; height: 17px; fill: currentColor; }
body.ama-polish .ama-share__done { position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); white-space: nowrap; font: 500 12px/1 var(--ama-text); background: var(--ama-ink); color: #fff; padding: 6px 8px; border-radius: 4px; opacity: 0; pointer-events: none; transition: opacity .15s ease; }
body.ama-polish .ama-share__copy.is-done .ama-share__done { opacity: 1; }
body.ama-polish .ama-share + .ama-story-member { margin-top: 1.6em !important; }

/* A tighter opening: less space around the line under the opening paragraph (28 Sep 2026). Editors only until approved. */
body.ama-polish.ama-story-trial.single-post main .wp-block-post-content > p.ama-news-lede { margin-bottom: 1em !important; padding-bottom: 1em !important; }

/* 0.1.100 (28 Sep 2026): the space after the dot before the category is kept (the date line lays itself out, so it needs no flex rule),
   and small white share icons sit at the right-hand end of the date line on the navy header. For everyone. */
body.ama-polish.single-post .has-secondary-background-color .wp-block-post-terms__prefix { white-space: pre; }
body.ama-polish.single-post .ama-share--head { margin: 0 0 0 auto !important; padding: 0 !important; border: 0 !important; gap: 8px; }
body.ama-polish.single-post .ama-share--head .ama-share__btn { width: 32px; height: 32px; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .45); color: #fff !important; }
body.ama-polish.single-post .ama-share--head .ama-share__btn:hover { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .8); }
body.ama-polish.single-post .ama-share--head .ama-share__btn svg { width: 14px; height: 14px; }
body.ama-polish.single-post .ama-share--head .ama-share__done { bottom: auto; top: calc(100% + 6px); background: #fff; color: var(--ama-ink); }
@media (max-width: 640px) { body.ama-polish.single-post .ama-share--head { margin-left: 0 !important; flex-basis: 100%; margin-top: 10px !important; } }

/* 0.1.104 (28 Sep 2026): a short opening paragraph (30 words or fewer) is set as a bold standfirst, the look Kristina liked on SOS Marine. */
body.ama-polish.ama-story-trial.single-post main .wp-block-post-content > p.ama-news-lede--short { font-weight: 700 !important; font-size: 20px !important; line-height: 1.5 !important; color: var(--ama-ink) !important; }
body.ama-polish.ama-story-trial.single-post main .wp-block-post-content > p.ama-news-lede--short strong { font-weight: inherit; }
@media (max-width: 640px) { body.ama-polish.ama-story-trial.single-post main .wp-block-post-content > p.ama-news-lede--short { font-size: 18.5px !important; } }

/* 0.1.105 (28 Sep 2026, phone check): on phones the opening paragraph is 18px whatever its length (the earlier phone size was
   overridden by a later rule), and the story header keeps the association badge beside the date with smaller share icons below. */
@media (max-width: 640px) {
	body.ama-polish.ama-story-trial.single-post main .wp-block-post-content > p.ama-news-lede,
	body.ama-polish.ama-story-trial.single-post main .wp-block-post-content > p.ama-news-lede--short { font-size: 18px !important; line-height: 1.55 !important; }
	body.ama-polish.single-post .ama-story-assocs { margin-left: 6px; }
	body.ama-polish.single-post .ama-share--head { margin-top: 12px !important; gap: 6px; }
	body.ama-polish.single-post .ama-share--head .ama-share__btn { width: 28px; height: 28px; }
	body.ama-polish.single-post .ama-share--head .ama-share__btn svg { width: 12px; height: 12px; }
}

/* 0.1.109 (28 Sep 2026, Kristina: event cards on phones broke titles mid-word): on phones an event card stacks, photo across the top,
   then the date box beside the title and details, so titles keep the full width. Everywhere the events list appears. */
@media (max-width: 640px) {
	html body.ama-polish[class] .ama-events .ama-event__link { display: grid !important; grid-template-columns: 82px minmax(0, 1fr) !important; grid-template-areas: "media media" "date body" !important; column-gap: 14px !important; row-gap: 18px !important; padding: 0 0 22px !important; align-items: start !important; }
	html body.ama-polish[class] .ama-events .ama-event__media { grid-area: media !important; order: 0 !important; display: block !important; width: 100% !important; max-width: none !important; height: auto !important; aspect-ratio: 16 / 10; margin: 0 !important; position: relative !important; inset: auto !important; border-radius: 0 !important; overflow: hidden; }
	html body.ama-polish[class] .ama-events .ama-event__media img { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block; }
	html body.ama-polish[class] .ama-events .ama-event__date { grid-area: date !important; width: 64px !important; min-width: 0 !important; height: 64px !important; min-height: 0 !important; margin: 0 0 0 18px !important; padding: 0 !important; border-radius: 10px !important; }
	html body.ama-polish[class] .ama-events .ama-event__month { font-size: 12px !important; }
	html body.ama-polish[class] .ama-events .ama-event__day { font-size: 26px !important; line-height: 1 !important; }
	html body.ama-polish[class] .ama-events .ama-event__body { grid-area: body !important; min-width: 0 !important; margin: 0 18px 0 0 !important; padding: 0 !important; }
	html body.ama-polish[class] .ama-events .ama-event__title { font-size: 20px !important; line-height: 1.25 !important; word-break: normal !important; overflow-wrap: break-word !important; hyphens: manual !important; }
}
