/*
Theme Name: Sales Management Association
Author: Anonymous
Author URI:
Version: 1.0.0
Description: Sales Management Association theme for Wordpress with ACF block.json support
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sma
Tags: one-column, two-columns
Theme URI:
*/

/*
 * Global styles shared by every page of the /markup prototype.
 *
 * Only rules that appear on all thirteen markup pages live here — design tokens, the
 * reset, layout wrappers, the header, buttons and the footer. Section-specific rules
 * (hero, cards, grids, filters …) stay with their blocks.
 *
 * Where a rule drifted between pages the majority value was taken; the exceptions are
 * called out in comments so nothing looks like an accident.
 *
 * Contents
 *   1. Design tokens
 *   2. Reset & base
 *   3. Layout helpers
 *   4. Header / navigation
 *   5. Buttons
 *   6. Breadcrumb
 *   7. Underwriter logo strip
 *   8. Footer
 *   9. Single event
 *  10. Single research initiative
 *  11. Single course
 *  12. Course steps
 *  13. Single resource
 *  14. Single certification
 *  15. Single contributor
 *  16. Default templates
 *  17. Responsive
 */

/* ==========================================================================
   1. Design tokens
   ========================================================================== */

:root {
	/*
	 * Short aliases for the theme.json presets, which are the single source for every
	 * value. Block and theme CSS is written against these names (they come from the
	 * markup); WordPress itself only emits the long --wp--preset--* properties.
	 * Keep in sync with the same list in assets/scss/editor-style.scss.
	 */
	--primary: var(--wp--preset--color--primary);
	--accent: var(--wp--preset--color--accent);
	--tint: var(--wp--preset--color--tint);
	--white: var(--wp--preset--color--white);
	--ink: var(--wp--preset--color--ink);
	--ink-soft: var(--wp--preset--color--ink-soft);
	--hairline: var(--wp--preset--color--hairline);

	/*
	 * The markup references var(--line) on the dropdown border but never defines it,
	 * so that border silently drops out. Aliased to the hairline colour, which is what
	 * every other 1px divider in the design uses.
	 */
	--line: var(--hairline);
	--display: var(--wp--preset--font-family--display);
	--body: var(--wp--preset--font-family--body);
	--mono: var(--wp--preset--font-family--mono);
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: var(--body);
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}

a {
	color: inherit;
	text-decoration: none;
}

/* Fieldsets default to min-width: min-content, which lets form contents push past narrow screens. */
fieldset {
	min-width: 0;
}

/* ==========================================================================
   3. Layout helpers
   ========================================================================== */

.wrap {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 40px;
}

.wrap-narrow {
	max-width: 800px;
	margin: 0 auto;
	padding: 0 40px;
}

.wrap-editorial {
	max-width: 820px;
	margin: 0 auto;
	padding: 0 40px;
}

.band {
	border-bottom: 0.5px solid var(--hairline);
}

.band.tint {
	background: var(--tint);
}

.band.white {
	background: var(--white);
}

/* ---------- SECTION HEADERS ---------- */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 10px;
}

.section-head h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 26px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.section-head .see-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.section-head .see-all:hover {
  text-decoration: underline;
}

/*
 * Content typography.
 *
 * The reset above zeroes every margin and padding, and the markup styles each heading
 * through its section's own class, so plain content (core blocks, classic editor and
 * plugin output) would otherwise render as unspaced browser defaults. These rules give
 * it the markup's type scale.
 *
 * Two kinds of content are matched:
 *   - Core blocks, by their class (.wp-block-heading, .wp-block-list …). The h2 is the
 *     markup's `.section-head h2` and also takes its 28px gap, since a core heading has
 *     no wrapper to carry it.
 *   - Anything inside `.default-body`, the content column of the default templates
 *     (page.php, single.php, 404.php), by element. That is where classic content and
 *     plugin output (Paid Memberships Pro, LearnDash) land. The container is wrapped in
 *     :where(), so these rules sit at element specificity and any plugin's own class
 *     selector still wins.
 *
 * The paragraph block renders a bare <p> with no class, so it is matched by position
 * instead: a direct child of the content area or of a layout container (group,
 * columns). Paragraphs inside ACF blocks are nested deeper and keep their own styles.
 * :where() keeps the selector at element specificity, so block styles still win.
 */
