/**
 * Front-end styles for the coded home page, header and footer.
 * Fonts first, then tokens, then layout primitives, then one block per section.
 */

/* ------------------------------------------------------------------ fonts */

/* GHEA Grapalat — body copy. Four faces so the browser never has to fake a
   bold or an oblique. woff2 first; the original OTF stays as a fallback. */
@font-face {
	font-family: "GHEA Grapalat";
	src: url("../fonts/ghea-grapalat-regular.woff2") format("woff2"),
		url("../fonts/ghea-grapalat-regular.otf") format("opentype");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "GHEA Grapalat";
	src: url("../fonts/ghea-grapalat-italic.woff2") format("woff2"),
		url("../fonts/ghea-grapalat-italic.otf") format("opentype");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: "GHEA Grapalat";
	src: url("../fonts/ghea-grapalat-bold.woff2") format("woff2"),
		url("../fonts/ghea-grapalat-bold.otf") format("opentype");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "GHEA Grapalat";
	src: url("../fonts/ghea-grapalat-bold-italic.woff2") format("woff2"),
		url("../fonts/ghea-grapalat-bold-italic.otf") format("opentype");
	font-weight: 700;
	font-style: italic;
	font-display: swap;
}

/* Bebas Neue (Armenian cut) — headings. One face only, so synthetic bold and
   italic are switched off wherever it is used. */
@font-face {
	font-family: "Arm Bebas Neue";
	src: url("../fonts/arm-bebas-neue.woff2") format("woff2"),
		url("../fonts/arm-bebas-neue.ttf") format("truetype");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

:root {
	--arm-font-body: "GHEA Grapalat", "Helvetica Neue", Arial, sans-serif;
	--arm-font-head: "Arm Bebas Neue", "GHEA Grapalat", Impact, sans-serif;

	--arm-gold: #d3a349;
	--arm-gold-dark: #b98c37;
	--arm-brown: #6f4b3e;
	--arm-brown-dark: #573a30;
	--arm-dark: #3f3f3f;
	--arm-darker: #2c2c2c;

	--arm-bg: #efeeec;
	--arm-bg-alt: #e5e3e0;
	--arm-surface: #ffffff;
	--arm-line: #cfcbc6;

	--arm-text: #2f2f2f;
	/* 4.6:1 on the page's ground — the smallest contrast WCAG accepts for
	   body text, which this grey is used for throughout. */
	--arm-muted: #6f6a65;
	--arm-on-dark: #f5f3f1;

	--arm-container: 1200px;
	--arm-gap: 24px;
	--arm-radius: 10px;

	--arm-header-h: 72px;
}

/* ------------------------------------------------------------------ base */

body {
	font-family: var(--arm-font-body);
}

/* Bebas ships a single weight: asking for 700 would make the browser smear a
   fake bold, so headings stay at 400 and `font-synthesis` forbids the rest. */
h1,
h2,
h3,
h4,
h5,
h6,
.arm-h2 {
	font-family: var(--arm-font-head);
	font-weight: 400;
	font-synthesis: none;
}

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

.arm-container {
	width: 100%;
	max-width: var(--arm-container);
	margin-inline: auto;
	padding-inline: 20px;
}

.arm-section {
	padding-block: 64px;
}

.arm-section--hero {
	padding: 0;
}

.arm-section--architects {
	padding: 0;
}

.arm-section:nth-of-type(even) {
	background: var(--arm-bg-alt);
}

.arm-skip-link {
	position: absolute;
	left: -9999px;
}

.arm-skip-link:focus {
	left: 12px;
	top: 12px;
	z-index: 100;
	background: #fff;
	padding: 10px 16px;
}

.arm-h2 {
	margin: 0 0 12px;
	font-size: clamp(24px, 2.4vw, 34px);
	letter-spacing: 0.06em;
	color: var(--arm-text);
}

.arm-h2--center {
	text-align: center;
}

.arm-section__head {
	margin-bottom: 24px;
}

.arm-section__head--center {
	text-align: center;
}

.arm-section__subtitle {
	margin: 0;
	color: var(--arm-muted);
	font-size: 16px;
}

.arm-section__intro {
	max-width: 900px;
	margin: 0 auto 32px;
	color: var(--arm-muted);
	font-size: 14px;
	line-height: 1.7;
}

/* Full measure, flush left: used where the intro is a paragraph of the section
   rather than a centred standfirst. */
.arm-section__intro--wide {
	max-width: none;
	margin-inline: 0;
}

/* Title left, standfirst pushed to the opposite corner. */
.arm-section__head--split {
	display: grid;
	gap: 10px;
}

.arm-section__head--split .arm-section__subtitle {
	justify-self: end;
	text-align: right;
	max-width: 60ch;
}

/* A quieter, larger standfirst: at this size it is a graphic element in the
   band, so it sits lighter than body copy on purpose. */
.arm-section__subtitle--lead {
	font-size: clamp(20px, 2.4vw, 30px);
	line-height: 1.25;
	color: #9d9892;
}

.arm-section__actions {
	margin-top: 32px;
	text-align: center;
}

/* Placeholder images should read as "unfinished", not as content. */
img.is-placeholder {
	object-fit: cover;
	opacity: 0.85;
}

/* Text for screen readers only. Not `display:none` — that would hide it from
   them too. */
.arm-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* ------------------------------------------------ archive / single / 404 */

.arm-archive,
.arm-single,
.arm-404 {
	padding-block: 64px;
}

.arm-single__thumb {
	margin-bottom: 24px;
	border-radius: var(--arm-radius);
}

.arm-single__content {
	max-width: 760px;
	line-height: 1.75;
}

.arm-404 {
	text-align: center;
}

/* ---------------------------------------------------------------- buttons */

.arm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 24px;
	border: 0;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.18s ease, transform 0.18s ease;
}

.arm-btn:hover {
	transform: translateY(-1px);
}

.arm-btn--gold {
	background: var(--arm-gold);
	color: #fff;
}

.arm-btn--gold:hover {
	background: var(--arm-gold-dark);
}

.arm-btn--brown {
	background: var(--arm-brown);
	color: #fff;
}

.arm-btn--brown:hover {
	background: var(--arm-brown-dark);
}

