/**
 * Public listings: the project catalogue, a member's page, a single project.
 */

.arm-catalog,
.arm-profile,
.arm-single-project {
	padding-block: 56px 80px;
}

/* ------------------------------------------------------------------ filter */

.arm-filter {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 280px auto;
	align-items: start;
	gap: 24px;
	margin: 24px 0 32px;
	padding: 22px 24px;
	background: var(--arm-surface);
	border: 1px solid var(--arm-line);
	border-radius: 14px;
}

.arm-filter__authors {
	min-width: 0;
}

.arm-filter__author-search {
	margin-bottom: 8px;
}

.arm-filter__list {
	max-height: 190px;
	overflow-y: auto;
	border: 1px solid var(--arm-line);
	border-radius: 8px;
}

.arm-filter__option {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 12px;
	font-size: 13px;
	cursor: pointer;
}

.arm-filter__option:hover {
	background: var(--arm-bg);
}

.arm-filter__option input {
	flex: none;
	accent-color: var(--arm-brown);
}

.arm-filter__option[hidden] {
	display: none;
}

.arm-filter__empty {
	margin: 8px 0 0;
	font-size: 12px;
	color: var(--arm-muted);
}

.arm-filter__actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-top: 26px;
}

.arm-catalog__count {
	margin: 0 0 20px;
	font-size: 13px;
	color: var(--arm-muted);
}

/* -------------------------------------------------------------------- grid */

.arm-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 24px;
}

.arm-tile-card {
	display: flex;
	flex-direction: column;
	background: var(--arm-surface);
	border: 1px solid var(--arm-line);
	border-radius: 12px;
	overflow: hidden;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.arm-tile-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* The counters are absolutely positioned inside this link; without a containing
   block they escape and pile up over whatever is at the top of the page. */
.arm-tile-card__media {
	position: relative;
	display: block;
}

.arm-tile-card__media img {
	display: block;
	width: 100%;
	height: 190px;
	object-fit: cover;
}

.arm-tile-card__stats {
	position: absolute;
	top: 10px;
	right: 10px;
}

.arm-tile-card__body {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 16px 18px 18px;
}

.arm-tile-card__title {
	margin: 0;
	font-size: 17px;
	letter-spacing: 0.02em;
}

.arm-tile-card__title a {
	text-decoration: none;
}

.arm-tile-card__author {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	font-size: 12px;
	color: var(--arm-muted);
	text-decoration: none;
}

.arm-tile-card__author:hover {
	color: var(--arm-brown);
}

.arm-tile-card__avatar {
	border-radius: 50%;
	object-fit: cover;
}

/* ----------------------------------------------------------------- profile */

.arm-profile__head {
	display: flex;
	align-items: flex-start;
	gap: 36px;
	margin-bottom: 48px;
	padding-bottom: 36px;
	border-bottom: 1px solid var(--arm-line);
}

.arm-profile__avatar {
	flex: none;
	width: 160px;
	height: 160px;
	border-radius: 50%;
	object-fit: cover;
}

.arm-profile__intro {
	min-width: 0;
}

.arm-profile__intro .arm-h2 {
	margin-bottom: 8px;
}

.arm-profile__license {
	margin: 0 0 12px;
	font-size: 13px;
	color: var(--arm-muted);
}

/* Who they are in the chamber, set like the home page's chairman caption. */
.arm-profile__position {
	margin: -2px 0 12px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--arm-brown);
}

.arm-profile__bio {
	max-width: 62ch;
	margin: 0 0 18px;
	line-height: 1.7;
	color: var(--arm-text);
}

.arm-profile__contacts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.arm-profile__contacts a {
	display: inline-block;
	padding: 7px 14px;
	border: 1px solid var(--arm-line);
	border-radius: 999px;
	font-size: 13px;
	color: var(--arm-brown);
	text-decoration: none;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.arm-profile__contacts a:hover {
	border-color: var(--arm-brown);
	background: var(--arm-bg);
}

.arm-profile__section {
	margin: 0 0 24px;
	font-size: 22px;
	letter-spacing: 0.05em;
}

/* ---------------------------------------------------------- single project */

.arm-single-project__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
}

.arm-single-project__head .arm-h2 {
	margin: 0;
}

.arm-single-project__author {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	text-decoration: none;
}

.arm-single-project__cover {
	width: 100%;
	max-height: 560px;
	object-fit: cover;
	border-radius: 12px;
}