h1.wp-block-heading,
:where(.default-body) h1 {
  margin-bottom: 20px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h2.wp-block-heading,
:where(.default-body) h2 {
  margin-bottom: 28px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.3;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h3.wp-block-heading,
:where(.default-body) h3 {
  margin-bottom: 14px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.35;
  color: var(--ink);
}

h4.wp-block-heading,
:where(.default-body) h4 {
  margin-bottom: 12px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.4;
  color: var(--ink);
}

h5.wp-block-heading,
:where(.default-body) h5 {
  margin-bottom: 10px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
}

/* The h6 is the markup's mono eyebrow, the smallest label in the design. */
h6.wp-block-heading,
:where(.default-body) h6 {
  margin-bottom: 10px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* A heading that follows other content opens a new part of the text, so it gets room above. */
:where(.is-layout-flow, .is-layout-constrained, .default-body) > * + :where(h2, h3) {
  margin-top: 40px;
}

:where(.is-layout-flow, .is-layout-constrained, .default-body) > * + :where(h4, h5, h6) {
  margin-top: 28px;
}

:where(#content, .container, .is-layout-flow, .is-layout-constrained) > p {
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
}

/*
 * Links in running text. Global `a` drops colour and underline, which in prose leaves a link indistinguishable.
 * The wrappers are every place post content or a rich-text description is printed: .article-body on the
 * single templates (resource, event, research initiative, certificate, LearnDash step), the course .intro,
 * the parent resource's header, archive descriptions, underwriter descriptions and the contributor bio. Lists count only when
 * they are core list blocks or class-less, so the theme's own lists there (.more-list, .cert-list) keep their look.
 * Inside .default-body any class-less link counts, since plugins (PMPro) nest their notices and links below the wrapper's children.
 */
:where(#content, .container, .is-layout-flow, .is-layout-constrained, .default-body, .article-body, .intro, .resource-library-section .page-header .wrap-editorial, .listing-intro, .uw-card-desc, .profile-bio) > :where(p, :where(ul, ol):where(:not([class]), .wp-block-list), blockquote, table, figure, details) a:where(:not([class])),
:where(.default-body) a:where(:not([class])) {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, currentcolor 40%, transparent);
  transition: text-decoration-color 0.15s;
}

:where(#content, .container, .is-layout-flow, .is-layout-constrained, .default-body, .article-body, .intro, .resource-library-section .page-header .wrap-editorial, .listing-intro, .uw-card-desc, .profile-bio) > :where(p, :where(ul, ol):where(:not([class]), .wp-block-list), blockquote, table, figure, details) a:where(:not([class])):hover,
:where(.default-body) a:where(:not([class])):hover {
  text-decoration-color: currentcolor;
}

/* Lists: the reset strips the indent, which pushes the bullets outside the column. */
:where(ul, ol).wp-block-list,
:where(.default-body) :where(ul, ol):where(:not([class])) {
  margin-bottom: 18px;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
}

:where(.wp-block-list, .default-body) li {
  margin-bottom: 6px;
}

:where(.wp-block-list, .default-body) li > :where(ul, ol) {
  margin: 6px 0 0;
}

.wp-block-list li::marker,
:where(.default-body) li::marker {
  color: var(--ink-soft);
}

/* Quote and pull quote */
.wp-block-quote,
:where(.default-body) blockquote {
  margin: 28px 0;
  padding-left: 22px;
  border-left: 2px solid var(--primary);
  font-family: var(--display);
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink);
}

:where(.wp-block-quote, .default-body blockquote) p {
  margin-bottom: 10px;
  font-size: inherit;
  line-height: inherit;
}

:where(.wp-block-quote, .default-body blockquote) cite {
  display: block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Tables */
.wp-block-table,
:where(.default-body) table {
  margin-bottom: 24px;
}

:where(.wp-block-table, .default-body) table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.55;
}

:where(.wp-block-table, .default-body) :where(th, td) {
  padding: 10px 12px;
  border-bottom: 0.5px solid var(--hairline);
  text-align: left;
  vertical-align: top;
}

:where(.wp-block-table, .default-body) th {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Separator */
.wp-block-separator,
:where(.default-body) hr {
  margin: 40px 0;
  border: 0;
  border-top: 0.5px solid var(--hairline);
}

/* Images, captions, code */
:where(.default-body) :where(img, video, iframe) {
  max-width: 100%;
}

:where(.default-body) img {
  height: auto;
}

:where(.default-body) :where(figure, .wp-block-image, .wp-block-embed, .wp-block-video) {
  margin-bottom: 24px;
}

.wp-element-caption,
:where(.default-body) figcaption {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-soft);
}

:where(.default-body) :where(code, kbd, pre) {
  font-family: var(--mono);
  font-size: 0.9em;
}

:where(.default-body) :not(pre) > code {
  padding: 1px 5px;
  background: var(--tint);
  border-radius: 2px;
}

:where(.default-body) pre {
  margin-bottom: 24px;
  padding: 16px 18px;
  overflow-x: auto;
  background: var(--tint);
  border-radius: 3px;
  line-height: 1.6;
}

/* Classic editor alignment classes (blocks align through the block library instead). */
:where(.default-body) .alignleft {
  float: left;
  margin: 4px 24px 16px 0;
}

:where(.default-body) .alignright {
  float: right;
  margin: 4px 0 16px 24px;
}

:where(.default-body) .aligncenter {
  display: block;
  margin-right: auto;
  margin-left: auto;
}

/*
 * Paragraph block "Fine Print" style (registered in inc/default.php), for secondary
 * notes such as eligibility terms or contact details (the markup's `.contact-note`).
 * The class outranks the `:where(...) > p` rule above.
 */
.is-style-fine-print {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.is-style-fine-print a {
  font-weight: 600;
  color: var(--accent);
}

/*
 * Vertical rhythm of a full-width band. The bottom value varies per page in the
 * markup (72px / 76px / 60px, and a flat 64px or 76px on about, certification,
 * become-a-member and the home page); 56px 40px 72px is the most common.
 */
.section-pad {
	padding: 56px 40px 72px;
}

.eyebrow {
	font-family: var(--mono);
	font-size: 13px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink-soft);
}

/* ==========================================================================
   4. Header / navigation
   ========================================================================== */

/*
 * The header row is a <nav> in the markup and a <div> in the theme, where the menu
 * brings its own <nav> — so this matches on the class alone and fits both.
 */
.top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 40px;
	border-bottom: 0.5px solid var(--hairline);
}

.logo {
	display: flex;
	align-items: center;
	gap: 10px;
}

.logo-mark {
	width: 34px;
	height: 34px;
}

.logo-img {
	height: 57px;
	width: auto;
	display: block;
}

/* Not in the markup: the logo links home, so it answers the pointer like the other links. */
.logo a:hover,
.footer-left a:hover {
	opacity: 0.8;
}

/*
 * The markup had bare <a> children inside .nav-links; wp_nav_menu renders nav > ul > li,
 * so the flex row moves from the container to the list, which also resets the markers.
 * Typography stays on the container and cascades to the anchors, which inherit colour.
 */
.nav-links {
	font-size: 13.5px;
	font-weight: 500;
	color: var(--ink);
}

.nav-links > ul {
	display: flex;
	align-items: center;
	gap: 34px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Positioning context for the sub-menu each item may open. */
.nav-links li {
	position: relative;
}

.nav-links a:hover {
	color: var(--primary);
}

/*
 * The markup carries 'active' on the <a>; change_menu_classes() adds it to the <li>,
 * next to the current-menu-* classes core already puts there.
 */
.nav-links .active > a {
	color: var(--primary);
	font-weight: 600;
}

.nav-right {
	display: flex;
	align-items: center;
	gap: 22px;
}

.login-link {
	font-size: 13.5px;
	font-weight: 500;
	color: var(--ink-soft);
}

.login-link:hover {
	color: var(--primary);
}

/* --- Dropdown ------------------------------------------------------------- */

/*
 * What the markup calls .nav-dropdown, .nav-dropdown-trigger and .nav-dropdown-menu is,
 * in menu output, the parent <li>, that item's own <a>, and the .drop-holder the walker
 * wraps every sub-menu in. Hover and focus-within are read off the <li>, which contains
 * both the trigger and the panel — as .nav-dropdown did.
 */
.nav-links .menu-item-has-children > a {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.nav-links .chevron {
	/* The markup sets this inline on every chevron; it optically centres the glyph. */
	margin-top: 1px;
	transition: transform 0.15s ease;
}

.nav-links li:hover > a .chevron,
.nav-links li:focus-within > a .chevron {
	transform: rotate(180deg);
}

.drop-holder {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 40;
	min-width: 150px;
	margin-top: 14px;
	padding: 6px;
	background: var(--white);
	border: 1px solid var(--line);
	box-shadow: 0 10px 24px rgb(20 30 45 / 10%);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}

.nav-links li:hover > .drop-holder,
.nav-links li:focus-within > .drop-holder {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/*
 * The prototype nests one level only. An editor-managed menu can go deeper, so the third
 * level and below open beside their parent instead of on top of it.
 */
.drop-holder .drop-holder {
	top: 0;
	left: 100%;
	margin-top: 0;
}

.drop-holder ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.drop-holder a {
	display: block;
	padding: 8px 12px;
	font-size: 13.5px;
	font-weight: 500;
	color: var(--ink);
	white-space: nowrap;
}

.drop-holder a:hover {
	color: var(--primary);
	background: var(--tint);
}

/* --- Mobile menu ----------------------------------------------------------- */

/*
 * Not in the markup. The toggle and its panel (header.php, assets/js/main.js) only take
 * effect below the tablet breakpoint — see "Responsive". From it up, the button is hidden
 * and the panel generates no box, so the menu and the login/join links stay direct flex
 * items of .top, laid out exactly as in the markup.
 */
.menu-toggle {
	display: none;
}

.header-panel {
	display: contents;
}

/* ==========================================================================
   5. Buttons
   ========================================================================== */

.btn-primary {
	display: inline-block;
	padding: 9px 18px;
	font-size: 13px;
	font-weight: 600;
	color: var(--white);
	background: var(--primary);
	border-radius: 3px;
}

.btn-primary:hover {
	background: #233c5c;
}

.btn-accent {
	display: inline-block;
	padding: 12px 22px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--white);
	background: var(--accent);
	border-radius: 3px;
}

.btn-accent:hover {
	background: #c02f2f;
}

.btn-outline {
	display: inline-block;
	padding: 11px 22px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--primary);
	border: 1px solid var(--primary);
	border-radius: 3px;
}

.btn-outline[aria-disabled='true'] {
	opacity: 0.45;
	cursor: not-allowed;
}

/* Not in the markup, which gives the outline button no hover; it fills like the solid ones darken. */
.btn-outline:hover:not([aria-disabled='true']) {
	color: var(--white);
	background: var(--primary);
}

/* ==========================================================================
   6. Breadcrumb
   ========================================================================== */

.breadcrumb {
	margin-bottom: 20px;
	font-family: var(--mono);
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-soft);
}

.breadcrumb a:hover {
	color: var(--primary);
}

/* ==========================================================================
   7. Underwriter logo strip
   ========================================================================== */

.underwriters-label {
	text-align: center;
	margin-bottom: 30px;
}

.underwriters-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 36px 44px;
}

.uw-logo {
	display: flex;
	align-items: center;
	gap: 8px;
	opacity: 0.75;
	filter: grayscale(1);
}

.uw-logo svg {
	height: 48px;
	width: auto;
}

/* Not in the markup: a hovered logo regains its colour. */
.uw-logo:hover {
	opacity: 1;
	filter: none;
}

.uw-logo span {
	font-family: var(--body);
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.01em;
	color: var(--ink-soft);
}

/* ==========================================================================
   8. Footer
   ========================================================================== */

footer {
	padding: 40px;
}

.footer-menu {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px;
	padding: 52px 0 40px;
	border-bottom: 1px solid var(--hairline);
}

.footer-col h4 {
	margin-bottom: 14px;
	font-family: var(--mono);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ink);
}