.arm-btn--dark {
	background: var(--arm-dark);
	color: var(--arm-on-dark);
}

.arm-btn--dark:hover {
	background: var(--arm-darker);
}

.arm-btn--wide {
	width: 100%;
	max-width: 320px;
}

.arm-btn--lg {
	padding: 15px 34px;
	font-size: 15px;
}

.arm-icon {
	width: 28px;
	height: 28px;
	object-fit: contain;
}

.arm-icon--lg {
	width: 48px;
	height: 48px;
}

/* ----------------------------------------------------------------- header */

.arm-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--arm-surface);
	border-bottom: 1px solid var(--arm-line);
}

.admin-bar .arm-header {
	top: 32px;
}

.arm-header__inner {
	display: flex;
	align-items: center;
	gap: var(--arm-gap);
	min-height: var(--arm-header-h);
}

.arm-logo {
	display: block;
	height: 44px;
	width: auto;
}

/* Wordmark fallback when Site Identity has no image. */
.arm-logo--text {
	height: auto;
	font-family: var(--arm-font-head);
	font-size: 20px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--arm-text);
	white-space: nowrap;
}

/*
 * The envelope and the CTA live outside <nav> on purpose: nav collapses into a
 * dropdown on small screens, and the unread badge has to stay reachable next to
 * the burger. `order` puts them back where the design wants them on desktop.
 */
.arm-header__logo {
	order: 1;
}

.arm-nav {
	order: 2;
	display: flex;
	align-items: center;
	gap: var(--arm-gap);
	margin-left: auto;
}

.arm-header__messages {
	order: 3;
}

.arm-header__cta {
	order: 4;
}

.arm-burger {
	order: 5;
}

.arm-nav__list {
	display: flex;
	align-items: center;
	gap: 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.arm-nav__link {
	color: var(--arm-text);
	font-size: 13px;
	text-decoration: none;
	white-space: nowrap;
}

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

/* ------------------------------------------------------------ dropdowns */

/* A menu item with a list under it. The bar's items keep their look; the
   chevron beside them is the toggle for keyboard and touch, and on a wide
   screen hovering opens the list too. */
.arm-nav__item {
	position: relative;
}

.arm-nav__row {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.arm-nav__link--toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	cursor: pointer;
}

.arm-nav__toggle {
	display: inline-grid;
	place-items: center;
	width: 20px;
	height: 20px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: var(--arm-muted);
	cursor: pointer;
}

.arm-nav__toggle:hover,
.arm-nav__link--toggle:hover {
	color: var(--arm-brown);
}

.arm-nav__chevron {
	width: 11px;
	height: 11px;
	transition: transform 0.2s ease;
}

.arm-nav__item.is-open > .arm-nav__row .arm-nav__chevron,
.arm-nav__item.is-open > .arm-nav__link--toggle .arm-nav__chevron {
	transform: rotate(180deg);
}

/* The list itself: a white card hung under its item, hidden until opened. */
.arm-nav__sub {
	position: absolute;
	top: 100%;
	left: -18px;
	z-index: 60;
	min-width: 250px;
	margin: 0;
	padding: 10px 0;
	list-style: none;
	border-radius: 14px;
	background: var(--arm-surface);
	box-shadow: 0 14px 40px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.04);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}

/* An invisible bridge over the gap, so the pointer can travel down into the
   card without the item losing hover on the way. */
.arm-nav__sub::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 100%;
	height: 14px;
}

.arm-nav__item--has-sub > .arm-nav__sub {
	margin-top: 14px;
}

.arm-nav__sub .arm-nav__item {
	display: block;
}

.arm-nav__sub .arm-nav__row {
	display: flex;
	justify-content: space-between;
	width: 100%;
}

.arm-nav__sub .arm-nav__link {
	display: block;
	flex: 1 1 auto;
	padding: 9px 22px;
	font-size: 13.5px;
	line-height: 1.35;
	white-space: normal;
	text-align: left;
}

.arm-nav__sub .arm-nav__link:hover {
	background: var(--arm-bg);
	color: var(--arm-brown);
}

.arm-nav__sub .arm-nav__toggle {
	margin-right: 12px;
	transform: rotate(-90deg);
}

/* The third level flies out to the right of its parent row. */
.arm-nav__sub .arm-nav__sub {
	top: -10px;
	left: 100%;
	margin-top: 0;
	margin-left: 6px;
	transform: translateX(6px);
}

.arm-nav__sub .arm-nav__sub::before {
	left: -8px;
	right: auto;
	top: 0;
	bottom: 0;
	width: 8px;
	height: auto;
}

@media (min-width: 901px) {
	.arm-nav__item--has-sub:hover > .arm-nav__sub,
	.arm-nav__item--has-sub:focus-within > .arm-nav__sub,
	.arm-nav__item.is-open > .arm-nav__sub {
		opacity: 1;
		visibility: visible;
		transform: translate(0, 0);
		transition-delay: 0s;
	}

	/* The open item shows a short gold rule under its label, as the design draws it. */
	.arm-nav__list > .arm-nav__item--has-sub > .arm-nav__row > .arm-nav__link,
	.arm-nav__list > .arm-nav__item--has-sub > .arm-nav__link--toggle {
		position: relative;
		padding-bottom: 4px;
	}

	.arm-nav__list > .arm-nav__item--has-sub > .arm-nav__row > .arm-nav__link::after,
	.arm-nav__list > .arm-nav__item--has-sub > .arm-nav__link--toggle::after {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		bottom: 0;
		height: 2px;
		background: var(--arm-gold);
		transform: scaleX(0);
		transform-origin: left;
		transition: transform 0.2s ease;
	}

	.arm-nav__list > .arm-nav__item--has-sub:hover > .arm-nav__row > .arm-nav__link::after,
	.arm-nav__list > .arm-nav__item--has-sub:focus-within > .arm-nav__row > .arm-nav__link::after,
	.arm-nav__list > .arm-nav__item--has-sub.is-open > .arm-nav__row > .arm-nav__link::after,
	.arm-nav__list > .arm-nav__item--has-sub:hover > .arm-nav__link--toggle::after,
	.arm-nav__list > .arm-nav__item--has-sub:focus-within > .arm-nav__link--toggle::after,
	.arm-nav__list > .arm-nav__item--has-sub.is-open > .arm-nav__link--toggle::after {
		transform: scaleX(1);
	}
}