.arm-single-project__content {
	max-width: 72ch;
	margin: 32px 0 48px;
	line-height: 1.75;
}

.arm-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
}

.arm-gallery img {
	width: 100%;
	height: 190px;
	object-fit: cover;
	border-radius: 10px;
	transition: opacity 0.15s ease;
}

.arm-gallery a:hover img {
	opacity: 0.88;
}

/* ------------------------------------------------------------- responsive */

@media (max-width: 900px) {
	.arm-filter {
		grid-template-columns: 1fr;
	}

	.arm-filter__actions {
		flex-direction: row;
		padding-top: 0;
	}

	.arm-profile__head {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.arm-profile__contacts {
		justify-content: center;
	}
}

/* ------------------------------------------------------------ discussion */

.arm-discussion {
	padding-block: 56px 80px;
}

.arm-discussion__meta {
	display: flex;
	gap: 18px;
	margin: 8px 0 24px;
	font-size: 13px;
	color: var(--arm-muted);
}

/* -------------------------------------------------------------- comments */

.arm-comments {
	max-width: 720px;
	margin-top: 56px;
}

.arm-comments__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 20px;
}

.arm-comments__title {
	margin: 0;
	font-size: 18px;
	letter-spacing: 0.04em;
}

.arm-comments__sorts {
	display: flex;
	gap: 4px;
}

.arm-comments__sort {
	padding: 5px 10px;
	border-radius: 999px;
	font-size: 12px;
	color: var(--arm-muted);
	text-decoration: none;
}

.arm-comments__sort:hover {
	background: var(--arm-bg-alt);
}

.arm-comments__sort.is-active {
	background: var(--arm-brown);
	color: #fff;
}

.arm-comments__list,
.arm-comment__replies {
	margin: 0;
	padding: 0;
	list-style: none;
}

.arm-comment {
	margin-bottom: 10px;
}

.arm-comment__row {
	display: flex;
	gap: 10px;
}

.arm-comment__avatar img {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
}

.arm-comment__main {
	min-width: 0;
	flex: 1;
}

/* The bubble hugs its text: no card, no border, no full-width block. */
.arm-comment__bubble {
	display: inline-block;
	max-width: 100%;
	padding: 8px 14px;
	border-radius: 16px;
	background: var(--arm-bg-alt);
}

.arm-comment__author {
	display: block;
	font-size: 13px;
	font-weight: 700;
	color: var(--arm-text);
}