.footer-col ul {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-col a {
	font-size: 13.5px;
	color: var(--ink-soft);
}

.footer-col a:hover {
	color: var(--primary);
}

/*
 * The four detail pages additionally set max-width:1180px; margin:0 auto here because
 * their footer row is not wrapped in .wrap. Use .wrap in the template instead.
 */
.footer-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
	padding-top: 24px;
}

.footer-left {
	display: flex;
	align-items: center;
	gap: 12px;
}

.footer-left .logo-mark {
	display: block;
	width: 44px;
	height: 44px;
	border-radius: 50%;
}

.footer-left span {
	font-size: 12.5px;
	color: var(--ink-soft);
}

/*
 * The markup had bare <a> children here; wp_nav_menu renders nav > ul > li, so the flex
 * row moves from the container to the list and the markers are reset. Size and colour
 * stay on the container and cascade to the anchors, which inherit their colour.
 */
.footer-links {
	font-size: 12.5px;
	color: var(--ink-soft);
}

.footer-links ul {
	display: flex;
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-links a:hover {
	color: var(--primary);
}

.footer-social {
	display: flex;
	align-items: center;
	gap: 14px;
}

.footer-social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border: 1px solid var(--hairline);
	border-radius: 5px;
	color: var(--ink-soft);
	transition: border-color 0.15s, color 0.15s;
}