.arm-header__cta {
	padding: 10px 28px;
	flex: none;
}

.arm-burger {
	display: none;
	flex-direction: column;
	gap: 5px;
	padding: 8px;
	background: none;
	border: 0;
	cursor: pointer;
}

.arm-burger span span {
	display: block;
	width: 24px;
	height: 2px;
	border-radius: 2px;
	background: var(--arm-text);
}

/* ------------------------------------------------------------------- hero */

/*
 * Base hero, shared by every page. Structure and the shared pieces only; the
 * page-specific layout (right-aligned brand + title, the accent band) lives in
 * each page's own stylesheet — e.g. assets/css/ch-members.css — scoped to that
 * document, so editing one page cannot restyle another.
 *
 * Default layout: contacts top-left, brand top-right, title bottom-right.
 */
.arm-hero {
	position: relative;
	min-height: clamp(420px, 46vw, 600px);
	display: flex;
	flex-direction: column;
	background-size: cover;
	background-position: center;
	padding-block: 30px 56px;
}

.arm-hero__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
}

.arm-hero__inner {
	margin-top: auto;
	display: flex;
	justify-content: flex-end;
	padding-top: 40px;
}

.arm-hero__brand {
	--brand-fs: clamp(20px, 3.1vw, 48px);
	display: flex;
	align-items: center;
	gap: clamp(12px, 1.6vw, 26px);
}

.arm-hero__brand-text {
	font-family: var(--arm-font-head);
	color: #fff;
	text-align: right;
	font-size: var(--brand-fs);
	line-height: 1.04;
	letter-spacing: 0.02em;
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.25);
}

/* White, like the footer wordmark; height tuned just under the 3-line text. */
.arm-hero__logo {
	height: calc(var(--brand-fs) * 3);
	width: auto;
	flex: 0 0 auto;
	filter: brightness(0) invert(1);
}

.arm-hero__logo.is-placeholder {
	opacity: 0.5;
	filter: none;
}

.arm-hero__title {
	margin: 0;
	max-width: 760px;
	text-align: right;
	font-size: clamp(32px, 4.4vw, 62px);
	line-height: 1.1;
	letter-spacing: 0.02em;
	color: var(--arm-darker);
}

/* Plain lock-up in the top-left corner, no plate — matches the design. */
.arm-hero__contacts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 28px;
}

.arm-hero__contact {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--arm-text);
	font-size: 13px;
	text-decoration: none;
	text-shadow: 0 1px 6px rgba(255, 255, 255, 0.5);
}

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

.arm-hero__contact-icon {
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--arm-brown);
	color: #fff;
	font-size: 11px;
}

/* The glyph inside a contact's brown disc — hero and footer alike. */
.arm-contact-svg {
	display: block;
	width: 12px;
	height: 12px;
	stroke-width: 2;
}

/* ---------------------------------------------------------- hero slides */

/* The slideshow sits between the background and the words: every slide is a
   full-bleed picture, the live one fades in over the last and drifts a little
   (a slow zoom) for as long as it is on. The container rows above are lifted
   over it. */
.arm-hero--slides > .arm-container {
	position: relative;
	z-index: 1;
}

.arm-hero__slides {
	position: absolute;
	inset: 0;
	overflow: hidden;
	z-index: 0;
}

.arm-hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 1.4s ease;
}

.arm-hero__slide.is-active {
	opacity: 1;
}

.arm-hero__slide-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transform: scale(1);
}

.arm-hero__slide.is-active .arm-hero__slide-img {
	animation: arm-hero-drift calc(var(--slide-seconds, 6s) + 1.5s) linear forwards;
}

@keyframes arm-hero-drift {
	from {
		transform: scale(1);
	}

	to {
		transform: scale(1.07);
	}
}

/* The pager: a row of ticks, like the marks on a drafting rule. The live tick
   is longer and fills from left to right over the slide's time. */
.arm-hero__pager {
	display: flex;
	align-items: center;
	align-self: flex-end;
}

.arm-hero__ticks {
	display: flex;
	align-items: flex-end;
	gap: 10px;
}

.arm-hero__tick {
	position: relative;
	width: 30px;
	height: 20px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

/* The mark itself: a thin line at the bottom of the hit area. */
.arm-hero__tick::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 3px;
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.75);
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
	transition: height 0.3s ease, background-color 0.3s ease;
}

.arm-hero__tick:hover::before {
	background: #fff;
}

.arm-hero__tick.is-active {
	width: 64px;
}

.arm-hero__tick.is-active::before {
	height: 4px;
	background: rgba(255, 255, 255, 0.5);
}

.arm-hero__tick-fill {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 0;
	height: 4px;
	border-radius: 2px;
	background: var(--arm-gold);
}

.arm-hero__tick.is-active .arm-hero__tick-fill {
	animation: arm-hero-fill var(--slide-seconds, 6s) linear forwards;
}

@keyframes arm-hero-fill {
	from {
		width: 0;
	}

	to {
		width: 100%;
	}
}

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

@media (prefers-reduced-motion: reduce) {
	.arm-hero__slide {
		transition: none;
	}

	.arm-hero__slide.is-active .arm-hero__slide-img {
		animation: none;
	}
}

/* ------------------------------------------------------------------ about */

.arm-about {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 40px;
	align-items: start;
}

.arm-about__image {
	width: 100%;
	height: 100%;
	max-height: 320px;
	object-fit: cover;
	border-radius: 4px;
}

.arm-about__text {
	color: var(--arm-muted);
	font-size: 13px;
	line-height: 1.75;
	text-align: justify;
}

.arm-about__text p {
	margin: 0 0 12px;
}

.arm-about__note {
	margin: 8px 0 0;
	font-size: 12px;
	font-style: italic;
	color: var(--arm-brown);
}

.arm-about__actions {
	display: flex;
	justify-content: center;
	gap: 120px;
	margin-top: 40px;
	padding-top: 32px;
	flex-wrap: wrap;
}

.arm-about__action {
	display: flex;
	align-items: center;
	gap: 14px;
}

