/* ==========================================================================
   DSMS — New UI Portfolio (Figma 88:5087), Blog list (88:5204), Blog detail (88:5242).
   Tokens / buttons: chrome.css · headings, sections, .hm-btn-outline: home.css
   ========================================================================== */

/* ---------- Shared: heading that only takes its own width (bar over the title, centred) ---------- */
.ui-head-fit { width: fit-content; max-width: 100%; margin-inline: auto; }

/* ---------- Shared: breadcrumbs (Figma 67:3680) ---------- */
.ui-crumbs { padding: 23px 0 20px; border-bottom: 1px solid #dfe4ea; }
.ui-crumbs__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
}
.ui-crumbs__list li { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.ui-crumbs__list li:last-child { flex: 1 1 0; }
.ui-crumbs .dsms-icon { flex-shrink: 0; width: 18px; height: 18px; color: #5f5f5f; }
.ui-crumbs a { color: #5f5f5f; text-decoration: none; }
.ui-crumbs a:hover { color: var(--hm-gold); }
.ui-crumbs__home { display: inline-flex; }
.ui-crumbs__current { overflow: hidden; color: var(--hm-gold); text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Shared: pagination (Figma "Pagination" 63:1252) ---------- */
.ui-pager {
	display: inline-flex;
	align-items: stretch;
	max-width: 100%;
	height: 36px;
	overflow: hidden;
	border: 1px solid #eef0f3;
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(42, 51, 66, .06);
	font-family: var(--hm-font);
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
}
.ui-pager > * {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0 12px;
	border: 0;
	border-left: 1px solid #eef0f3;
	background: none;
	color: #556987;
	font: inherit;
	text-decoration: none;
	cursor: pointer;
}
.ui-pager > :first-child { border-left: 0; padding-inline: 16px; }
.ui-pager > :last-child { padding-inline: 16px; }
.ui-pager__num { min-width: 36px; padding: 0 6px; }
.ui-pager a:hover,
.ui-pager button:hover:not(:disabled) { background: #f9fafb; color: var(--hm-black); }
.ui-pager .is-current { color: var(--hm-primary); cursor: default; }
.ui-pager .is-gap { cursor: default; }
.ui-pager .is-disabled,
.ui-pager :disabled { color: #bbc3cf; cursor: default; }
.ui-pager a:focus-visible,
.ui-pager button:focus-visible { outline: 2px solid var(--hm-primary); outline-offset: -2px; }

/* ---------- Shared: social icons ---------- */
.ui-social { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ui-social a { display: inline-flex; color: #374151; transition: color .2s ease, transform .2s ease; }
.ui-social a:hover { color: var(--hm-gold); transform: translateY(-1px); }
.ui-social .dsms-icon { width: 24px; height: 24px; }
.ui-social--lg a { color: var(--hm-gold); }
.ui-social--lg a:hover { color: var(--hm-black); }
.ui-social--lg .dsms-icon { width: 40px; height: 40px; }

/* ==========================================================================
   Portfolio
   ========================================================================== */
.pf2 { padding: 24px 0 42px; } /* + footer margin 65 = 107 (Figma) */
.pf2__tabs {
	display: flex;
	gap: 24px;
	max-width: 994px;
	margin: 0 auto 24px;
}
.pf2__tab {
	display: flex;
	flex: 1 1 0;
	align-items: center;
	justify-content: center;
	min-width: 0;
	height: 40px;
	padding: 8px 16px;
	border-bottom: 1px solid #f4f3f6;
	color: var(--hm-text);
	font-size: 14px;
	line-height: 24px;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	transition: color .2s ease, border-color .2s ease;
}
.pf2__tab:hover { color: var(--hm-primary); }
.pf2__tab.is-active { border-bottom-color: var(--hm-primary); color: var(--hm-primary); font-weight: 600; }
.pf2__tab:focus-visible { outline: 2px solid var(--hm-primary); outline-offset: 2px; }

.pf2__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	margin-bottom: 32px;
}
.pf2__count { margin: 0; color: var(--hm-black); font-size: 16px; line-height: 24px; }
.pf2__count strong { color: var(--hm-primary); font-weight: 400; }
.pf2__filter { display: flex; align-items: center; gap: 16px; margin: 0; }
.pf2__filter-label { margin: 0; color: #000; font-size: 14px; font-weight: 500; line-height: 20px; }
.pf2__select { position: relative; display: inline-flex; }
.pf2__select select {
	min-width: 140px;
	height: 38px;
	padding: 8px 40px 8px 16px;
	border: 1px solid #cfd1d7;
	border-radius: 6px;
	background: #fff;
	color: var(--hm-black);
	font-family: var(--hm-font);
	font-size: 14px;
	line-height: 20px;
	cursor: pointer;
	appearance: none;
}
.pf2__select select:focus-visible { outline: 2px solid var(--hm-primary); outline-offset: 1px; }
.pf2__select .dsms-icon { position: absolute; top: 50%; right: 14px; width: 18px; height: 18px; transform: translateY(-50%); pointer-events: none; }

.pf2__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
/* Every card the same height: titles take exactly 2 lines (longer ones end with "…"),
   the button sits at the bottom. */
.pf2-card { display: flex; flex-direction: column; gap: 20px; min-width: 0; height: 100%; }
.pf2-card[hidden] { display: none; }
.pf2-card__media { display: block; aspect-ratio: 379 / 268; overflow: hidden; background: var(--hm-gray-bg); }
.pf2-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pf2-card:hover .pf2-card__media img { transform: scale(1.04); }
.pf2-card__body { display: flex; flex: 1 1 auto; flex-direction: column; align-items: flex-start; gap: 16px; }
.pf2-card__title {
	--pf2-lh: 1.25em;
	display: -webkit-box;
	min-height: calc(var(--pf2-lh) * 2);
	margin: 0;
	overflow: hidden;
	color: var(--hm-black);
	font-size: 24px;
	font-weight: 700;
	line-height: var(--pf2-lh);
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
}
.pf2-card__body .hm-btn-outline { margin-top: auto; }
.pf2-card__title a { color: inherit; text-decoration: none; }
.pf2-card__title a:hover { color: var(--hm-primary); }

.pf2__empty { margin: 0; padding: 48px 0; color: var(--hm-text); text-align: center; }
.pf2__pager { display: flex; justify-content: center; }
.pf2__pager:not(:empty) { margin-top: 32px; }

/* ==========================================================================
   Blog — list
   ========================================================================== */
.bl2-list { padding-top: 48px; } /* next section / footer adds the 65px gap */
.bl2-list__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 32px;
}
.bl2-search {
	position: relative;
	display: flex;
	align-items: center;
	width: 424px;
	max-width: 100%;
	margin: 0;
}
.bl2-search__icon { position: absolute; left: 16px; width: 24px; height: 24px; color: #6d6a6b; pointer-events: none; }
.bl2-search__input {
	width: 100%;
	height: 48px;
	padding: 11px 16px 11px 48px;
	border: 1px solid #b6b7bc;
	border-radius: 4px;
	background: #fff;
	color: var(--hm-black);
	font-family: var(--hm-font);
	font-size: 14px;
	line-height: 20px;
	letter-spacing: .25px;
}
.bl2-search__input::placeholder { color: #6d6a6b; opacity: 1; }
.bl2-search__input:focus { border-color: var(--hm-primary); outline: none; box-shadow: 0 0 0 3px rgba(250, 146, 90, .2); }

.bl2-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.bl2-list .ui-pager { display: flex; width: fit-content; margin: 32px auto 0; }
.bl2-empty { margin: 0; padding: 48px 0; color: var(--hm-text); text-align: center; }

/* Card (Figma "Blog" 67:3620) */
.bl2-card { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.bl2-card__media {
	position: relative;
	display: block;
	aspect-ratio: 379 / 287;
	overflow: hidden;
	background: var(--hm-gray-bg);
	box-shadow: 0 10px 15px rgba(151, 151, 151, .08);
}
.bl2-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.bl2-card:hover .bl2-card__media img { transform: scale(1.04); }
.bl2-date {
	position: absolute;
	top: 18px;
	left: 21px;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 50px;
	padding: 4px;
	background: var(--hm-gold);
	color: #fff;
	line-height: normal;
	text-align: center;
}
.bl2-date__day { margin-bottom: -6px; font-size: 18px; font-weight: 600; }
.bl2-date__month { font-size: 14px; font-weight: 500; }
.bl2-card__body { display: flex; flex-direction: column; gap: 8px; }
.bl2-card__title { margin: 0; color: var(--hm-black); font-size: 20px; font-weight: 700; line-height: normal; }
.bl2-card__title a { color: inherit; text-decoration: none; }
.bl2-card__title a:hover { color: var(--hm-primary); }
.bl2-author { display: flex; align-items: center; gap: 8px; margin: 0; color: #6b7280; font-size: 14px; line-height: 20px; }
.bl2-author__img { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.bl2-author--lg { gap: 12px; color: #374151; font-size: 18px; line-height: 26px; }
.bl2-author--lg .bl2-author__img { width: 36px; height: 36px; }

/* Latest Articles (Figma 88:5228) */
.bl2-latest .ui-head-fit { margin-bottom: 32px; }
.bl2-latest__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 32px; }
.bl2-thumb { display: flex; gap: 20px; min-width: 0; min-height: 120px; background: #fff; }
.bl2-thumb__media { position: relative; flex: 0 0 175px; overflow: hidden; background: #e5e7eb; }
.bl2-thumb__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.bl2-thumb:hover .bl2-thumb__media img { transform: scale(1.05); }
.bl2-thumb__body { display: flex; flex: 1 1 0; flex-direction: column; gap: 8px; min-width: 0; padding: 20px 20px 20px 0; }
.bl2-thumb__title {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	color: #231c1d;
	font-size: 20px;
	font-weight: 700;
	line-height: normal;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.bl2-thumb__title a { color: inherit; text-decoration: none; }
.bl2-thumb__title a:hover { color: var(--hm-primary); }
.bl2-thumb__text {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	color: #333845;
	font-size: 16px;
	line-height: 24px;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

/* ==========================================================================
   Blog — detail
   ========================================================================== */
.bl2-post { padding: 48px 0 var(--hm-gap); }
.bl2-post__head { display: flex; flex-direction: column; align-items: center; gap: 24px; max-width: 994px; margin: 0 auto; text-align: center; }
.bl2-post__title { max-width: 977px; margin: 0; color: #1c232d; font-size: 36px; font-weight: 700; line-height: normal; }
.bl2-post__meta { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: -4px; }
.bl2-post__lead { margin: 0; color: #374151; font-size: 16px; line-height: 24px; }
/* Featured photo: 994 × 460 at 1440 (Figma 88:5262). Keeps that ratio at every width (phones: the
   portrait crop of the phone design) and never gets taller than 70% of the window. The zoom-in on
   reveal (motion.css) only scales the photo inside this frame. */
.bl2-post__featured {
	position: relative;
	/* 994px at 1440; wider screens: grows with the window up to the content column (aligned with
	   the breadcrumbs / header, 1200px). */
	width: min(100%, max(994px, 69.03vw));
	max-width: none;
	margin: 24px auto 0;
	overflow: hidden;
}
.bl2-post__featured img {
	display: block;
	width: 100%;
	height: auto;
	max-width: none;
	max-height: max(460px, 70svh);
	aspect-ratio: 994 / 460;
	object-fit: cover;
	object-position: center;
}
.bl2-post__body { max-width: 790px; margin: 24px auto 0; }
.bl2-post__rule { margin: 24px 0; border: 0; border-top: 1px solid #eef0f3; opacity: 1; }

/* Post content (Figma body: 16/24 #556987, headings 24/32 #333f51) */
.bl2-content { color: #556987; font-size: 16px; line-height: 24px; overflow-wrap: break-word; }
.bl2-content > * { margin-top: 0; margin-bottom: 24px; }
.bl2-content > *:last-child { margin-bottom: 0; }
.bl2-content h2,
.bl2-content h3,
.bl2-content h4 { margin-bottom: 16px; color: #333f51; font-weight: 700; }
.bl2-content h2 { font-size: 24px; line-height: 32px; }
.bl2-content h3 { font-size: 20px; line-height: 28px; }
.bl2-content h4 { font-size: 18px; line-height: 26px; }
.bl2-content a { color: var(--hm-gold); text-decoration: underline; text-underline-offset: 2px; }
.bl2-content a:hover { color: var(--hm-primary); }
.bl2-content strong { color: #333f51; }
.bl2-content ul,
.bl2-content ol { padding-left: 24px; }
.bl2-content li + li { margin-top: 4px; }
.bl2-content img { max-width: 100%; height: auto; border-radius: 6px; }
.bl2-content figure { max-width: 100%; }
.bl2-content figcaption { margin-top: 8px; color: #9ca3af; font-size: 14px; text-align: center; }
.bl2-content hr,
.bl2-content .wp-block-separator { margin: 24px 0; border: 0; border-top: 1px solid #eef0f3; opacity: 1; }
.bl2-content blockquote { margin-left: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--hm-primary); color: #333f51; font-style: italic; }
.bl2-content .alignwide,
.bl2-content .alignfull { width: 100%; max-width: 100%; margin-inline: 0; }
.bl2-content iframe,
.bl2-content video { max-width: 100%; }

/* Share row + follow box */
.bl2-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bl2-share__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 36px;
	padding: 8px 16px;
	border: 1px solid #d5dae1;
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(105, 81, 255, .05);
	color: #556987;
	font-family: var(--hm-font);
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
	text-decoration: none;
	cursor: pointer;
	transition: border-color .2s ease, color .2s ease;
}
.bl2-share__btn .dsms-icon { width: 20px; height: 20px; }
.bl2-share__btn:hover { border-color: var(--hm-gold); color: var(--hm-gold); }
.bl2-share__copy { margin-right: 8px; }
.bl2-share__copy.is-copied { border-color: #22a06b; color: #22a06b; }
.bl2-share__icon { width: 36px; padding: 0; }

.bl2-follow {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	margin-top: 24px;
	padding: 20px 48px;
	background: #faf5ef;
}
.bl2-follow__text { display: flex; flex-direction: column; gap: 5px; }
.bl2-follow__title { margin: 0; color: var(--hm-gold); font-size: 18px; font-weight: 600; line-height: 26px; }
.bl2-follow__sub { margin: 0; color: #374151; font-size: 14px; line-height: 20px; }

/* Comments (only when comments are open on a post) */
.bl2-post .comments-area { margin-top: 40px; padding-top: 32px; border-top: 1px solid #eef0f3; }
.bl2-post .comments-title,
.bl2-post .comment-reply-title { margin: 0 0 20px; color: #333f51; font-size: 24px; font-weight: 700; line-height: 32px; }
.bl2-post .comment-list { margin: 0 0 32px; padding: 0; list-style: none; }
.bl2-post .comment-list .children { margin: 16px 0 0 32px; padding: 0; list-style: none; }
.bl2-post .comment-body { padding: 16px 0; border-bottom: 1px solid #eef0f3; color: #556987; font-size: 16px; line-height: 24px; }
.bl2-post .comment-author { display: flex; align-items: center; gap: 12px; color: #1c0f13; font-weight: 600; }
.bl2-post .comment-author img { border-radius: 50%; }
.bl2-post .comment-author .says { display: none; }
.bl2-post .comment-metadata { margin: 4px 0 8px 60px; font-size: 13px; }
.bl2-post .comment-metadata a { color: #9ca3af; text-decoration: none; }
.bl2-post .comment-content { margin-left: 60px; }
.bl2-post .comment-content p { margin: 0 0 8px; }
.bl2-post .reply { margin-left: 60px; font-size: 14px; font-weight: 500; }
.bl2-post .reply a { color: var(--hm-gold); text-decoration: none; }
.dsms-comment-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dsms-comment-form > p { margin: 0; }
.dsms-comment-form .comment-form-comment,
.dsms-comment-form .form-submit,
.dsms-comment-form .logged-in-as,
.dsms-comment-form .comment-notes { grid-column: 1 / -1; }
.dsms-comment-form label { display: block; margin-bottom: 6px; color: #333f51; font-size: 14px; font-weight: 500; line-height: 20px; }
.dsms-comment-form input[type="text"],
.dsms-comment-form input[type="email"],
.dsms-comment-form textarea {
	display: block;
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #d5dae1;
	border-radius: 4px;
	background: #fff;
	color: #1c0f13;
	font: inherit;
	font-size: 16px;
	line-height: 24px;
}
.dsms-comment-form textarea { min-height: 140px; resize: vertical; }
.dsms-comment-form input:focus,
.dsms-comment-form textarea:focus { border-color: var(--hm-gold); outline: 0; box-shadow: 0 0 0 3px rgba(195, 134, 80, .15); }
.dsms-comment-form .dsms-comment-form__submit {
	padding: 10px 24px;
	border: 0;
	background: var(--hm-gold);
	color: #fff;
	font-family: var(--hm-font);
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
	text-transform: uppercase;
	cursor: pointer;
}
.dsms-comment-form .dsms-comment-form__submit:hover { filter: brightness(.95); }
.logged-in-as { color: #556987; font-size: 14px; }
.logged-in-as a { color: var(--hm-gold); }

/* Related Blogs slider (Figma 88:5292) */
.bl2-related.hm-section--gray { padding-block: 60px; background: #f9fafb; }
.bl2-related .ui-head-fit { margin-bottom: 24px; }
.bl2-related__stage { position: relative; }
.bl2-related__track {
	display: grid;
	grid-auto-columns: calc((100% - 64px) / 3);
	grid-auto-flow: column;
	gap: 32px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding-bottom: 4px;
}
.bl2-related__track::-webkit-scrollbar { display: none; }
.bl2-related__track:focus-visible { outline: 2px solid var(--hm-primary); outline-offset: 4px; }
.bl2-related__item { scroll-snap-align: start; }
.bl2-arrow {
	position: absolute;
	top: calc(min(287px, (100vw - 104px) / 3 * 287 / 379) / 2 - 20px);
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	background: var(--hm-black);
	color: #fff;
	cursor: pointer;
	transition: background-color .2s ease, opacity .2s ease;
}
.bl2-arrow .dsms-icon { width: 20px; height: 20px; }
.bl2-arrow--prev { left: -17px; }
.bl2-arrow--next { right: -17px; }
.bl2-arrow--next .dsms-icon { transform: scaleX(-1); }
.bl2-arrow:hover:not(:disabled) { background: var(--hm-primary); }
.bl2-arrow:disabled { opacity: .35; cursor: default; }
.bl2-arrow:focus-visible { outline: 2px solid var(--hm-primary); outline-offset: 2px; }
.bl2-related.is-static .bl2-arrow { display: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1239.98px) {
	.bl2-arrow--prev { left: 4px; }
	.bl2-arrow--next { right: 4px; }
}

@media (max-width: 991.98px) {
	.pf2__grid,
	.bl2-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
	.bl2-latest__grid { grid-template-columns: minmax(0, 1fr); }
	.bl2-related__track { grid-auto-columns: calc((100% - 24px) / 2); gap: 24px; }
	.bl2-arrow { top: calc((50vw - 44px) * 287 / 379 / 2 - 20px); }
	.pf2-card__title { font-size: 22px; }
	.bl2-post__title { font-size: 30px; }
}

@media (max-width: 767.98px) {
	.ui-crumbs { padding: 16px 0 14px; }
	.ui-crumbs__list { font-size: 14px; }

	.pf2 { padding-top: 16px; }
	.pf2__tabs { gap: 0; margin-inline: calc(var(--hm-gutter) * -1); padding-inline: var(--hm-gutter); overflow-x: auto; scrollbar-width: none; }
	.pf2__tabs::-webkit-scrollbar { display: none; }
	.pf2__tab { flex: 1 0 auto; padding-inline: 12px; font-size: 13px; white-space: nowrap; }
	.pf2__bar { margin-bottom: 24px; }
	.pf2__filter { gap: 10px; }

	.bl2-list,
	.bl2-post { padding-top: 32px; }
	.bl2-search { width: 100%; }
	.bl2-thumb__media { flex-basis: 120px; }
	.bl2-thumb__body { padding: 14px 14px 14px 0; }
	.bl2-thumb__title { font-size: 17px; }
	.bl2-thumb__text { font-size: 14px; line-height: 22px; }
	.bl2-post__title { font-size: 26px; }
	.bl2-post__head { gap: 20px; }
	.bl2-post__featured img { aspect-ratio: 4 / 3; }
	.bl2-follow { padding: 20px; }
	.dsms-comment-form { grid-template-columns: 1fr; }
	.bl2-post .comment-content,
	.bl2-post .reply,
	.bl2-post .comment-metadata { margin-left: 0; }
	.ui-social--lg .dsms-icon { width: 34px; height: 34px; }
	.bl2-related.hm-section--gray { padding-block: 48px; }
	.bl2-related__track { grid-auto-columns: 82%; gap: 16px; margin-inline: calc(var(--hm-gutter) * -1); padding-inline: var(--hm-gutter); scroll-padding-inline: var(--hm-gutter); }
	.bl2-arrow { display: none; }
}

@media (max-width: 575.98px) {
	.pf2__grid,
	.bl2-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.pf2-card__title { font-size: 20px; }
}

/* ==========================================================================
   Portfolio on phones — Figma mobile 440 "Portfolio" 182:10355
   ========================================================================== */
.pf2__more {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 6px 12px 6px 16px;
	border: 0;
	background: none;
	color: var(--hm-black);
	font-family: var(--hm-font);
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
	cursor: pointer;
	transition: color .2s ease;
}
.pf2__more .dsms-icon { width: 14px; height: 14px; }
.pf2__more:hover { color: var(--hm-primary); }
.pf2__more:focus-visible { outline: 2px solid var(--hm-primary); outline-offset: 2px; }

@media (max-width: 767.98px) {
	.pf2 { padding: 16px 0 40px; }
	.dsms-ui2--portfolio .site-footer.ftr { margin-top: 0; }
	.pf2__tabs { justify-content: flex-start; margin-bottom: 20px; }
	.pf2__tab { flex: 0 0 auto; padding: 8px 16px; font-size: 14px; }
	.pf2__bar { margin-bottom: 24px; }
	.pf2__count,
	.pf2__filter-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.pf2__filter,
	.pf2__select,
	.pf2__select select { width: 100%; }
	.pf2__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.pf2-card { gap: 16px; height: auto; }
	.pf2-card__media { border-radius: 12px; }
	.pf2-card__body { gap: 12px; }
	.pf2-card__title { --pf2-lh: 1.5em; min-height: 0; font-size: 18px; }
	.pf2-card__body .hm-btn-outline { margin-top: 0; }
	.pf2__pager:not(:empty) { margin-top: 24px; }
}

/* ==========================================================================
   Project detail — Figma desktop 167:9411, phone 182:10393
   (breadcrumbs, service • type, name, photo slider from service2.css, lightbox from portfolio.css)
   ========================================================================== */
.dsms-ui2--project .ui-crumbs__current { color: var(--hm-primary); font-weight: 600; }
.dsms-ui2--project .ui-crumbs a:hover { color: var(--hm-primary); }

.pf2-detail { padding-top: 48px; overflow: hidden; overflow: clip; }
.pf2-detail__head { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.pf2-detail__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 16px; margin: 0; }
.pf2-detail__service { color: var(--hm-primary); font-size: 20px; font-weight: 600; line-height: 24px; text-decoration: none; text-transform: uppercase; }
.pf2-detail__type { display: inline-flex; align-items: center; gap: 12px; color: var(--hm-black); font-size: 16px; font-weight: 600; line-height: 24px; text-decoration: none; }
.pf2-detail__type::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pf2-detail__service:hover,
.pf2-detail__type:hover { color: var(--hm-primary-hover); }
.pf2-detail__title { max-width: 640px; margin: 0; color: var(--hm-black); font-family: var(--hm-font); font-size: 36px; font-weight: 700; line-height: normal; text-transform: uppercase; overflow-wrap: break-word; }

/* Slider: 2 photos (584×486) at a time, neighbours peeking on both sides (same as Interior Design). */
.pf2-detail__stage { margin-top: 40px; }
.pf2-detail__stage .sv-gallery__track { aspect-ratio: 1200 / 486; }
.pf2-detail__stage .hm-dots { margin-top: 32px; }
.pf2-detail__zoom { display: block; width: 100%; height: 100%; cursor: zoom-in; -webkit-user-drag: none; }
.pf2-detail__stage .sv-gallery__slide.is-peek .pf2-detail__zoom { cursor: pointer; }
.pf2-detail__zoom img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; pointer-events: none; transition: transform .5s ease; }
.pf2-detail__stage .sv-gallery__slide:not(.is-peek) .pf2-detail__zoom:hover img { transform: scale(1.03); }
.pf2-detail__zoom:focus-visible { outline: 2px solid var(--hm-primary); outline-offset: -2px; }
/* Only 1–2 photos: centred, no peeking neighbours. */
.pf2-detail__stage.is-few[data-count="1"] { --per: 1; --slide-w: min(584px, 100%); }
.pf2-detail__stage.is-few[data-count="1"] .sv-gallery__track { aspect-ratio: auto; height: 486px; }
.pf2-detail__stage.is-few[data-count="1"] .sv-gallery__slide { left: 50%; transform: translateX(-50%); }

.pf2-detail__content { max-width: 790px; margin: 40px auto 0; }
.pf2-detail__empty { margin: 32px 0 0; color: var(--hm-text); text-align: center; }

@media (max-width: 991.98px) {
	.pf2-detail__title { font-size: 30px; }
}

@media (max-width: 767.98px) {
	.dsms-ui2--project .pf2-crumbs { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.pf2-detail { padding: 32px 0 40px; }
	.dsms-ui2--project .site-footer.ftr { margin-top: 0; }
	.pf2-detail__head { gap: 12px; }
	.pf2-detail__meta { gap: 4px 32px; }
	.pf2-detail__type { font-size: 18px; font-weight: 500; line-height: 1.5; }
	.pf2-detail__title { font-size: 32px; line-height: 1.4; text-transform: none; }

	.pf2-detail__stage { --per: 1; --gap: 23px; --slide-w: calc(100% - 22px); margin-top: 24px; }
	.pf2-detail__stage .sv-gallery__track { aspect-ratio: 378 / 520; }
	.pf2-detail__stage .sv-gallery__slide { border-radius: 12px; }
	.pf2-detail__stage .sv-gallery__slide.is-peek { top: 9.23%; height: 80.96%; }
	.pf2-detail__stage .sv-gallery__slide.is-peek::after { opacity: 0; }
	.pf2-detail__stage .hm-dots { flex-wrap: wrap; justify-content: flex-start; margin-top: 24px; }
	.pf2-detail__stage.is-few[data-count="1"] .sv-gallery__track { height: auto; aspect-ratio: 378 / 520; }
	.pf2-detail__content { margin-top: 24px; }
}

/* ==========================================================================
   Blog on phones — Figma mobile 440 "Our blogs" 182:10464, "Blog details" 182:10489
   ========================================================================== */
.bl2-more { display: flex; justify-content: center; margin-top: 32px; }
.bl2-more .pf2__more { text-decoration: none; }
.bl2-more .pf2__more.is-loading { opacity: .5; pointer-events: none; }
.bl2-list .ui-pager.is-stale { display: none; }

@media (max-width: 767.98px) {
	/* No breadcrumb row in the phone design (the trail stays in the HTML for Google). */
	.dsms-ui2--blog .bl2-crumbs { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

	.bl2-list { padding-top: 40px; }
	.bl2-list__head { gap: 16px; margin-bottom: 32px; }
	.bl2-list .ui-pager { display: none; }
	.bl2-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.bl2-card { gap: 24px; }
	.bl2-card__media { aspect-ratio: 400 / 287; }
	.bl2-card .bl2-date { top: 18px; left: 21px; }
	.bl2-card__title { font-size: 20px; }

	.bl2-latest .ui-head-fit { align-items: center; margin: 0 auto 24px; text-align: center; }
	.bl2-latest__grid { gap: 20px; }
	.bl2-thumb { gap: 20px; min-height: 198px; }
	.bl2-thumb__media { flex-basis: 175px; }
	.bl2-thumb__body { padding: 20px 20px 20px 0; }
	.bl2-thumb__title { font-size: 20px; line-height: normal; }
	.bl2-thumb__text { font-size: 16px; line-height: 24px; }

	.bl2-post { padding-top: 40px; }
	.bl2-post__head { gap: 20px; }
	.bl2-post__title { font-size: 24px; line-height: 1.4; }
	.bl2-post__featured img { aspect-ratio: 400 / 460; max-height: none; }

	/* Compact "Have a project in mind?" band on blog pages (Figma 182:10467). */
	.dsms-ui2--blog .ftr-cta { min-height: 378px; padding: 40px 24px; }
	.dsms-ui2--blog .ftr-cta__title { font-size: 24px; }
	.dsms-ui2--blog .ftr-cta__text { margin-top: -16px; font-size: 16px; }
	.dsms-ui2--blog .ftr-cta__btn { padding: 8px 24px; font-size: 14px; line-height: 20px; }
}

@media (prefers-reduced-motion: reduce) {
	.pf2-card__media img,
	.bl2-card__media img,
	.bl2-thumb__media img { transition: none; }
	.bl2-related__track { scroll-behavior: auto; }
}

/* ==========================================================================
   FAQ under a blog post / project (inc/faq.php): accordion, first answer open.
   ========================================================================== */
.dsms-faq { margin-top: 40px; font-family: var(--hm-font); }
.bl2-content .dsms-faq { margin-top: 40px; }
.dsms-faq__title { position: relative; margin: 0 0 20px; padding-top: 22px; color: var(--hm-black); font-size: 24px; font-weight: 700; line-height: 1.4; }
.dsms-faq__title::before { content: ""; position: absolute; top: 0; left: 0; width: 60px; height: 6px; background: var(--hm-primary); }
.dsms-faq__list { border-top: 1px solid #e5e7eb; }
.dsms-faq__item { border-bottom: 1px solid #e5e7eb; }
.dsms-faq__q {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 0;
	color: var(--hm-black);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.5;
	list-style: none;
	cursor: pointer;
	transition: color .2s ease;
}
.dsms-faq__q::-webkit-details-marker { display: none; }
.dsms-faq__q::marker { content: ""; }
.dsms-faq__q:hover,
.dsms-faq__item[open] > .dsms-faq__q { color: var(--hm-primary); }
.dsms-faq__q:focus-visible { outline: 2px solid var(--hm-primary); outline-offset: 2px; }
.dsms-faq__icon { position: relative; flex: 0 0 24px; width: 24px; height: 24px; margin-top: 2px; border-radius: 50%; background: #fff4ee; }
.dsms-faq__icon::before,
.dsms-faq__icon::after { content: ""; position: absolute; top: 50%; left: 50%; width: 10px; height: 2px; border-radius: 1px; background: var(--hm-primary); transform: translate(-50%, -50%); transition: transform .25s ease; }
.dsms-faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.dsms-faq__item[open] .dsms-faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.dsms-faq__a { padding: 0 40px 20px 0; color: #556987; font-size: 16px; line-height: 24px; }
.dsms-faq__a > :last-child { margin-bottom: 0; }
.dsms-faq__a p { margin: 0 0 12px; }
.dsms-faq__a a { color: var(--hm-primary); text-decoration: underline; text-underline-offset: 2px; }
.dsms-faq__a ul,
.dsms-faq__a ol { margin: 0 0 12px; padding-left: 20px; }
.pf2-detail__faq { max-width: 790px; margin: 0 auto; }
@media (max-width: 767.98px) {
	.dsms-faq { margin-top: 32px; }
	.dsms-faq__title { font-size: 22px; }
	.dsms-faq__q { padding: 16px 0; font-size: 16px; }
	.dsms-faq__a { padding-right: 0; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
	.dsms-faq__icon::before,
	.dsms-faq__icon::after { transition: none; }
}