.footer-social a:hover {
	border-color: var(--primary);
	color: var(--primary);
}

/* The <img> is swapped for inline SVG by SVG Support's script; size it the same until then. */
.footer-social :is(svg, img) {
	width: 16px;
	height: 16px;
}

/* ==========================================================================
   9. Single event (single-event.php)
   Rules from markup/event-detail.html. The mockup's view toggle and access banner
   are review aids and are not included; the template renders the right state itself.
   ========================================================================== */

/* Header */
.article-header {
	padding: 44px 0 0;
}

.article-header .breadcrumb {
	margin-bottom: 22px;
}

.article-header .r-meta-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 18px;
	font-family: var(--mono);
	font-size: 11.5px;
	color: var(--ink-soft);
}

.article-header .r-meta-row .dot {
	color: var(--hairline);
}

.article-header .r-meta-row .access {
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--accent);
}

.article-header h1 {
	margin-bottom: 16px;
	font-family: var(--display);
	font-size: 32px;
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: -0.01em;
	color: var(--ink);
}

.article-header .r-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 8px;
}

.r-tag {
	display: inline-block;
	padding: 3px 8px;
	border: 0.5px solid var(--primary);
	border-radius: 2px;
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--primary);
}

/* Body */
.article-body {
	padding-top: 32px;
}

.article-body p {
	max-width: 720px;
	margin-bottom: 18px;
	font-size: 16px;
	line-height: 1.75;
	color: var(--ink);
}

/* Per-day schedule (multi-day events with their own times; not in the markup) */
.event-schedule {
	margin-top: 28px;
}

.event-schedule h2 {
	margin-bottom: 12px;
	font-family: var(--display);
	font-size: 19px;
	font-weight: 500;
}

.event-schedule li {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	padding: 10px 0;
	border-bottom: 0.5px solid var(--hairline);
	font-size: 14px;
}

.event-schedule .es-date {
	min-width: 240px;
	font-weight: 600;
	color: var(--ink);
}

.event-schedule .es-time {
	font-family: var(--mono);
	font-size: 13px;
	color: var(--ink-soft);
}

/* Registration panel (visitor, ineligible, external, ended) */
.register-panel {
	margin-top: 36px;
	padding: 28px 30px;
	background: var(--tint);
	border: 0.5px solid var(--hairline);
	border-radius: 4px;
}

.register-panel .rp-eyebrow {
	margin-bottom: 10px;
	font-family: var(--mono);
	font-size: 12.5px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--primary);
}

.register-panel p {
	max-width: 600px;
	margin-bottom: 20px;
	font-size: 14px;
	line-height: 1.6;
	color: var(--ink);
}

.register-panel p:last-child {
	margin-bottom: 0;
}

.rp-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

/* Registration status + live stream (members) */
.registered-banner {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 36px;
	font-family: var(--mono);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--primary);
}

.registered-banner.not-registered span {
	color: var(--accent);
}

.video-frame {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 16 / 9;
	margin-top: 16px;
	overflow: hidden;
	background: var(--ink);
	border-radius: 4px;
}

.video-frame svg.grid-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	color: var(--tint);
	opacity: 0.35;
}

.video-frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.play-button {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	color: var(--white);
	border: 1.5px solid var(--white);
	border-radius: 50%;
}

.video-label {
	position: absolute;
	bottom: 16px;
	left: 18px;
	z-index: 2;
	font-family: var(--mono);
	font-size: 10.5px;
	letter-spacing: 0.04em;
	color: rgb(255 255 255 / 75%);
}

.media-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-top: 18px;
}

.media-actions button.btn-accent {
	border: 0;
	font-family: inherit;
	cursor: pointer;
}

/*
 * Registration success message (single-event.php): the Confidentiality Note block's icon and
 * text, boxed like the registration panel since it opens the body instead of closing it.
 */
.article-body .event-registration-success {
	margin: 0 0 32px;
	padding: 16px 20px;
	background: var(--tint);
	border: 0.5px solid var(--hairline);
	border-radius: 4px;
}

.event-register-form button {
	font-family: inherit;
	cursor: pointer;
}

.event-register-form .btn-accent {
	border: 0;
}

.access-note {
	max-width: 480px;
	font-size: 12px;
	line-height: 1.5;
	color: var(--ink-soft);
}

/* Speakers */
.speakers-block {
	margin-top: 44px;
	padding-top: 28px;
	border-top: 0.5px solid var(--hairline);
}

.speakers-block h2 {
	margin-bottom: 20px;
	font-family: var(--display);
	font-size: 19px;
	font-weight: 500;
}

.speaker-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px;
}

.speaker {
	display: flex;
	align-items: center;
	gap: 18px;
}

.speaker-avatar {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 120px;
	height: 120px;
	overflow: hidden;
	background: var(--tint);
	border: 0.5px solid var(--hairline);
	border-radius: 4px;
}

.speaker-avatar svg {
	color: var(--primary);
}

.speaker-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
}

.speaker-name {
	font-size: 17px;
	font-weight: 600;
	color: var(--ink);
}

.speaker-name a:hover {
	color: var(--primary);
}

.speaker-role {
	margin-top: 4px;
	font-size: 15px;
	line-height: 1.4;
	color: var(--ink-soft);
}

/*
 * Bottom blocks (template-parts/bottom-blocks.php): the Membership CTA and Underwriters
 * bands every single template renders from Theme Options. The gap sits on the wrapper,
 * so it holds whichever band comes first and whatever the body ends with. The markup
 * uses 64px above the CTA and 56px above Underwriters; 56px is used for both.
 */
.bottom-blocks {
	margin-top: 56px;
}