/* The ring and the glyph inside it are one object: the glyph is stroked in
   `currentColor`, so colouring the ring colours both. */
.arm-about__action-icon {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border: 1px solid var(--arm-brown);
	border-radius: 50%;
	color: var(--arm-brown);
	background: var(--arm-surface);
	transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.arm-about__action-icon .arm-icon-svg {
	display: block;
	width: 28px;
	height: 28px;
}

/* No glyph chosen yet: a dashed ring reads as "nothing here", where a solid
   empty circle reads as a design element that lost its contents. */
.arm-about__action-icon.is-empty {
	border-style: dashed;
	color: var(--arm-muted);
	border-color: var(--arm-line);
}

/* Hovering the button lights its ring too — the pair is one target. */
.arm-about__action:hover .arm-about__action-icon {
	color: var(--arm-brown);
	border-color: var(--arm-gold-dark);
	background: var(--arm-bg-alt);
}

.arm-about__action .arm-btn {
	min-width: 180px;
}

/* ------------------------------------------------------------ environment */

.arm-environment {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 48px;
	align-items: start;
	margin-top: 32px;
}

.arm-environment__intro,
.arm-environment__item {
	margin: 0 0 20px;
	color: var(--arm-text);
	font-size: 14px;
	line-height: 1.8;
	text-align: justify;
}

.arm-environment__lead {
	font-weight: 700;
}

.arm-environment__lead::after {
	content: " – ";
}

/*
 * The two shots are staggered: the first hugs the right edge, the second sits
 * lower and to the left. Achieved with auto margins rather than transforms, so
 * the column still reserves the height it actually occupies.
 */
.arm-environment__media {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

/* The card hugs the image; the column is wider, and that slack is the stagger. */
.arm-environment__figure {
	width: max-content;
	margin: 0;
	padding: 10px;
	border: 1px solid var(--arm-line);
	border-radius: 18px;
}

.arm-environment__figure:nth-child(odd) {
	margin-inline-start: auto;
}

.arm-environment__figure:nth-child(even) {
	margin-inline-end: auto;
}

.arm-environment__figure img {
	display: block;
	width: 260px;
	max-width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: 12px;
}

.arm-environment__figure figcaption {
	margin-top: 10px;
	font-size: 13px;
	color: var(--arm-text);
	text-align: center;
}

/* ------------------------------------------------------------------ cards */

.arm-cards {
	display: grid;
	gap: var(--arm-gap);
}

.arm-cards--3 {
	grid-template-columns: repeat(3, 1fr);
}

.arm-card {
	background: var(--arm-surface);
	border-radius: var(--arm-radius);
	overflow: hidden;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.arm-card__media {
	position: relative;
	display: block;
}

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

.arm-card__body {
	padding: 12px 14px 16px;
}

.arm-card__meta {
	margin: 0 0 4px;
	font-size: 11px;
	color: var(--arm-muted);
}

.arm-card__title {
	margin: 0;
	font-size: 14px;
	color: var(--arm-text);
}

.arm-card--compact {
	display: block;
	text-decoration: none;
	background: transparent;
	box-shadow: none;
}

.arm-card--compact .arm-card__media img {
	height: 140px;
	border-radius: var(--arm-radius);
}

.arm-card__caption {
	display: block;
	margin-top: 8px;
	text-align: center;
	font-size: 12px;
	color: var(--arm-muted);
}

/* ------------------------------------------------------- prose & documents */

/* A statute reads as a document, not as marketing copy: one narrow column,
   generous leading, and clause numbering left where the law put it. */
.arm-article {
	padding-block: 8px;
}

.arm-article__title {
	margin: 0 0 20px;
}

.arm-article__body {
	max-width: 78ch;
	color: var(--arm-text);
	font-size: 15px;
	line-height: 1.75;
}

.arm-article__body > * + * {
	margin-top: 14px;
}

.arm-article__body p {
	margin-block: 0;
}

/* A clause heading ("Հոդված 14. …") is a bare paragraph immediately before its
   list — that position is what identifies it, since the imported text carries no
   class to hook on. Weight makes the statute scannable; the extra space goes on
   the paragraph *after* a list, which is the next clause heading. */
.arm-article__body p:has( + ol ),
.arm-article__body p:has( + ul ) {
	font-weight: 700;
}

.arm-article__body ol + p,
.arm-article__body ul + p {
	margin-top: 28px;
}

.arm-article__body ol,
.arm-article__body ul {
	margin: 10px 0 0;
	padding-left: 1.6em;
}

.arm-article__body li + li {
	margin-top: 10px;
}

.arm-article__body ol {
	list-style: decimal;
}

.arm-article__body ul {
	list-style: disc;
}

.arm-article__body a {
	color: var(--arm-brown);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* One row per document: glyph, name, and what it is. The whole row is a target
   the width of the column, so a long Armenian title does not become a
   two-word link. */
.arm-files {
	padding-block: 8px;
}

.arm-files__title {
	margin: 0 0 16px;
}

.arm-files__intro {
	max-width: 78ch;
	margin: 0 0 18px;
	color: var(--arm-muted);
	font-size: 14px;
	line-height: 1.7;
}

.arm-files__list {
	max-width: 78ch;
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--arm-line);
}

.arm-files__row {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 4px;
	border-bottom: 1px solid var(--arm-line);
}

.arm-files__icon {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	border: 1px solid var(--arm-line);
	border-radius: 50%;
	color: var(--arm-brown);
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.arm-files__icon .arm-icon-svg {
	display: block;
	width: 19px;
	height: 19px;
}

.arm-files__link {
	flex: 1 1 auto;
	color: var(--arm-text);
	font-size: 15px;
	line-height: 1.45;
	text-decoration: none;
}

.arm-files__row:hover .arm-files__icon {
	border-color: var(--arm-brown);
	background: var(--arm-bg-alt);
}

.arm-files__row:hover .arm-files__link {
	color: var(--arm-brown);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Quiet by design: it says what the link is, it is not the reason to click. */
.arm-files__badge {
	flex: 0 0 auto;
	padding: 3px 9px;
	border: 1px solid var(--arm-line);
	border-radius: 999px;
	color: var(--arm-muted);
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

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

/* An unset title or intro must not reserve space on the public page — but in an
   editing session the empty slot has to stay clickable, or it could never be
   filled in. */
.arm-article__title:empty,
.arm-files__title:empty,
.arm-files__intro:empty {
	display: none;
}

.arm-editing .arm-article__title:empty,
.arm-editing .arm-files__title:empty,
.arm-editing .arm-files__intro:empty {
	display: block;
	min-height: 1em;
}

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

/* A square photo tile with the thread's score along the top and the title
   along the bottom, both over the image. Used for the discussions section on
   the home page. */

.arm-dcards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--arm-gap);
	margin-top: 28px;
}

.arm-dcard__link {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 4px;
	color: #fff;
	text-decoration: none;
	background: var(--arm-bg-alt);
}

.arm-dcard__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.arm-dcard__link:hover .arm-dcard__image {
	transform: scale(1.03);
}

/* Two scrims, one per band of text: a single full-height wash would flatten the
   photograph the card exists to show. `pointer-events` are irrelevant here —
   the whole tile is the link — so they are plain pseudo-elements.
   Both ramp through several stops rather than fading linearly: a two-stop
   gradient is thin exactly where the text sits, which is how a title ends up
   sitting on a sunlit pavement with nothing behind it. */
.arm-dcard__link::before,
.arm-dcard__link::after {
	content: "";
	position: absolute;
	inset-inline: 0;
}

.arm-dcard__link::before {
	top: 0;
	height: 34%;
	background: linear-gradient(
		to bottom,
		rgba(0, 0, 0, 0.48),
		rgba(0, 0, 0, 0.28) 45%,
		rgba(0, 0, 0, 0)
	);
}

/* Deep enough that the brightest photograph still reads as a dark bed under the
   date and the title — measured against the worst card, not the best. */
.arm-dcard__link::after {
	bottom: 0;
	height: 58%;
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, 0.85),
		rgba(0, 0, 0, 0.7) 18%,
		rgba(0, 0, 0, 0.4) 44%,
		rgba(0, 0, 0, 0.14) 72%,
		rgba(0, 0, 0, 0)
	);
}

/* `::after` is the anchor's *last* child, so without this the scrim paints over
   the very text it exists to support — which greys out the title instead of
   backing it. Both text layers sit above both scrims. */
.arm-dcard__stats,
.arm-dcard__caption {
	z-index: 2;
}

.arm-dcard__stats {
	position: absolute;
	inset: 12px 14px auto;
}

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

/* One row of counters, shared by the home cards and the archive tiles (see
   parts/discussion-stats.php). The row only knows how to look; where it sits is
   the host card's business. */

.arm-dstats {
	display: flex;
	align-items: center;
	gap: 14px;
}

/* Across the full width of a card, one counter per corner and one centred. */
.arm-dstats--spread {
	justify-content: space-between;
}

.arm-dstat {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

/* The badge is light and the glyph brown, so a counter stays legible over a dark
   photograph and over a bright sky alike. */
.arm-dstat__badge {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: var(--arm-brown);
}

.arm-dstat__badge .arm-icon-svg {
	display: block;
	width: 15px;
	height: 15px;
}

.arm-dstat__count {
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.arm-dstats--sm {
	gap: 12px;
}

.arm-dstats--sm .arm-dstat {
	gap: 6px;
}

.arm-dstats--sm .arm-dstat__badge {
	width: 22px;
	height: 22px;
}

.arm-dstats--sm .arm-dstat__badge .arm-icon-svg {
	width: 13px;
	height: 13px;
}

.arm-dstats--sm .arm-dstat__count {
	font-size: 12px;
}

/* For cards with no scrim of their own: the row brings its own dark bed, so the
   white numbers do not have to survive whatever the photograph is doing. */
.arm-dstats--pill {
	padding: 5px 12px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.55);
}

.arm-dcard__caption {
	position: absolute;
	inset: auto 16px 14px;
	display: grid;
	gap: 3px;
}

/* Two shadows on both: a tight one for the edge of each stroke, a wide soft one
   that darkens the photograph immediately around the glyphs. The halo is what
   keeps thin type legible over foliage and gravel. */
.arm-dcard__date {
	font-size: 12px;
	letter-spacing: 0.04em;
	color: rgba(255, 255, 255, 0.92);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 0 12px rgba(0, 0, 0, 0.7);
}

.arm-dcard__title {
	font-family: var(--arm-font-head);
	font-size: 17px;
	line-height: 1.15;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.95), 0 0 16px rgba(0, 0, 0, 0.75);
}

/* A closed discussion: the photograph in greys (colour returns on hover) and
   a small «Փակված» label above the date. */
.arm-dcard--closed .arm-dcard__image {
	filter: grayscale(1) contrast(0.92) brightness(1.04);
	transition: transform 0.4s ease, filter 0.5s ease;
}

.arm-dcard--closed .arm-dcard__link:hover .arm-dcard__image {
	filter: grayscale(0.2);
}

.arm-dcard__state {
	justify-self: start;
	margin-bottom: 4px;
	padding: 2px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--arm-text);
}

/* ------------------------------------------------------------- architects */

.arm-architects {
	position: relative;
	padding-block: 72px;
	background-size: cover;
	background-position: center;
}

.arm-architects__scrim {
	position: absolute;
	inset: 0;
	background: rgba(230, 228, 225, 0.82);
}

.arm-architects__inner {
	position: relative;
}

.arm-architects__buttons {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 320px));
	justify-content: center;
	gap: 16px 40px;
	margin-top: 28px;
}