.arm-comment__text {
	font-size: 14px;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

.arm-comment__text p {
	margin: 2px 0 0;
}

.arm-comment__actions {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 4px 0 0 14px;
	font-size: 12px;
	color: var(--arm-muted);
}

.arm-comment__actions .comment-reply-link {
	color: var(--arm-muted);
	font-weight: 600;
	text-decoration: none;
}

.arm-comment__actions .comment-reply-link:hover {
	text-decoration: underline;
}

.arm-comment__replies {
	margin-top: 8px;
}

/* ------------------------------------------------- the topic's own ballot */

/* Sits between the article and the thread, so it reads as "now say where you
   stand" before the arguing starts. */
.arm-dvote {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 32px 0;
	padding: 18px 20px;
	border: 1px solid var(--arm-line);
	border-radius: var(--arm-radius);
	background: var(--arm-surface);
}

.arm-dvote__btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 18px;
	border: 1px solid var(--arm-line);
	border-radius: 999px;
	background: transparent;
	color: var(--arm-text);
	font: inherit;
	font-size: 14px;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.arm-dvote__btn .arm-icon-svg {
	display: block;
	width: 20px;
	height: 20px;
}

.arm-dvote__btn:hover:not(:disabled) {
	border-color: var(--arm-brown);
	color: var(--arm-brown);
}

/* The cast vote is the one filled in; the other stays an outline, so the pair
   shows a choice rather than two equal buttons. */
.arm-dvote__btn.is-active {
	border-color: var(--arm-brown);
	background: var(--arm-brown);
	color: var(--arm-on-dark);
}

.arm-dvote__btn:disabled {
	cursor: default;
	opacity: 0.65;
}

.arm-dvote__count {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.arm-dvote__hint {
	margin: 0;
	flex: 1 1 100%;
	color: var(--arm-muted);
	font-size: 13px;
}

@media (max-width: 480px) {
	.arm-dvote__label {
		display: none;
	}
}

/* ------------------------------------------------------------------ votes */

.arm-votes {
	display: flex;
	gap: 2px;
}

.arm-vote {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 7px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--arm-muted);
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
}

.arm-vote:hover:not(:disabled) {
	background: var(--arm-bg-alt);
}

.arm-vote:disabled {
	cursor: default;
	opacity: 0.7;
}

.arm-vote.is-active {
	color: var(--arm-brown);
}

.arm-comments__more {
	display: block;
	margin: 6px 0 18px 46px;
	padding: 0;
	background: none;
	border: 0;
	color: var(--arm-muted);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.arm-comments__more:hover {
	color: var(--arm-brown);
	text-decoration: underline;
}

/* ------------------------------------------------------------------- form */

.arm-comment-form {
	display: grid;
	gap: 10px;
	margin-top: 24px;
}

.arm-comment-form .arm-input {
	resize: vertical;
}

.arm-comment-form .form-submit {
	margin: 0;
}

.arm-comments .comment-respond {
	margin-top: 24px;
}

.arm-comments .comment-reply-title {
	margin: 0 0 10px;
	font-size: 15px;
}

.arm-comments__notice {
	margin-top: 24px;
	padding: 12px 16px;
	border-radius: 10px;
	background: var(--arm-bg-alt);
	font-size: 13px;
	color: var(--arm-muted);
}

/* ============================================================ members page */

/* Shared member card: avatar + name, used by chairman and the board. */
.arm-member {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: inherit;
	text-decoration: none;
}

.arm-member__avatar {
	flex: 0 0 auto;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--arm-bg-alt);
	display: grid;
	place-items: center;
}

.arm-member__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Kept for the editor's empty-slot fallback; public cards always show an image
   (uploaded avatar or Gravatar), so the letter circle no longer renders there. */
.arm-member__avatar--letter {
	background: var(--arm-brown);
	color: var(--arm-on-dark);
	font-family: var(--arm-font-head);
	font-size: 28px;
	line-height: 1;
}

.arm-member__name {
	font-weight: 600;
	line-height: 1.25;
}

/* The cards are links — make that obvious on hover/focus. Scoped to `a.arm-member`
   so the editor's non-clickable <span> slots are never affected. */
.arm-member {
	transition: transform 0.2s ease;
}

.arm-member__avatar {
	transition: box-shadow 0.2s ease;
}

.arm-member__avatar img {
	transition: transform 0.35s ease;
}

.arm-member__name {
	transition: color 0.2s ease;
}

a.arm-member:hover,
a.arm-member:focus-visible {
	transform: translateY(-4px);
}

a.arm-member:hover .arm-member__avatar,
a.arm-member:focus-visible .arm-member__avatar {
	box-shadow:
		0 0 0 3px var(--arm-bg),
		0 0 0 6px var(--arm-gold),
		0 12px 24px rgba(87, 58, 48, 0.28);
}

a.arm-member:hover .arm-member__avatar img,
a.arm-member:focus-visible .arm-member__avatar img {
	transform: scale(1.09);
}

a.arm-member:hover .arm-member__name,
a.arm-member:focus-visible .arm-member__name {
	color: var(--arm-brown);
}

/* Respect users who prefer no motion: keep the cue, drop the movement. */
@media (prefers-reduced-motion: reduce) {
	.arm-member,
	.arm-member__avatar img {
		transition: none;
	}

	a.arm-member:hover,
	a.arm-member:focus-visible {
		transform: none;
	}

	a.arm-member:hover .arm-member__avatar img,
	a.arm-member:focus-visible .arm-member__avatar img {
		transform: none;
	}
}

/* An unset reference shows only in the editor, as a dashed slot to click. */
.arm-member--empty {
	opacity: 0.6;
}

.arm-member--empty .arm-member__avatar {
	border: 2px dashed var(--arm-line);
	background: transparent;
}

/* ---------------------------------------------------------------- chairman */

.arm-chairman {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	padding-block: 48px 8px;
}

/* Avatar on the left; role stacked directly above the name on the right. The
   member card is display:contents so its avatar and name flow into this grid
   next to the separate role element — without touching the editor binding. */
.arm-chairman__lead {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-areas:
		"avatar role"
		"avatar name";
	align-items: center;
	column-gap: 24px;
	row-gap: 2px;
}

.arm-chairman__card {
	display: contents;
}

.arm-chairman__role {
	grid-area: role;
	align-self: end;
	font-family: var(--arm-font-head);
	letter-spacing: 0.06em;
	font-size: 26px;
	color: var(--arm-text);
}

.arm-chairman__card .arm-member__avatar {
	grid-area: avatar;
	align-self: center;
	width: 120px;
	height: 120px;
}

.arm-chairman__card .arm-member__avatar--letter {
	font-size: 52px;
}

.arm-chairman__card .arm-member__name {
	grid-area: name;
	align-self: start;
	font-size: 22px;
}

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

.arm-chairman__badge {
	width: 68px;
	height: 68px;
	color: var(--arm-brown);
}

.arm-chairman__badge svg {
	width: 100%;
	height: 100%;
}

/* -------------------------------------------------------------- commission */

.arm-commission {
	padding-block: 32px;
}

.arm-commission__title {
	text-align: left;
	margin-bottom: 28px;
}

/*
 * Flexbox, not grid. A grid leaves the last, incomplete row aligned left;
 * flex-wrap + justify-content:center centres EVERY row, the last one included.
 * Each item is sized to exactly 1/7 of the row, so full rows still show 7.
 * The media queries below change that 7 to 4, then 3 — column-gap is 16px.
 */
.arm-commission__flex {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 28px 16px;
}

/* flex: 1/7 of the row (7 per row); the inner flex column centres avatar+name. */
.arm-commission__item {
	flex: 0 0 calc((100% - 6 * 16px) / 7);
	/* A long surname must not widen its card past the 1/n share. */
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 10px;
}

.arm-commission__item .arm-member__avatar {
	width: 84px;
	height: 84px;
}

.arm-commission__item .arm-member__name {
	max-width: 100%;
	font-size: 15px;
	font-weight: 600;
	overflow-wrap: anywhere;
}

@media (max-width: 1024px) {
	.arm-commission__item { flex-basis: calc((100% - 3 * 16px) / 4); }
}

@media (max-width: 600px) {
	.arm-commission__item { flex-basis: calc((100% - 2 * 16px) / 3); }
	.arm-commission__item .arm-member__name { font-size: 13px; }
	.arm-chairman { flex-direction: column; }
}

/* Too narrow for three whole surnames abreast. */
@media (max-width: 359px) {
	.arm-commission__item { flex-basis: calc((100% - 16px) / 2); }
}

/* ------------------------------------------------------------------ roster */

.arm-roster {
	padding-block: 40px 80px;
}

.arm-roster__title {
	text-align: left;
	margin-bottom: 20px;
}

/* Shown in place of the list to an account without the subscription status. */
.arm-roster__locked {
	max-width: 62ch;
	margin: 0;
	padding: 18px 22px;
	border: 1px solid var(--arm-line);
	border-radius: var(--arm-radius);
	background: var(--arm-surface);
	color: var(--arm-muted);
	font-size: 15px;
	line-height: 1.6;
}

.arm-roster__locked a {
	color: var(--arm-brown);
}

.arm-roster__search {
	margin-bottom: 16px;
}

/* Three small pills above the table. The chosen one is filled, so the control
   reads as "this is what you are looking at" rather than as three buttons. */
.arm-roster__kinds {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
}

.arm-roster__kind {
	padding: 7px 16px;
	border: 1px solid var(--arm-line);
	border-radius: 999px;
	background: var(--arm-surface);
	font: inherit;
	font-size: 13px;
	letter-spacing: 0.04em;
	color: var(--arm-muted);
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.arm-roster__kind:hover:not(.is-active) {
	border-color: var(--arm-brown);
	color: var(--arm-brown);
}

.arm-roster__kind.is-active {
	border-color: var(--arm-brown);
	background: var(--arm-brown);
	color: #fff;
	cursor: default;
}

.arm-roster__kind:focus-visible {
	outline: 2px solid var(--arm-brown);
	outline-offset: 2px;
}

.arm-roster__search .arm-input {
	width: 100%;
}

.arm-roster__head {
	display: none;
}

/* Dim the body while an AJAX search/page is in flight. */
.arm-roster__body.is-loading {
	opacity: 0.45;
	pointer-events: none;
	transition: opacity 0.15s ease;
}

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

/* Header strip and rows share one grid, so the columns line up. */
.arm-roster__head,
.arm-roster__row {
	display: grid;
	grid-template-columns: minmax(200px, 1.6fr) minmax(0, 2.4fr) 74px 74px 132px 152px;
	gap: 0 18px;
}

/* Rounded cards, alternating tint. align-items:stretch lets the dotted column
   dividers run the full height of the row. */
.arm-roster__row {
	align-items: stretch;
	margin-bottom: 12px;
	padding: 14px 22px;
	border-radius: 16px;
}

.arm-roster__list .arm-roster__row:nth-child(odd) {
	background: var(--arm-surface);
}

.arm-roster__list .arm-roster__row:nth-child(even) {
	background: var(--arm-bg-alt);
}

.arm-roster__who {
	display: flex;
	align-items: center;
	gap: 18px;
	color: inherit;
	text-decoration: none;
}

.arm-roster__who .arm-member__avatar {
	width: 74px;
	height: 74px;
	flex: 0 0 auto;
}

.arm-roster__who .arm-member__avatar--letter {
	font-size: 30px;
}

.arm-roster__id {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.arm-roster__name {
	font-weight: 600;
	font-size: 15px;
	line-height: 1.35;
}

.arm-roster__birthday {
	font-size: 13px;
	letter-spacing: 0.08em;
	color: var(--arm-muted);
}

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

.arm-roster__thumb {
	display: block;
	width: 108px;
	height: 78px;
	border-radius: 8px;
	overflow: hidden;
	background: var(--arm-bg-alt);
	flex: 0 0 auto;
}

.arm-roster__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Data columns: centred content, dotted divider on the left, full row height. */
.arm-roster__col {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	padding-left: 18px;
	border-left: 2px dotted var(--arm-line);
	font-size: 14px;
	color: var(--arm-text);
	text-align: center;
}

.arm-roster__more {
	color: var(--arm-brown);
	text-decoration: none;
}

.arm-roster__more:hover {
	text-decoration: underline;
}

.arm-roster__site {
	font-weight: 700;
	font-size: 13px;
	color: var(--arm-text);
	text-decoration: none;
}

.arm-roster__site:hover {
	color: var(--arm-brown);
}

/* The labels sit over their columns, muted, above the list. Each is a button:
   clicking it orders the table by that column, clicking again turns it around. */
@media (min-width: 981px) {
	.arm-roster__head {
		display: grid;
		padding: 0 22px 10px;
		color: var(--arm-muted);
		font-size: 14px;
	}

	.arm-roster__head .arm-roster__col {
		border: 0;
	}

	/* The name heading belongs over the name column, left-aligned with it. */
	.arm-roster__head .arm-roster__col-name {
		grid-column: 1;
		align-items: flex-start;
	}

	.arm-roster__head .arm-roster__col-hchm {
		grid-column: 3;
	}
}

.arm-roster__sort {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 4px;
	border: 0;
	background: none;
	font: inherit;
	color: inherit;
	cursor: pointer;
	border-radius: 4px;
}

.arm-roster__sort:hover {
	color: var(--arm-brown);
}

.arm-roster__sort:focus-visible {
	outline: 2px solid var(--arm-brown);
	outline-offset: 1px;
}

.arm-roster__sort.is-sorted {
	color: var(--arm-brown);
	font-weight: 700;
}

/* The arrow is text, not an icon: it is read out with the column name. */
.arm-roster__arrow::before {
	content: "";
	font-size: 11px;
}

.arm-roster__sort[data-order="asc"] .arm-roster__arrow::before {
	content: "↑";
}

.arm-roster__sort[data-order="desc"] .arm-roster__arrow::before {
	content: "↓";
}

/* The "sort by" prefix only exists on the narrow layout. */
.arm-roster__sort-label {
	display: none;
}

/* Narrow screens: each row becomes a card — who, their projects, the three
   figures as a strip, the profile button — and the column headings become a
   scrolling "sort by" bar, so ordering is not lost with the table. */
@media (max-width: 980px) {
	.arm-roster__kinds {
		gap: 6px;
		margin-bottom: 14px;
	}

	.arm-roster__kind {
		padding: 6px 13px;
		font-size: 12.5px;
	}

	.arm-roster__head {
		display: flex;
		align-items: center;
		gap: 6px;
		margin-bottom: 12px;
		padding-bottom: 4px;
		overflow-x: auto;
		scrollbar-width: none;
		font-size: 12.5px;
		color: var(--arm-muted);
		-webkit-overflow-scrolling: touch;
	}

	.arm-roster__head::-webkit-scrollbar {
		display: none;
	}

	.arm-roster__sort-label {
		display: inline;
		flex: 0 0 auto;
		margin-right: 2px;
	}

	.arm-roster__head .arm-roster__col {
		flex: 0 0 auto;
		padding: 0;
		border: 0;
	}

	.arm-roster__head .arm-roster__col-more {
		display: none;
	}

	.arm-roster__head .arm-roster__sort {
		padding: 5px 12px;
		border: 1px solid var(--arm-line);
		border-radius: 999px;
		background: var(--arm-surface);
		white-space: nowrap;
	}

	.arm-roster__head .arm-roster__sort.is-sorted {
		border-color: var(--arm-brown);
	}

	.arm-roster__row {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		grid-template-areas:
			"who who who"
			"projects projects projects"
			"hchm hchp license"
			"more more more";
		gap: 12px 8px;
		padding: 14px 16px 16px;
	}

	.arm-roster__who {
		grid-area: who;
		gap: 14px;
	}

	.arm-roster__who .arm-member__avatar {
		width: 60px;
		height: 60px;
	}

	.arm-roster__who .arm-member__avatar--letter {
		font-size: 24px;
	}

	.arm-roster__projects {
		grid-area: projects;
		gap: 8px;
	}

	/* Three thumbnails share the width instead of overflowing it. */
	.arm-roster__thumb {
		flex: 1 1 0;
		width: auto;
		max-width: 108px;
		height: auto;
		aspect-ratio: 108 / 78;
	}

	.arm-roster__projects:empty {
		display: none;
	}

	.arm-roster__col {
		flex-direction: column;
		gap: 2px;
		padding: 8px 6px;
		border: 0;
		border-radius: 10px;
		background: rgba(0, 0, 0, 0.04);
		font-size: 14px;
		text-align: center;
		overflow-wrap: anywhere;
	}

	.arm-roster__col-hchm {
		grid-area: hchm;
	}

	.arm-roster__col-hchp {
		grid-area: hchp;
	}

	.arm-roster__col-license {
		grid-area: license;
	}

	.arm-roster__col-hchm::before,
	.arm-roster__col-hchp::before,
	.arm-roster__col-license::before {
		content: attr(data-label);
		font-size: 11px;
		letter-spacing: 0.06em;
		text-transform: uppercase;
		color: var(--arm-muted);
	}

	/* An empty figure still shows its label, so the strip keeps its shape. */
	.arm-roster__col-hchm:empty::after,
	.arm-roster__col-hchp:empty::after,
	.arm-roster__col-license:empty::after {
		content: "—";
		color: var(--arm-muted);
	}

	.arm-roster__col-more {
		grid-area: more;
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: space-between;
		gap: 8px 14px;
		padding: 0;
		background: none;
	}

	.arm-roster__more {
		flex: 1 1 auto;
		padding: 10px 16px;
		border: 1px solid var(--arm-brown);
		border-radius: 999px;
		text-align: center;
		font-size: 14px;
	}

	.arm-roster__more:hover {
		background: var(--arm-brown);
		color: #fff;
		text-decoration: none;
	}

	.arm-roster__pager {
		justify-content: center;
		flex-wrap: wrap;
	}
}

@media (max-width: 420px) {
	.arm-roster__row {
		padding: 12px 12px 14px;
	}

	.arm-roster__name {
		font-size: 14px;
	}

	.arm-roster__col {
		font-size: 13px;
	}
}

/* --------------------------------------------------------------- pagination */

.arm-roster__pager {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 8px;
	margin-top: 28px;
}

.arm-roster__page,
.arm-roster__gap {
	min-width: 38px;
	height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	color: var(--arm-text);
	text-decoration: none;
	font-size: 15px;
}

.arm-roster__page {
	border: 1px solid var(--arm-line);
	background: var(--arm-surface);
	cursor: pointer;
	font: inherit;
	font-size: 15px;
}

.arm-roster__page:hover {
	border-color: var(--arm-brown);
}

.arm-roster__page.is-current {
	background: var(--arm-brown);
	border-color: var(--arm-brown);
	color: var(--arm-on-dark);
}

/* ---------------------------------------------------------- news single */

.arm-single__kind {
	margin: 0 0 6px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--arm-brown);
}

.arm-single__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin: 0 0 20px;
	font-size: 13px;
	color: var(--arm-muted);
}

.arm-single__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 8px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}

.arm-single__tags .arm-job__tag {
	display: inline-block;
	padding: 5px 14px;
	border-radius: 999px;
	background: #ebe9e6;
	font-size: 11.5px;
	color: #5b5652;
}

.arm-single__back {
	margin: 32px 0 0;
}