/* ==========================================================================
   10. Single research initiative (single-research-initiative.php)
   Rules from markup/research-initiative-detail.html. Shares the article header
   and body rules of section 9; only the differences are listed here.
   ========================================================================== */

.article-header .r-meta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 16px;
	font-family: var(--mono);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--accent);
}

.single-research-initiative .article-header h1 {
	margin-bottom: 20px;
}

.single-research-initiative .article-body {
	padding-top: 6px;
}

/*
 * Detail sections: a Group block with the "detail-section" class. The markup's 700px
 * cap on the paragraph and benefit list is set on the section instead, because the
 * group's constrained layout centres its children with `margin: auto !important`,
 * which would shift a narrower child off the column's left edge.
 */
.detail-section {
	max-width: 700px;
	margin-top: 36px;
}

.detail-section h2 {
	margin-bottom: 12px;
	font-family: var(--display);
	font-size: 19px;
	font-weight: 500;
	line-height: normal;
	letter-spacing: normal;
	color: var(--ink);
}

.detail-section p {
	font-size: 14.5px;
	line-height: 1.7;
	color: var(--ink);
}

.detail-section .benefit-list {
	margin-bottom: 0;
}

/* More Research */
.more-resources {
	margin-top: 44px;
	padding-top: 32px;
	border-top: 0.5px solid var(--hairline);
}

.more-resources h2 {
	margin-bottom: 18px;
	font-family: var(--display);
	font-size: 19px;
	font-weight: 500;
}

.more-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.more-list li {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 0;
	border-top: 0.5px solid var(--hairline);
}

.more-list li:first-child {
	border-top: none;
}

.more-list a {
	font-size: 14.5px;
	font-weight: 500;
	color: var(--ink);
}

.more-list a:hover {
	color: var(--accent);
}

.more-list .m-date {
	font-family: var(--mono);
	font-size: 13px;
	color: var(--ink-soft);
	white-space: nowrap;
}

.more-resources .view-all {
	display: inline-block;
	margin-top: 20px;
	font-size: 13px;
	font-weight: 600;
	color: var(--accent);
}

.more-resources .view-all:hover {
	text-decoration: underline;
}

/* ==========================================================================
   11. Single course (single-sfwd-courses.php)
   Rules from markup/course-detail.html. Shares the article header and More
   Research rules of sections 9 and 10; only the differences are listed here.
   ========================================================================== */

/* Header */
.c-meta-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 18px;
	font-family: var(--mono);
	font-size: 11.5px;
	color: var(--ink-soft);
}

.c-meta-row .dot {
	color: var(--hairline);
}

.single-sfwd-courses .article-header h1 {
	max-width: 680px;
	font-size: 34px;
	line-height: 1.22;
}

.article-header .intro {
	max-width: 680px;
	margin-bottom: 8px;
	font-size: 16px;
	line-height: 1.7;
	color: var(--ink);
}

.article-header .intro p + p {
	margin-top: 8px;
}

.cert-note {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 18px;
	font-size: 13px;
	color: var(--ink-soft);
}

.cert-note svg {
	flex-shrink: 0;
	color: var(--primary);
}

.cert-note a {
	font-weight: 600;
	color: var(--accent);
}

.cert-note a:hover {
	text-decoration: underline;
}

/* Enrollment panel */
.enroll-panel {
	margin-top: 32px;
	padding: 26px 30px;
	background: var(--tint);
	border: 0.5px solid var(--hairline);
	border-radius: 4px;
}

.enroll-panel .ep-label {
	font-family: var(--mono);
	font-size: 12.5px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--primary);
}

.enroll-panel p {
	margin: 8px 0 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--ink);
}

.enroll-panel .btn-accent {
	margin-top: 20px;
}

/* Module list */
.modules-section {
	padding-top: 56px;
	padding-bottom: 20px;
}

.modules-section h2 {
	margin-bottom: 24px;
	font-family: var(--display);
	font-size: 22px;
	font-weight: 500;
	color: var(--ink);
}

.module-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.module-row {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 20px 0;
	border-top: 0.5px solid var(--hairline);
}

.module-row:last-child {
	border-bottom: 0.5px solid var(--hairline);
}

.module-num {
	flex-shrink: 0;
	width: 26px;
	font-family: var(--mono);
	font-size: 13px;
	color: var(--ink-soft);
}

.module-name {
	flex: 1;
	font-size: 15px;
	font-weight: 600;
	color: var(--ink);
}

a.module-name:hover {
	color: var(--accent);
}

.module-formats {
	display: flex;
	flex-shrink: 0;
	gap: 8px;
}

.module-formats span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	background: var(--tint);
	border: 0.5px solid var(--hairline);
	border-radius: 3px;
	color: var(--primary);
}

/* More Courses */
.single-sfwd-courses .article-body {
	margin-bottom: 56px;
}

.single-sfwd-courses .more-resources {
	margin-top: 16px;
}

.single-sfwd-courses .more-list li {
	padding: 12px 0;
}

/* ==========================================================================
   12. Course steps (template-parts/content-single/learndash-step.php)
   Lessons, topics and quizzes: the article header of section 11 above
   LearnDash's ld30 content, which keeps its own styles.
   ========================================================================== */

/* The theme header shows the trail (see sma_learndash_hide_ld30_breadcrumbs()),
   so only ld30's status bubble is left; quizzes have none, so the bar goes too. */
.ld-step-body .learndash-wrapper .ld-breadcrumbs-segments {
	display: none;
}

.ld-step-body .learndash-wrapper .ld-breadcrumbs:not(:has(.ld-status)) {
	display: none;
}

.ld-step-body {
	margin-bottom: 56px;
}

/* ==========================================================================
   13. Single resource (single-resource.php)
   Rules from markup/resource-detail.html. Shares the article header and body
   rules of section 9 and the lists of section 10; only the differences are
   listed here. The mockup's view toggle and access banner are review aids and
   are not included; the template renders the right state itself.
   ========================================================================== */