/* ------------------------------------------------------------------ tiles */

/* Support: outlined tiles, a line illustration over its label. */
.arm-tiles {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 250px));
	justify-content: center;
	gap: 40px;
	margin-top: 36px;
}

.arm-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	gap: 14px;
	min-height: 196px;
	padding: 22px 18px 20px;
	border: 1.5px solid #8d8883;
	border-radius: 22px;
	background: rgba(255, 255, 255, 0.4);
	color: #55504b;
	text-decoration: none;
	transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease, transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease;
}

.arm-tile:hover,
.arm-tile:focus-visible {
	border-color: var(--arm-brown);
	background: #fff;
	color: var(--arm-brown);
	transform: translateY(-4px);
	box-shadow: 0 22px 40px -26px rgba(60, 40, 20, 0.5);
}

.arm-tile__icon {
	display: grid;
	flex: 1 1 auto;
	place-items: center;
}

.arm-tile__icon--glyph .arm-icon-svg {
	display: block;
	width: 100px;
	height: 100px;
}

.arm-tile__label {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
	text-align: center;
	color: inherit;
}

/* -------------------------------------------------------------- education */

.arm-education__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--arm-gap);
}

.arm-education__mark {
	flex: 0 0 auto;
	color: var(--arm-brown);
}