/* Header */
.single-resource .article-header .r-meta-row {
	gap: 14px;
	margin-bottom: 16px;
}

.single-resource .r-type {
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent);
}

.single-resource .r-date {
	font-size: 13px;
}

.single-resource .article-header h1 {
	margin-bottom: 18px;
}

/* Video + downloads (members) */
.media-block {
	margin-top: 32px;
}

.media-block .video-frame {
	margin-top: 0;
}

.single-resource .video-frame {
	background: none;
	border-radius: 0;
}

.media-block .access-note {
	max-width: 520px;
}

.media-downloads {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.media-downloads .btn-outline {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	font-size: 13px;
}

/* Gate (visitors and members without access) */
.gate-frame {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	aspect-ratio: 16 / 9;
	padding: 32px 36px;
	background: var(--tint);
	border: 0.5px solid var(--hairline);
	border-radius: 4px;
}

.gate-frame svg {
	margin-bottom: 16px;
	color: var(--primary);
}

.gate-frame h2 {
	margin-bottom: 8px;
	font-family: var(--display);
	font-size: 19px;
	font-weight: 500;
	color: var(--ink);
}

.gate-frame p {
	max-width: 420px;
	margin-bottom: 20px;
	font-size: 13.5px;
	line-height: 1.55;
	color: var(--ink-soft);
}

.gate-ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* Speakers / authors */
.contributor-block {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px 36px;
	margin-top: 40px;
	padding-top: 28px;
	border-top: 0.5px solid var(--hairline);
}

.contributor {
	display: flex;
	align-items: center;
	gap: 20px;
}

.contrib-avatar {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 120px;
	height: 120px;
	overflow: hidden;
	color: var(--primary);
	background: var(--tint);
	border: 0.5px solid var(--hairline);
	border-radius: 4px;
}

.contrib-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
}

.contrib-name {
	font-size: 17px;
	font-weight: 600;
	color: var(--ink);
}

.contrib-name a:hover {
	color: var(--primary);
}

.contrib-role {
	margin-top: 4px;
	font-size: 15px;
	color: var(--ink-soft);
}

/* Contributor group archive: the grid without the in-article divider */
.contributor-block.is-listing {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

/* More Resources */
.single-resource .more-resources {
	margin-top: 56px;
}

/* ==========================================================================
   14. Single certification (single-sfwd-certificates.php)
   No markup: the article header, course list and More Courses of section 11,
   with the card lists of the certification blocks.
   ========================================================================== */

/* Header */
.single-sfwd-certificates .article-header h1 {
	max-width: 680px;
	margin-bottom: 10px;
	font-size: 34px;
	line-height: 1.22;
}

.cert-title {
	display: flex;
	align-items: flex-start;
	gap: 24px;
}

.cert-title-badge {
	flex-shrink: 0;
	width: 72px;
}

.cert-title-badge img,
.cert-title-badge svg {
	display: block;
	width: 100%;
	height: auto;
}

/* Body */
.cert-detail {
	padding-bottom: 40px;
}

.cert-detail h2 {
	margin: 28px 0 12px;
	font-family: var(--display);
	font-size: 22px;
	font-weight: 500;
	color: var(--ink);
}

.cert-detail h2:first-child {
	margin-top: 0;
}

.cert-list {
	max-width: 720px;
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
}

.cert-list li {
	padding: 6px 0;
	font-size: 15px;
	line-height: 1.6;
	color: var(--ink);
}

.cert-list li::before {
	content: "–  ";
	color: var(--ink-soft);
}

/* More Certifications */
.cert-more {
	margin-bottom: 56px;
}

.cert-more .more-resources {
	margin-top: 16px;
}

.single-sfwd-certificates .more-list li {
	padding: 12px 0;
}

/* ==========================================================================
   15. Single contributor (single-contributor.php)
   No markup: the article header of section 9 with the Leadership card of
   markup/about.html (photo column beside name, title, bio and LinkedIn link).
   ========================================================================== */

.contributor-profile {
	padding-bottom: 72px;
}

.profile {
	display: grid;
	grid-template-columns: 200px minmax(0, 1fr);
	gap: 36px;
	align-items: start;
}

/* The photo keeps its own proportions (contributor_photo_* sizes are not cropped). */
.profile-photo {
	overflow: hidden;
	border: 0.5px solid var(--hairline);
	border-radius: 4px;
}

.profile-photo img {
	display: block;
	width: 100%;
	height: auto;
}

.profile-photo.is-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1;
	color: var(--primary);
	background: var(--tint);
}

.contributor-profile h1 {
	margin-bottom: 6px;
}

.profile-job-title {
	font-size: 15px;
	font-weight: 600;
	color: var(--accent);
}

.profile-organization {
	margin-top: 2px;
	font-size: 15px;
	color: var(--ink-soft);
}

.profile-bio {
	margin-top: 20px;
}

.profile-bio p {
	margin-bottom: 14px;
	font-size: 15.5px;
	line-height: 1.7;
	color: var(--ink);
}

.profile-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 16px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--primary);
}

.profile-link:hover {
	color: var(--accent);
}

/* ==========================================================================
   16. Default templates
   page.php, single.php, 404.php, archive.php, search.php, index.php.
   There is no markup for these pages. Singular views reuse the article header and
   narrow column of the detail pages (section 9); listings reuse the tinted page
   header and editorial column of markup/resources.html and markup/events.html.
   ========================================================================== */

/* Singular: content column */
.default-body {
	padding-bottom: 72px;
}

/* .article-body sets paragraphs at 16px; lists in the same column follow suit. */
.default-body :where(ul, ol):where(:not([class])) {
	font-size: 16px;
}

.entry-thumbnail {
	margin-bottom: 28px;
}

.entry-thumbnail img {
	display: block;
	width: 100%;
	height: auto;
}