.arm-education__mark .arm-icon-svg {
	display: block;
	width: 68px;
	height: 68px;
}

/* A photo — or, until one is uploaded, the card's glyph on warm stone — with
   the caption along the foot, all inside one rounded outline. */
.arm-ecards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
	margin-top: 28px;
}

.arm-ecard {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1.5px solid #8d8883;
	border-radius: 22px;
	background: #fff;
	color: inherit;
	text-decoration: none;
	transition: border-color 0.25s ease, transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease;
}

a.arm-ecard:hover,
a.arm-ecard:focus-visible {
	border-color: var(--arm-brown);
	transform: translateY(-4px);
	box-shadow: 0 22px 40px -26px rgba(60, 40, 20, 0.5);
}

.arm-ecard__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
}

.arm-ecard__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}

a.arm-ecard:hover .arm-ecard__media img {
	transform: scale(1.05);
}

.arm-ecard__media--glyph {
	background: radial-gradient(120% 90% at 50% 0%, #fcf8f1 0%, #f0e7d9 55%, #e2d4bf 100%);
}

.arm-ecard__media--glyph img {
	opacity: 0;
}

.arm-ecard__glyph {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: var(--arm-brown);
}

.arm-ecard__glyph .arm-icon-svg {
	display: block;
	width: 92px;
	height: 92px;
}

.arm-ecard__caption {
	display: block;
	padding: 11px 12px;
	border-top: 1.5px solid #8d8883;
	font-size: 13px;
	font-weight: 600;
	text-align: center;
	color: var(--arm-text);
}

/* ------------------------------------------------------------ news/events */

/* A row of three live cards beside a side panel: the section's title at the
   top, its button at the foot, a brown rule down the panel's outer edge.
   Events mirror news, the panel on the right (.arm-feed--end). */
.arm-feed {
	display: grid;
	grid-template-columns: 210px minmax(0, 1fr);
	gap: 28px;
	align-items: stretch;
}

.arm-feed--end {
	grid-template-columns: minmax(0, 1fr) 210px;
}

.arm-feed__panel {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	padding: 4px 0 4px 20px;
	border-left: 4px solid var(--arm-brown);
}

.arm-feed--end .arm-feed__panel {
	align-items: flex-end;
	padding: 4px 20px 4px 0;
	border-left: 0;
	border-right: 4px solid var(--arm-brown);
	text-align: right;
}

.arm-feed__title {
	margin: 0;
	font-family: var(--arm-font-head);
	font-size: 24px;
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: 0.08em;
	color: var(--arm-brown);
}

.arm-feed__cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

.arm-feed__empty {
	grid-column: 1 / -1;
	align-self: center;
	margin: 0;
	padding: 28px;
	border: 1px dashed var(--arm-line);
	border-radius: 10px;
	text-align: center;
	color: var(--arm-muted);
}

.arm-hcard {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 12px 12px 14px;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 12px 30px -20px rgba(40, 30, 20, 0.4);
	transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease;
}

.arm-hcard:hover {
	transform: translateY(-4px);
	box-shadow: 0 24px 44px -24px rgba(40, 30, 20, 0.5);
}

.arm-hcard__kind {
	display: block;
	margin-bottom: 10px;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-align: right;
	text-transform: uppercase;
	color: var(--arm-brown);
}

.arm-hcard__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 4px;
	background: var(--arm-bg-alt);
}

.arm-hcard__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.arm-hcard:hover .arm-hcard__media img {
	transform: scale(1.05);
}

.arm-hcard__flag {
	position: absolute;
	top: 8px;
	left: 8px;
	padding: 2px 9px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.55);
	font-size: 11px;
	color: #fff;
}

.arm-hcard__meta {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 3px;
	margin-top: 10px;
	font-size: 12px;
	text-align: right;
}

.arm-hcard__time {
	font-weight: 700;
	color: var(--arm-text);
}

.arm-hcard__date {
	letter-spacing: 0.04em;
	white-space: pre;
	color: var(--arm-brown);
}

.arm-hcard__place {
	font-weight: 600;
	color: var(--arm-brown);
}

.arm-hcard__title {
	margin: 10px 0 6px;
	font-family: var(--arm-font-body);
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.35;
}

.arm-hcard__title a {
	color: inherit;
	text-decoration: none;
}

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

.arm-hcard__excerpt {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	font-size: 12.5px;
	line-height: 1.55;
	text-align: justify;
	color: #3f3b38;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 6;
}

.arm-hcard__more {
	align-self: flex-end;
	margin-top: auto;
	padding-top: 10px;
	font-size: 12px;
	color: var(--arm-muted);
	text-decoration: none;
}

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

/* ----------------------------------------------------------------- footer */

.arm-footer {
	background: var(--arm-dark);
	color: var(--arm-on-dark);
	padding-block: 32px;
}

.arm-footer__inner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	grid-template-areas:
		"brand copyright socials"
		"contacts contacts contacts";
	gap: 20px 32px;
	align-items: center;
}

.arm-footer__brand {
	grid-area: brand;
}

img.arm-logo--light {
	filter: brightness(0) invert(1);
}

.arm-logo--light.arm-logo--text {
	color: var(--arm-on-dark);
}

.arm-footer__contacts {
	grid-area: contacts;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 32px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.arm-footer__contact {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
}

.arm-footer__contact a {
	color: inherit;
	text-decoration: none;
}

.arm-footer__icon {
	display: grid;
	place-items: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--arm-brown);
	font-size: 10px;
}

.arm-footer__copyright {
	grid-area: copyright;
	margin: 0;
	text-align: center;
	font-size: 11px;
	letter-spacing: 0.04em;
	color: #cfcac5;
}