.edit-link {
	margin-top: 24px;
	font-family: var(--mono);
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.edit-link a {
	color: var(--primary);
}

.edit-link a:hover {
	color: var(--accent);
}

/*
 * Paid Memberships Pro's account links. Where the plugin prints only a bare-text
 * notice before them (membership billing without a membership) nothing spaces the two;
 * after a .pmpro_section the margins collapse into the section's larger one.
 */
.default-body .pmpro_actions_nav {
	margin-top: 24px;
}

/*
 * Checkout asks for an email only; the login is generated (inc/membership.php).
 * Scoped under .pmpro to outrank PMPro's nested `.pmpro .pmpro_form_field { display: flex }`.
 */
.pmpro .pmpro_form_field-username {
	display: none;
}

.article-header .r-meta-row a:hover {
	color: var(--primary);
}

a.r-tag:hover {
	color: var(--white);
	background: var(--primary);
}

.post-row-type {
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--accent);
}

/* 404 */
.not-found-actions {
	margin-top: 28px;
}

/* Previous / next post */
.post-navigation {
	margin-top: 48px;
	padding-top: 24px;
	border-top: 0.5px solid var(--hairline);
}

.post-navigation .nav-links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	font-size: inherit;
}

.post-navigation .nav-next {
	grid-column: 2;
	text-align: right;
}

.post-navigation a {
	display: block;
}

.post-navigation .nav-subtitle {
	display: block;
	margin-bottom: 6px;
	font-family: var(--mono);
	font-size: 11.5px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-soft);
}

.post-navigation .nav-title {
	font-family: var(--display);
	font-size: 17px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--ink);
}

.post-navigation a:hover .nav-title {
	color: var(--primary);
}

/* Listing: header */
.listing-header {
	padding: 34px 40px;
	background: var(--tint);
}

.listing-header h1 {
	font-family: var(--display);
	font-weight: 500;
	font-size: 33px;
	line-height: 1.25;
	letter-spacing: -0.01em;
	color: var(--ink);
}

.listing-intro {
	max-width: 560px;
	margin-top: 10px;
	font-size: 15px;
	line-height: 1.55;
	color: var(--ink-soft);
}

.listing-intro p + p {
	margin-top: 8px;
}

.listing-header .search-form {
	margin-top: 20px;
}

/* Listing: posts */
.list-section {
	padding: 26px 40px 68px;
}

.post-row {
	display: flex;
	gap: 28px;
	align-items: flex-start;
	padding: 26px 0;
	border-bottom: 0.5px solid var(--hairline);
}

.post-row:first-child {
	padding-top: 0;
}

.post-row-text {
	flex: 1;
	min-width: 0;
}

.post-row .r-meta-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
	font-family: var(--mono);
	font-size: 11.5px;
	color: var(--ink-soft);
}

.post-row .r-meta-row .dot {
	color: var(--hairline);
}

.post-row h2 {
	margin-bottom: 8px;
	font-family: var(--display);
	font-weight: 500;
	font-size: 21px;
	line-height: 1.35;
	color: var(--ink);
}

.post-row h2 a:hover {
	color: var(--primary);
}

.post-row-excerpt p {
	font-size: 14.5px;
	line-height: 1.65;
	color: var(--ink-soft);
}

.post-row-thumb {
	flex: 0 0 168px;
}

.post-row-thumb img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 3px;
}

.no-results p {
	margin-bottom: 18px;
	font-size: 16px;
	line-height: 1.7;
	color: var(--ink);
}

/*
 * Listing: pagination. Scoped to .navigation, which the_posts_pagination() adds: the
 * Events and Resources list blocks print their own <div class="pagination"> with the
 * same page-numbers markup and style it differently.
 */
.navigation.pagination {
	margin-top: 36px;
}

.navigation.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	font-family: var(--mono);
	font-size: 13px;
	font-weight: 400;
}

.navigation.pagination .page-numbers {
	display: inline-block;
	min-width: 36px;
	padding: 8px 10px;
	border: 0.5px solid var(--hairline);
	border-radius: 3px;
	text-align: center;
	color: var(--ink);
}

.navigation.pagination .page-numbers.current {
	color: var(--white);
	background: var(--primary);
	border-color: var(--primary);
}

.navigation.pagination .page-numbers.dots {
	border-color: transparent;
}

.navigation.pagination a.page-numbers:hover {
	color: var(--primary);
	border-color: var(--primary);
}

.navigation.pagination .prev,
.navigation.pagination .next {
	padding-right: 14px;
	padding-left: 14px;
}

/* Search form (searchform.php) */
.search-form {
	display: flex;
	gap: 8px;
	max-width: 520px;
}

.default-body .search-form {
	margin: 24px 0;
}

.search-field-holder {
	display: flex;
	flex: 1;
	align-items: center;
	gap: 10px;
	padding: 0 14px;
	border: 0.5px solid var(--hairline);
	border-radius: 3px;
	color: var(--ink-soft);
	background: var(--white);
}

.search-field-holder:focus-within {
	border-color: var(--primary);
}

.search-field {
	flex: 1;
	min-width: 0;
	padding: 11px 0;
	border: 0;
	outline: 0;
	font: inherit;
	font-size: 14px;
	color: var(--ink);
	background: transparent;
}

.search-submit {
	border: 0;
	font-family: inherit;
	cursor: pointer;
}

/* Comments (comments.php) */
.comments,
.respond {
	margin-top: 48px;
	padding-top: 24px;
	border-top: 0.5px solid var(--hairline);
}

.commentlist-item {
	margin-bottom: 24px;
}

.commentlist-item .commentlist-item {
	margin: 20px 0 0 40px;
}

.commentlist-item > .comment {
	display: flex;
	gap: 16px;
}

.avatar-holder img {
	display: block;
	border-radius: 50%;
}

.commentlist-holder {
	flex: 1;
	min-width: 0;
}

.commentlist-holder .meta {
	margin-bottom: 8px;
	font-family: var(--mono);
	font-size: 11.5px;
	color: var(--ink-soft);
}

/* The date permalink is metadata, not a prose link. */
.commentlist-holder .meta a {
	color: inherit;
	text-decoration: none;
}

.commentlist-holder .meta a:hover {
	color: var(--primary);
}

.commentlist-holder p {
	font-size: 15px;
}

.comment-reply-link,
.comment-edit-link {
	font-size: 13px;
	font-weight: 600;
	color: var(--accent);
}

.comment-reply-link:hover,
.comment-edit-link:hover {
	text-decoration: underline;
}

.comment-form p {
	margin-bottom: 16px;
}

.comment-form label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 600;
}

.comment-form :where(input[type='text'], input[type='email'], input[type='url'], textarea) {
	width: 100%;
	padding: 10px 12px;
	border: 0.5px solid var(--hairline);
	border-radius: 3px;
	font: inherit;
	font-size: 14px;
	color: var(--ink);
}

.comment-form :where(input, textarea):focus {
	border-color: var(--primary);
	outline: 0;
}

.comment-form .comment-form-cookies-consent {
	display: flex;
	gap: 8px;
	align-items: baseline;
}

.comment-form .comment-form-cookies-consent label {
	display: inline;
	font-weight: 400;
}

.comment-form input[type='submit'] {
	padding: 11px 22px;
	border: 0;
	border-radius: 3px;
	font: inherit;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--white);
	background: var(--primary);
	cursor: pointer;
}

.comment-form input[type='submit']:hover {
	background: #233c5c;
}

/* ==========================================================================
   17. Responsive
   ========================================================================== */

/*
 * Mobile menu. The desktop row (logo, six items, login and join) stops fitting a little
 * below 1024px, so from there down the menu and the links collapse behind a toggle.
 * The open state is read off the button's aria-expanded, which main.js maintains, and
 * the panel opens in the page flow below the bar rather than over the content.
 * Sub-menus are listed inline under their parent, so they need no hover or JavaScript.
 */
@media (max-width: 1023px) {
	.top {
		flex-wrap: wrap;
	}

	.menu-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 40px;
		height: 40px;
		margin-right: -9px;
		padding: 0;
		border: 0;
		color: var(--ink);
		background: none;
		cursor: pointer;
	}

	.menu-toggle:hover {
		color: var(--primary);
	}

	/* Three bars, drawn as the span and its two pseudo-elements; they turn into a cross when open. */
	.menu-toggle-icon,
	.menu-toggle-icon::before,
	.menu-toggle-icon::after {
		display: block;
		width: 20px;
		height: 1.5px;
		background: currentcolor;
		transition: transform 0.2s ease, background-color 0.2s ease;
	}

	.menu-toggle-icon {
		position: relative;
	}

	.menu-toggle-icon::before,
	.menu-toggle-icon::after {
		position: absolute;
		left: 0;
		content: '';
	}

	.menu-toggle-icon::before {
		top: -6px;
	}

	.menu-toggle-icon::after {
		top: 6px;
	}

	.menu-toggle[aria-expanded='true'] .menu-toggle-icon {
		background-color: transparent;
	}

	.menu-toggle[aria-expanded='true'] .menu-toggle-icon::before {
		transform: translateY(6px) rotate(45deg);
	}

	.menu-toggle[aria-expanded='true'] .menu-toggle-icon::after {
		transform: translateY(-6px) rotate(-45deg);
	}

	.header-panel {
		display: none;
		flex-basis: 100%;
		margin-top: 14px;
		border-top: 0.5px solid var(--hairline);
	}

	.menu-toggle[aria-expanded='true'] + .header-panel {
		display: block;
	}

	.nav-links {
		font-size: 15px;
	}

	.nav-links > ul {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.nav-links > ul > li {
		border-bottom: 0.5px solid var(--hairline);
	}

	.nav-links .menu-item > a {
		display: block;
		padding: 14px 0;
	}

	.nav-links .chevron {
		display: none;
	}

	.drop-holder,
	.drop-holder .drop-holder {
		position: static;
		min-width: 0;
		margin: -4px 0 0;
		padding: 0 0 10px 16px;
		border: 0;
		background: none;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
		transition: none;
	}

	.drop-holder .drop-holder {
		padding-bottom: 0;
	}

	.nav-links .drop-holder a {
		padding: 8px 0;
		font-size: 14.5px;
		color: var(--ink-soft);
		white-space: normal;
	}

	.nav-links .drop-holder a:hover {
		color: var(--primary);
		background: none;
	}

	.nav-right {
		padding: 18px 0 6px;
	}
}

@media (max-width: 900px) {
	.footer-menu {
		grid-template-columns: repeat(2, 1fr);
		gap: 28px 20px;
	}
}

@media (max-width: 880px) {
	.module-row {
		gap: 12px;
	}

	.module-name {
		font-size: 14px;
	}
}

@media (max-width: 560px) {
	.listing-header {
		padding: 28px 0;
	}

	.list-section {
		padding-top: 22px;
		padding-bottom: 56px;
	}

	.post-row {
		flex-direction: column-reverse;
		gap: 16px;
	}

	.post-row-thumb {
		flex-basis: auto;
		width: 100%;
	}

	.post-navigation .nav-links {
		grid-template-columns: 1fr;
	}

	.speaker-row,
	.contributor-block {
		grid-template-columns: 1fr;
	}

	.profile {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.profile-photo {
		width: 160px;
	}

	.post-navigation .nav-next {
		grid-column: auto;
		text-align: left;
	}

	.search-form {
		flex-direction: column;
	}

	.gate-frame {
		aspect-ratio: auto;
		padding: 28px 24px;
	}

	.footer-menu {
		grid-template-columns: 1fr;
		gap: 24px;
	}
}