.arm-footer__socials {
	grid-area: socials;
	display: flex;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.arm-social {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.4);
	color: inherit;
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

/* The glyph inherits its colour from the link, so hover needs no extra rule. */
.arm-social .arm-icon-svg {
	width: 15px;
	height: 15px;
	display: block;
}

.arm-social:hover {
	background: rgba(255, 255, 255, 0.14);
	border-color: rgba(255, 255, 255, 0.7);
}

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

@media (max-width: 1024px) {
	.arm-about,
	.arm-environment {
		grid-template-columns: 1fr;
	}

	.arm-environment__figure,
	.arm-environment__figure:nth-child(odd),
	.arm-environment__figure:nth-child(even) {
		width: max-content;
		max-width: 100%;
		margin-inline: 0;
	}

	/* The panel turns into a header row above the cards, rule on its left. */
	.arm-feed,
	.arm-feed--end {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
	}

	.arm-feed__panel,
	.arm-feed--end .arm-feed__panel {
		order: -1;
		flex-direction: row;
		align-items: center;
		flex-wrap: wrap;
		padding: 2px 0 2px 16px;
		border-left: 4px solid var(--arm-brown);
		border-right: 0;
		text-align: left;
	}

	.arm-ecards {
		gap: 20px;
	}

	.arm-about__actions {
		gap: 40px;
	}

	/* Two up, then the third wraps: at three columns on a tablet the titles
	   inside the tiles start breaking mid-word. */
	.arm-dcards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.arm-section__head--split .arm-section__subtitle {
		justify-self: start;
		text-align: left;
	}
}

@media (max-width: 900px) {
	.arm-burger {
		display: flex;
	}

	.arm-dcards {
		grid-template-columns: 1fr;
	}

	/* The logo takes the slack, so the account button and the burger sit at
	   the right edge where a thumb reaches them. */
	.arm-header__logo {
		margin-right: auto;
	}

	/*
	 * The menu becomes a sheet under the bar: it may be as tall as the screen
	 * allows and scrolls inside itself, so a long menu never drags the page
	 * behind it. `dvh` keeps the bottom above a phone browser's own toolbar.
	 */
	.arm-nav {
		position: fixed;
		inset-inline: 0;
		top: var(--arm-header-h);
		/* Above the scrim; both live in the header's stacking context. */
		z-index: 45;
		max-height: calc(100dvh - var(--arm-header-h));
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 6px 20px 24px;
		overflow-y: auto;
		overscroll-behavior: contain;
		background: var(--arm-surface);
		border-bottom: 1px solid var(--arm-line);
		box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
		display: none;
	}

	.admin-bar .arm-nav {
		top: calc(var(--arm-header-h) + 32px);
	}

	.arm-nav.is-open {
		display: flex;
	}

	.arm-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	/* One rule per row, drawn by the row itself: hung on the link and the
	   chevron separately, it broke into two dashes with a gap between them. */
	.arm-nav__list > .arm-nav__item {
		border-bottom: 1px solid var(--arm-line);
	}

	.arm-nav__list > .arm-nav__item:last-child {
		border-bottom: 0;
	}

	.arm-nav__link {
		display: block;
		padding: 14px 0;
		font-size: 15px;
	}

	/* Dropdowns become accordions: in flow, opened by the chevron. */
	.arm-nav__row {
		display: flex;
		align-items: center;
		width: 100%;
	}

	.arm-nav__row > .arm-nav__link {
		flex: 1 1 auto;
	}

	.arm-nav__link--toggle {
		display: flex;
		justify-content: space-between;
		width: 100%;
		padding: 14px 0;
		font-size: 15px;
		text-align: left;
	}

	.arm-nav__toggle {
		width: 44px;
		height: 44px;
		margin: 0;
		border: 0;
		border-radius: 50%;
		color: var(--arm-muted);
		transform: none;
	}

	.arm-nav__item.is-open > .arm-nav__row > .arm-nav__link,
	.arm-nav__item.is-open > .arm-nav__link--toggle {
		color: var(--arm-brown);
		font-weight: 600;
	}

	/* The open list is a block of its own: tinted, with the brand's rule down
	   its left edge, so a child is never mistaken for a top-level item. */
	.arm-nav__sub {
		position: static;
		display: none;
		min-width: 0;
		margin: 0 0 10px;
		padding: 2px 0 2px 16px;
		border-left: 2px solid var(--arm-gold);
		border-radius: 0 10px 10px 0;
		background: var(--arm-bg);
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
		transition: none;
	}

	.arm-nav__sub::before {
		display: none;
	}

	.arm-nav__item.is-open > .arm-nav__sub {
		display: block;
	}

	.arm-nav__sub .arm-nav__item + .arm-nav__item {
		border-top: 1px solid var(--arm-line);
	}

	.arm-nav__sub .arm-nav__link {
		padding: 12px 10px 12px 0;
		font-size: 14px;
	}

	.arm-nav__sub .arm-nav__link:hover {
		background: none;
	}

	.arm-nav__sub .arm-nav__sub {
		margin-left: 0;
		transform: none;
	}

	/* The page behind the sheet, dimmed; tapping it closes the menu. */
	.arm-nav-scrim {
		position: fixed;
		inset: var(--arm-header-h) 0 0;
		z-index: 40;
		background: rgba(0, 0, 0, 0.35);
		-webkit-backdrop-filter: blur(1px);
		backdrop-filter: blur(1px);
	}

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

	/* While the sheet is open the page underneath stays put. */
	body.arm-nav-is-open {
		overflow: hidden;
	}

	.arm-header__messages {
		margin-left: 0;
	}

	.arm-header__inner {
		gap: 8px;
	}

	/* The bars fold into a cross while the menu is open. */
	.arm-burger__bars {
		display: flex;
		flex-direction: column;
		gap: 5px;
	}

	.arm-burger span span {
		transition: transform 0.2s ease, opacity 0.15s ease;
	}

	.arm-burger[aria-expanded="true"] span span:nth-child(1) {
		transform: translateY(7px) rotate(45deg);
	}

	.arm-burger[aria-expanded="true"] span span:nth-child(2) {
		opacity: 0;
	}

	.arm-burger[aria-expanded="true"] span span:nth-child(3) {
		transform: translateY(-7px) rotate(-45deg);
	}
}

@media (max-width: 480px) {
	.arm-header__cta {
		padding: 9px 16px;
		font-size: 12px;
	}

	.arm-header__messages {
		width: 38px;
		height: 38px;
	}
}

@media (max-width: 780px) {
	.arm-cards--3,
	.arm-architects__buttons {
		grid-template-columns: 1fr;
	}

	/* The cards become a row to swipe, each most of the width. */
	.arm-feed__cards {
		display: flex;
		gap: 14px;
		margin-inline: -16px;
		padding: 4px 16px 18px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: 16px;
		scrollbar-width: none;
	}

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

	.arm-hcard {
		flex: 0 0 min(78%, 300px);
		scroll-snap-align: start;
	}

	.arm-tiles {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 12px;
	}

	.arm-tile {
		min-height: 142px;
		padding: 14px 8px;
		border-radius: 16px;
	}

	.arm-tile__icon--glyph .arm-icon-svg {
		width: 60px;
		height: 60px;
	}

	.arm-tile__label {
		font-size: 12px;
	}

	.arm-ecards {
		grid-template-columns: minmax(0, 1fr);
	}

	.arm-education__mark .arm-icon-svg {
		width: 52px;
		height: 52px;
	}

	/* Stack the top strip so the brand drops under the contacts. */
	.arm-hero__top {
		flex-direction: column;
		gap: 16px;
	}

	.arm-hero__inner {
		justify-content: flex-start;
		padding-top: 24px;
	}

	.arm-hero__title {
		text-align: left;
	}

	.arm-hero__contacts {
		gap: 8px 16px;
	}

	.arm-footer__inner {
		grid-template-columns: 1fr;
		grid-template-areas:
			"brand"
			"contacts"
			"copyright"
			"socials";
		justify-items: center;
	}
}

/* ------------------------------------------------- PDF card inside content */

.arm-file-card {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin: 16px 0;
	padding: 12px 18px 12px 12px;
	background: var(--arm-surface);
	border: 1px solid var(--arm-line);
	border-radius: 10px;
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.arm-file-card:hover {
	border-color: var(--arm-brown);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.arm-file-card__ext {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	flex: none;
	border-radius: 6px;
	background: #b32d2e;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.arm-file-card__name {
	font-size: 14px;
	color: var(--arm-text);
}

.arm-file-card__size {
	font-size: 12px;
	color: var(--arm-muted);
}

/* An inline PDF link inside a paragraph. */

.arm-file-inline {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--arm-brown);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.arm-file-inline::before {
	content: "PDF";
	padding: 1px 5px;
	border-radius: 3px;
	background: #b32d2e;
	color: #fff;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-decoration: none;
}

/* Unread-message badge in the header. */

.arm-header__messages {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	color: var(--arm-text);
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

/* A real glyph, not the ✉ character: its size followed the font, not the design. */
.arm-header__icon {
	display: block;
	width: 22px;
	height: 22px;
}

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

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

.arm-header__unread {
	position: absolute;
	top: 2px;
	right: 0;
	min-width: 18px;
	height: 18px;
	padding-inline: 5px;
	border-radius: 999px;
	background: #b32d2e;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
}

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

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

/* -------------------------------------------------------------------- band */

/*
 * A background strip behind one or more adjacent sections. The sections keep
 * their own vertical padding; the band only paints behind them.
 */
.arm-band {
	position: relative;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

/* Sections sit on their own alternating tint, which would hide the band. Inside
   a band they go transparent so the image shows through. */
.arm-band > .arm-section,
.arm-band > .arm-section:nth-of-type(even) {
	background: transparent;
}

/* A phone: the support tiles turn into rows — the glyph on the left, the
   label beside it — so a long word like «խորհրդատվություն» never has to
   squeeze into a third of the width. */
@media (max-width: 600px) {
	.arm-tiles {
		grid-template-columns: minmax(0, 1fr);
		gap: 10px;
	}

	.arm-tile {
		flex-direction: row;
		justify-content: flex-start;
		gap: 16px;
		min-height: 0;
		padding: 12px 18px;
	}

	.arm-tile__icon {
		flex: 0 0 auto;
	}

	.arm-tile__icon--glyph .arm-icon-svg {
		width: 52px;
		height: 52px;
	}

	.arm-tile__label {
		font-size: 14px;
		text-align: left;
	}
}

/* A menu item whose page does not exist yet: shown, greyed out, not a link. */
.arm-nav__link.is-soon {
	color: #b9b2ab;
	cursor: default;
}

.arm-nav__link.is-soon::after {
	display: none;
}

/* A top-level item with no page of its own (it only opens its list) is a
   button; `font: inherit` would give it the body size, so it is brought back
   to the menu's size. */
@media (min-width: 901px) {
	.arm-nav__list > .arm-nav__item > .arm-nav__link--toggle {
		font-size: 13px;
	}
}

/* Between the phone menu and a wide screen the labels are tightened and the
   long ones fold onto two lines, rather than push the logo out of view. */
@media (min-width: 901px) and (max-width: 1200px) {
	.arm-nav__list {
		gap: 14px;
	}
}

@media (min-width: 901px) and (max-width: 1150px) {
	/* Only between words: «Բաժանորդագրում» stays whole. */
	.arm-nav__list > .arm-nav__item > .arm-nav__link--toggle,
	.arm-nav__list > .arm-nav__item > .arm-nav__row > .arm-nav__link {
		max-width: 10em;
		line-height: 1.25;
		white-space: normal;
		overflow-wrap: normal;
		word-break: normal;
		text-align: left;
	}
}

/* The right-hand items' third level opens to the left, inside the screen
   («Գործունեություն» → «Կրթական» → …). */
@media (min-width: 901px) {
	.arm-nav__list > .arm-nav__item:nth-last-child(-n+3) .arm-nav__sub .arm-nav__sub {
		left: auto;
		right: 100%;
		margin-left: 0;
		margin-right: 6px;
		transform: translateX(-6px);
	}

	.arm-nav__list > .arm-nav__item:nth-last-child(-n+3) .arm-nav__sub .arm-nav__sub::before {
		left: auto;
		right: -8px;
	}
}
