/*
 * Theme Name: HSdeck
 * Theme URI: https://hsdeck.com/
 * Author: HSdeck
 * Description: A lightweight block theme for Hearthstone decks and articles.
 * Version: 1.40.23
 * Requires at least: 6.6
 * Tested up to: 7.0
 * Requires PHP: 7.4
 * License: GPL-2.0-or-later
 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain: hsdeck
 * Tags: full-site-editing, blog, news, one-column
 */

/**
 * Stylesheet Index
 *
 * 1.0 Foundations
 * 2.0 Header and Search
 * 3.0 Content Shell
 * 4.0 Post Lists
 * 6.0 Entries
 * 7.0 Empty States
 * 7.5 Application navigation shell
 * 9.0 Search dialog and expansion controls
 * 8.0 Responsive Rules
 */

/* stylelint-disable no-descending-specificity -- Intentional overrides. */

/**
 * 1.0 Foundations
 */

:root {
	--hsdeck-admin-height: 0px;
	--hsdeck-mobile-header-height: 0px;
	--hsdeck-gutter: 20px;
	--hsdeck-thumb: 144px;
	--hsdeck-text-weight: 400;
	--hsdeck-content-line-height: 21.125px;
	--hsdeck-codex-markdown-space: 3.5px;
	--hsdeck-font-family: var(--wp--preset--font-family--system, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
	--hsdeck-codex-mono-family: ui-monospace, "SFMono-Regular", "SF Mono", "Menlo", "Consolas", "Liberation Mono", monospace;
	--hsdeck-paragraph-gap: 13px;
	--hsdeck-content-paragraph-gap: 14px;
	--hsdeck-deck-frame-gap: 19px;
	--hsdeck-ui-soft: #f5f5f5;
	--hsdeck-ui-hover: #ededed;
	--hsdeck-ui-muted: #737373;
	--hsdeck-ease: 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
	--hsdeck-ui-text: #1a1c1f;
	--hsdeck-ui-surface: #fff;
	--hsdeck-ui-border: #ededed;
	--hsdeck-ui-icon: #888;
	--hsdeck-ui-radius-control: 8px;
	--hsdeck-navigation-icon-size: 48px;
	--hsdeck-ui-radius-panel: 12px;
	--hsdeck-ui-radius-pill: 999px;
	--hsdeck-ui-sidebar: #fafafa;
	--hsdeck-ui-divider: rgb(26 28 31 / 8%);
	--hsdeck-ui-shadow-dialog: 0 16px 48px rgb(26 28 31 / 10%), 0 2px 8px rgb(26 28 31 / 4%);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

* {
	scrollbar-width: none;
}

*::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}

html,
body,
body * {
	-webkit-tap-highlight-color: transparent;
}

html {
	width: 100%;
	max-width: 100%;
	background: var(--wp--preset--color--surface, #fff);
	color-scheme: light;
	overflow-x: hidden;
	overflow-x: clip;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	--hsdeck-search-top: calc(var(--hsdeck-admin-height) + var(--hsdeck-mobile-header-height));
	width: 100%;
	max-width: 100%;
	margin: 0;
	overflow-x: hidden;
	overflow-x: clip;
	background: var(--wp--preset--color--surface, #fff);
	color: var(--wp--preset--color--ink, #191f28);
	font-family: var(--hsdeck-font-family);
	font-size: 14px;
	font-weight: var(--hsdeck-text-weight);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizelegibility;
}

button,
input,
optgroup,
option,
select,
textarea {
	font-family: var(--hsdeck-font-family);
}

.wp-site-blocks :where(*) {
	font-family: inherit;
}

.wp-site-blocks {
	width: 100%;
	max-width: 100%;
	overflow-x: hidden;
	overflow-x: clip;
}

a {
	transition: color var(--hsdeck-ease), background-color var(--hsdeck-ease), opacity var(--hsdeck-ease), transform var(--hsdeck-ease);
	text-underline-offset: 0.18em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 2px solid var(--hsdeck-ui-muted);
	outline-offset: 3px;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

.wp-site-blocks input[type="search"],
.wp-site-blocks input[type="text"],
.wp-site-blocks input[type="email"],
.wp-site-blocks textarea,
.wp-site-blocks select {
	font: inherit;
}

/**
 * 2.0 Header and Search
 */

.hsdeck-nav-search,
.hsdeck-not-found .wp-block-search {
	--hsdeck-search-height: 40px;
	--hsdeck-search-icon: 18px;
	--hsdeck-search-inset: 14px;
	--hsdeck-search-font: 14px;
	position: relative;
	min-width: 0;
}

.hsdeck-nav-search {
	flex: 1 1 auto;
	width: 100%;
	margin: 0;
}

.hsdeck-nav-search .wp-block-search__inside-wrapper,
.hsdeck-not-found .wp-block-search__inside-wrapper {
	position: relative;
	display: flex;
	width: 100%;
	height: var(--hsdeck-search-height);
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: var(--hsdeck-ui-radius-pill);
	background: var(--hsdeck-ui-soft);
	box-shadow: none;
	align-items: center;
}

.hsdeck-nav-search:not(.hsdeck-landing-search) .wp-block-search__inside-wrapper:hover,
.hsdeck-not-found .wp-block-search__inside-wrapper:hover {
	background: var(--hsdeck-ui-hover);
}

.hsdeck-nav-search .wp-block-search__inside-wrapper::before,
.hsdeck-not-found .wp-block-search__inside-wrapper::before {
	position: absolute;
	z-index: 1;
	top: 50%;
	left: var(--hsdeck-search-inset);
	width: var(--hsdeck-search-icon);
	height: var(--hsdeck-search-icon);
	color: var(--hsdeck-ui-muted);
	pointer-events: none;
	transform: translateY(-50%);
	content: "";
	background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='1.75' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m16 16 4 4'/%3E%3C/svg%3E");
}

.wp-site-blocks :is(.hsdeck-nav-search, .hsdeck-not-found) input[type="search"] {
	display: block;
	width: 100%;
	min-width: 0;
	height: var(--hsdeck-search-height);
	margin: 0;
	padding: 0 var(--hsdeck-search-inset) 0 calc(var(--hsdeck-search-inset) + var(--hsdeck-search-icon) + 10px);
	border: 0;
	border-radius: inherit;
	background: transparent;
	color: var(--wp--preset--color--ink, #191f28);
	font-size: var(--hsdeck-search-font);
	line-height: 1.5;
	outline: 0;
}

.wp-site-blocks :is(.hsdeck-nav-search, .hsdeck-not-found) input[type="search"]::placeholder {
	color: var(--hsdeck-ui-muted);
	opacity: 1;
}

:is(.hsdeck-nav-search, .hsdeck-not-found) input[type="search"]::-webkit-search-cancel-button,
:is(.hsdeck-nav-search, .hsdeck-not-found) input[type="search"]::-webkit-search-decoration {
	display: none;
	-webkit-appearance: none;
	appearance: none;
}

:is(.hsdeck-nav-search, .hsdeck-not-found) input[type="search"]::-ms-clear,
.hsdeck-nav-search .wp-block-search__button {
	display: none;
}

/**
 * 3.0 Content Shell
 */

.hsdeck-main {
	min-height: calc(100vh - 136px);
	padding-block: 0 80px;
	animation: hsdeck-content-in 240ms ease-out both;
}

.hsdeck-main.hsdeck-preview-main {
	min-height: 100vh;
	min-height: 100dvh;
	padding-block: 0;
}

.hsdeck-main.hsdeck-preview-main--titled {
	padding-block-start: 40px;
}

.hsdeck-document-main.hsdeck-main.hsdeck-search-landing {
	display: grid;
	width: 100%;
	min-height: calc(100vh - var(--hsdeck-search-top));
	min-height: calc(100dvh - var(--hsdeck-search-top));
	margin: 0 !important;
	padding: 20px;
	place-items: center;
}

.hsdeck-search-landing__inner {
	width: min(100%, 560px);
	margin: 0;
}

.wp-site-blocks .hsdeck-search-landing__title {
	margin: 0 0 20px;
	color: var(--wp--preset--color--ink, #191f28);
	font-size: 21px;
	font-weight: 600;
	line-height: 28px;
	text-align: center;
}

.hsdeck-landing-search {
	--hsdeck-search-height: 48px;
	--hsdeck-search-icon: 20px;
	--hsdeck-search-inset: 16px;
	--hsdeck-search-font: 14px;
}

.hsdeck-landing-search .wp-block-search__inside-wrapper {
	border: 1px solid var(--hsdeck-ui-border);
	border-radius: var(--hsdeck-ui-radius-pill);
	background: var(--hsdeck-ui-surface);
}

.hsdeck-landing-search .wp-block-search__inside-wrapper:focus-within {
	border-color: var(--hsdeck-ui-icon);
}

.wp-site-blocks .hsdeck-landing-search input[type="search"] {
	height: 100%;
}

.hsdeck-preview-title {
	margin: 0 0 var(--hsdeck-paragraph-gap);
}

.wp-site-blocks :is(h1, h2, h3, h4, h5, h6),
.editor-styles-wrapper :is(h1, h2, h3, h4, h5, h6) {
	color: var(--hsdeck-ui-text);
	font-weight: 600;
	letter-spacing: normal;
	overflow-wrap: anywhere;
}

.wp-site-blocks h1,
.wp-block-post-content.hsdeck-entry-content h1,
.editor-styles-wrapper .is-root-container h1 {
	margin: 0 0 calc(var(--hsdeck-codex-markdown-space) * 2);
	font-size: 21px;
	line-height: calc(var(--hsdeck-codex-markdown-space) * 8);
}

.wp-site-blocks h2,
.wp-block-post-content.hsdeck-entry-content h2,
.editor-styles-wrapper .is-root-container h2 {
	margin: calc(var(--hsdeck-codex-markdown-space) * 4) 0 var(--hsdeck-codex-markdown-space);
	font-size: 17.5px;
	line-height: calc(var(--hsdeck-codex-markdown-space) * 7);
}

.wp-site-blocks h3,
.wp-block-post-content.hsdeck-entry-content h3,
.editor-styles-wrapper .is-root-container h3 {
	margin: calc(var(--hsdeck-codex-markdown-space) * 4) 0 var(--hsdeck-codex-markdown-space);
	font-size: 15.75px;
	line-height: calc(var(--hsdeck-codex-markdown-space) * 7);
}

.wp-site-blocks h4,
.wp-block-post-content.hsdeck-entry-content h4,
.editor-styles-wrapper .is-root-container h4 {
	margin: calc(var(--hsdeck-codex-markdown-space) * 4) 0 0;
	font-size: 14px;
	line-height: calc(var(--hsdeck-codex-markdown-space) * 6);
}

.wp-site-blocks :is(h5, h6),
.wp-block-post-content.hsdeck-entry-content :is(h5, h6),
.editor-styles-wrapper .is-root-container :is(h5, h6) {
	margin: 0;
	font-size: 14px;
	line-height: var(--hsdeck-content-line-height);
}

.hsdeck-context-title {
	width: min(100%, var(--wp--style--global--content-size));
	max-width: var(--wp--style--global--content-size);
}

.hsdeck-entry-title {
	max-width: 100%;
	overflow-wrap: anywhere;
}

/**
 * 4.0 Post Lists
 */

.hsdeck-post-query {
	margin: 0 !important;
}

.hsdeck-post-list {
	display: grid;
	gap: 0;
	margin: 0;
	padding: 0;
	overflow: visible;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	list-style: none;
}

.hsdeck-post-list > li {
	margin: 0;
}

.hsdeck-post-card {
	transition: background-color var(--hsdeck-ease);
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	width: 100%;
	min-height: 68px;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
}

.hsdeck-post-query .hsdeck-post-card {
	border-radius: 0;
}

.hsdeck-post-card:hover {
	background: #fafafa;
}

.hsdeck-post-card.has-featured-image {
	grid-template-columns: var(--hsdeck-thumb) minmax(0, 1fr);
}

.hsdeck-post-card__media {
	grid-column: 1;
	grid-row: 1;
	align-self: stretch;
	width: auto;
	margin: 10px 0 10px 10px;
	overflow: hidden;
	border-radius: 10px;
}

.hsdeck-post-card__media a,
.hsdeck-post-card__media img {
	display: block;
	width: 100%;
	height: 100%;
}

.hsdeck-post-card__media img {
	object-fit: cover;
}

.hsdeck-post-card__content {
	grid-column: 1;
	grid-row: 1;
	display: flex;
	min-width: 0;
	height: 100%;
	padding: 9px 16px;
	flex-direction: column;
	gap: 4px;
	justify-content: center;
}

.hsdeck-post-card.has-featured-image .hsdeck-post-card__content {
	grid-column: 2;
}

.hsdeck-post-card.has-no-featured-image:not(.has-hsdeck-preview-icon) .hsdeck-post-card__content {
	padding-left: 16px;
}

.hsdeck-post-card__title {
	overflow: visible;
	overflow-wrap: anywhere;
	text-overflow: clip;
	white-space: normal;
}

.hsdeck-post-card.has-hsdeck-preview-icon .hsdeck-post-card__content {
	display: grid;
	grid-template-columns: 36px minmax(0, 1fr);
	grid-template-rows: auto auto;
	column-gap: 12px;
	row-gap: 4px;
	padding: 9px 16px;
	align-content: center;
}

.hsdeck-post-card__preview-icon {
	display: block;
	grid-column: 1;
	grid-row: 1 / 3;
	align-self: center;
	justify-self: start;
	width: 36px;
	height: 36px;
	margin: 0 !important;
	padding: 0;
}

.hsdeck-post-card__class-icon {
	border-radius: 50%;
	pointer-events: none;
}

.hsdeck-post-card__preview-icon img {
	display: block;
	width: 100%;
	height: 100%;
}

.hsdeck-post-card__class-icon img {
	border-radius: inherit;
	object-fit: cover;
}

.hsdeck-post-card__expansion-icon {
	position: relative;
	overflow: hidden;
	border-radius: 50%;
	background-color: var(--wp--preset--color--ink, #191f28);
	pointer-events: none;
}

.hsdeck-post-card__expansion-icon::before {
	position: absolute;
	inset: 15%;
	background-color: var(--wp--preset--color--surface, #fff);
	-webkit-mask-image: var(--hsdeck-expansion-preview-icon);
	mask-image: var(--hsdeck-expansion-preview-icon);
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-size: contain;
	mask-size: contain;
	content: "";
}

.hsdeck-post-card.has-hsdeck-preview-icon .hsdeck-post-card__meta {
	grid-column: 2;
	grid-row: 2;
	align-self: start;
}

/* Shared text and patch link pills. */
.hsdeck-search-dialog__quick a,
.hsdeck-expansion-patch {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	max-width: min(320px, 100%);
	min-height: 32px;
	padding: 6px 10px;
	border: 1px solid var(--hsdeck-ui-border);
	border-radius: var(--hsdeck-ui-radius-pill);
	background: var(--hsdeck-ui-surface);
	color: var(--hsdeck-ui-text);
	font-size: 13px;
	font-weight: 400;
	line-height: 18px;
	text-align: center;
	text-decoration: none;
}

.hsdeck-search-dialog__quick a:focus-visible,
.hsdeck-expansion-patch:focus-visible {
	outline: 2px solid var(--hsdeck-ui-muted);
	outline-offset: 2px;
}

.hsdeck-post-card__title a {
	color: var(--hsdeck-ui-text);
	text-decoration: none;
}

.hsdeck-post-card__title a::after {
	position: absolute;
	inset: 0;
	content: "";
}

.hsdeck-post-card__title a:focus-visible {
	outline: 0;
	text-decoration: underline;
	text-decoration-color: currentcolor;
}

.hsdeck-post-card__meta {
	position: relative;
	display: flex;
	min-width: 0;
	margin: 0;
	gap: 6px;
	align-items: center;
	flex-wrap: nowrap;
	overflow: hidden;
	color: var(--wp--preset--color--muted);
	font-size: 14px;
	line-height: 1.5;
	white-space: nowrap;
}

.hsdeck-post-card__tags {
	min-width: 0;
	margin: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	color: var(--wp--preset--color--muted, #8b95a1);
	font-weight: var(--hsdeck-text-weight);
}

.hsdeck-post-information {
	display: inline-flex;
	min-width: 0;
	align-items: center;
}

.hsdeck-post-information__item {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

.hsdeck-post-card__tags .wp-block-post-terms__separator {
	display: inline-block;
	width: 12px;
	font-size: 0;
}

.hsdeck-post-card__meta > :not(:last-child),
.hsdeck-entry-meta__item:not(:last-child) {
	padding-right: 7px;
}

.hsdeck-home-recent,
.hsdeck-search-results {
	width: 100%;
	margin: 0 !important;
}

.hsdeck-shared-timeline {
	min-width: 0;
	overflow: hidden;
	padding: 4px 16px;
	border: 1px solid var(--hsdeck-ui-border);
	border-radius: var(--hsdeck-ui-radius-panel);
	background: var(--hsdeck-ui-surface);
	box-shadow: none;
}

.hsdeck-post-list.hsdeck-home-timeline {
	position: relative;
	width: 100%;
	gap: 0;
}

.hsdeck-post-list.hsdeck-home-timeline > li {
	position: relative;
}

.hsdeck-post-list.hsdeck-home-timeline > li + li {
	border-top: 1px solid var(--hsdeck-ui-divider);
}

.hsdeck-document-result {
	position: relative;
	display: flex;
	flex-wrap: nowrap;
	align-items: baseline;
	gap: 10px;
	min-height: 56px;
	padding: 16px 0;
}

.hsdeck-document-result .hsdeck-post-card__title {
	display: block;
	flex: 1;
	-webkit-line-clamp: unset;
	overflow: visible;
	min-width: 0;
	margin: 0;
	overflow-wrap: anywhere;
	color: var(--hsdeck-ui-text);
	font-size: 14px;
	font-weight: 500;
	line-height: 22.75px;
}

.hsdeck-document-result__expansion {
	flex: none;
	max-width: 42%;
	padding: 2px 6px;
	border-radius: 3px;
	background: var(--hsdeck-ui-soft);
	color: var(--hsdeck-ui-muted);
	font-size: 12px;
	line-height: 18px;
	overflow-wrap: anywhere;
}

.hsdeck-document-result::after {
	width: 6px;
	height: 6px;
	margin-inline: 4px 3px;
	flex: 0 0 6px;
	align-self: center;
	border-block-start: 1.5px solid var(--hsdeck-ui-muted);
	border-inline-end: 1.5px solid var(--hsdeck-ui-muted);
	content: "";
	transform: rotate(45deg);
}

.hsdeck-document-section-header {
	display: flex;
	margin: 28px 0 0;
	padding: 0 0 10px;
	align-items: baseline;
	justify-content: space-between;
	gap: 20px;
}

.hsdeck-expansion-header > .hsdeck-context-title {
	width: auto;
	max-width: 100%;
}

.wp-site-blocks .hsdeck-document-section-title {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 24px;
}

.hsdeck-document-section-count {
	color: var(--wp--preset--color--muted, #8b95a1);
	font-size: 12px;
	line-height: 18px;
}

/**
 * 6.0 Entries
 */

.hsdeck-entry {
	width: 100%;
	margin: 0;
	padding: 0;
}

.hsdeck-entry-header {
	position: relative;
	display: block;
	margin: 0;
	padding: 0;
}

.hsdeck-entry > .hsdeck-entry-content {
	margin-block-start: var(--hsdeck-paragraph-gap);
}

.hsdeck-entry > .wp-block-post-content.hsdeck-entry-content {
	margin-block-start: 0;
}

.hsdeck-entry-header.wp-block-group > *,
.hsdeck-entry-header__title-row.wp-block-group > * {
	margin-block: 0;
}

.hsdeck-entry-header__title-row {
	width: 100%;
	margin: 0;
	padding: 0;
}

.hsdeck-entry-header .hsdeck-entry-title {
	margin: 0 0 var(--hsdeck-content-paragraph-gap);
}

.editor-styles-wrapper {
	background: var(--wp--preset--color--surface);
	font-family: var(--hsdeck-font-family, "HSdeck Pretendard", sans-serif);
}

.editor-styles-wrapper :where(*) {
	font-family: inherit;
}

.editor-styles-wrapper .editor-post-title__input {
	margin: 0 0 var(--hsdeck-content-paragraph-gap);
	font-family: inherit;
	font-size: 21px;
	font-weight: 600;
	letter-spacing: normal;
	line-height: calc(var(--hsdeck-codex-markdown-space) * 8);
}

.editor-styles-wrapper :where(.editor-visual-editor__post-title-wrapper, .edit-post-visual-editor__post-title-wrapper),
.editor-styles-wrapper .block-editor-block-list__layout.is-root-container > :where(.wp-block:not(.alignleft):not(.alignright):not(.alignwide):not(.alignfull):not(.wp-block-image), .block-list-appender) {
	width: min(100%, var(--wp--style--global--content-size, 680px));
	max-width: var(--wp--style--global--content-size, 680px);
	margin-inline: auto !important;
}

.editor-styles-wrapper :where(.editor-visual-editor__post-title-wrapper, .edit-post-visual-editor__post-title-wrapper) {
	margin-block-end: 0;
}

.hsdeck-entry-meta {
	display: flex;
	width: 100%;
	margin: 0;
	color: var(--wp--preset--color--muted, #8b95a1);
	font-size: 14px;
	font-weight: var(--hsdeck-text-weight);
	line-height: 20px;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px;
}

.hsdeck-entry-meta__item {
	display: block;
	min-width: 0;
	color: inherit;
	font: inherit;
}

.hsdeck-entry-meta__date {
	white-space: nowrap;
}

.wp-site-blocks .hsdeck-document-pagination.hsdeck-entry-content {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	align-items: center;
}

.wp-site-blocks .hsdeck-document-pagination.hsdeck-entry-content > .hsdeck-document-pagination__card {
	display: inline-flex;
	width: fit-content;
	max-width: 100%;
	min-width: 0;
	min-height: 40px;
	margin: 0;
	padding: 8px 10px;
	gap: 8px;
	border: 0;
	border-radius: var(--hsdeck-ui-radius-pill);
	background: transparent;
	box-shadow: none;
	color: var(--hsdeck-ui-text);
	font-size: 13px;
	font-weight: 500;
	line-height: 20px;
	text-decoration: none;
	align-items: center;
}

.hsdeck-document-pagination__card::after {
	content: "";
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
	background: currentcolor;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16m-6-6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.wp-site-blocks .hsdeck-document-pagination > a.hsdeck-document-pagination__card:focus-visible {
	outline: 2px solid var(--hsdeck-ui-muted);
	outline-offset: 2px;
}

.hsdeck-document-pagination__card--previous {
	grid-column: 1;
	grid-row: 1;
	justify-self: start;
}

.hsdeck-document-pagination__card--previous::after {
	order: -1;
	transform: rotate(180deg);
}

.hsdeck-document-pagination__card--next {
	grid-column: 2;
	grid-row: 1;
	justify-self: end;
}

.hsdeck-document-pagination__label {
	display: block;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wp-site-blocks .hsdeck-document-pagination.hsdeck-entry-content > .hsdeck-document-pagination__card--disabled {
	color: var(--hsdeck-ui-muted);
	cursor: default;
}

/* Codex Markdown: shared metrics and native margin collapse, including block transitions. */

:is(.wp-block-post-content.hsdeck-entry-content, .editor-styles-wrapper .is-root-container) {
	--hsdeck-content-line-height: 22.75px;
	--hsdeck-markdown-small: 12.25px;
	--hsdeck-markdown-border: rgb(26 28 31 / 12%);
	--hsdeck-markdown-border-light: rgb(26 28 31 / 5%);
	--wp--style--block-gap: 0;
	display: block;
	color: var(--hsdeck-ui-text);
	font-family: var(--hsdeck-font-family);
	font-size: 14px;
	font-weight: 400;
	line-height: var(--hsdeck-content-line-height);
	overflow-wrap: anywhere;
}

:is(.wp-block-post-content.hsdeck-entry-content, .editor-styles-wrapper .is-root-container) :where(p, .wp-block-image, .wp-block-video):not(:where(.hscard-deck-list *, .hscard-deck-layout *)) {
	margin: 0 0 3.5px;
	font: inherit;
}

:is(.wp-block-post-content.hsdeck-entry-content, .editor-styles-wrapper .is-root-container) :where(.wp-block-image, .wp-block-video):not(:where(.aligncenter, .alignright, .has-text-align-left, .has-text-align-center, .has-text-align-right)) {
	text-align: left;
}

/* Image alignment stays within the text column, with the next block below it. */
:is(.wp-block-post-content.hsdeck-entry-content, .editor-styles-wrapper .is-root-container) .wp-block-image:not(:where(.alignwide, .alignfull, .wp-block-gallery *, .is-layout-flex > *)) {
	display: block;
	float: none;
	width: fit-content;
	max-width: 100%;

	/* Override WordPress constrained-layout auto margins for authored alignment. */
	margin-inline: var(--hsdeck-image-edge, 0px) auto !important;
}

.editor-styles-wrapper .block-editor-block-list__layout.is-root-container > .wp-block-image:not(:where(.alignwide, .alignfull)) {
	--hsdeck-image-edge: max(0px, calc((100% - var(--wp--style--global--content-size, 680px)) / 2));
	max-width: min(100%, var(--wp--style--global--content-size, 680px));
}

:is(.wp-block-post-content.hsdeck-entry-content, .editor-styles-wrapper .is-root-container) .wp-block-image.aligncenter:not(:where(.wp-block-gallery *, .is-layout-flex > *)) {
	margin-inline: auto !important;
}

:is(.wp-block-post-content.hsdeck-entry-content, .editor-styles-wrapper .is-root-container) .wp-block-image.alignright:not(:where(.wp-block-gallery *, .is-layout-flex > *)) {
	margin-inline: auto var(--hsdeck-image-edge, 0px) !important;
}

:is(.wp-block-post-content.hsdeck-entry-content, .editor-styles-wrapper .is-root-container) .wp-block-image:not(:where(.wp-block-gallery *, .is-layout-flex > *)) > figcaption {
	display: block;
	contain: inline-size;
}

/* Gutenberg gives resized image wrappers an inline pixel maximum. */
.editor-styles-wrapper .is-root-container .wp-block-image:not(:where(.wp-block-gallery *, .is-layout-flex > *)) > div:has(> img, > a > img) {
	max-width: 100% !important;
}

/* Keep the saved crop ratio while shrinking the editor's pixel-sized box. */
.editor-styles-wrapper .is-root-container .wp-block-image:not(:where(.wp-block-gallery *, .is-layout-flex > *)) > div:has(> img, > a > img),
.editor-styles-wrapper .is-root-container .wp-block-image:not(:where(.wp-block-gallery *, .is-layout-flex > *)) > div > :is(img, a > img) {
	height: auto !important;
	aspect-ratio: var(--hsdeck-image-aspect-ratio, auto);
}

:is(.wp-block-post-content.hsdeck-entry-content, .editor-styles-wrapper .is-root-container) > :is(p, .wp-block-image, .wp-block-video):where(:not(:first-child)) {
	margin-top: 7px;
}

:is(.wp-block-post-content.hsdeck-entry-content, .editor-styles-wrapper .is-root-container) > :is(p, .wp-block-image, .wp-block-video) + :is(p, .wp-block-image, .wp-block-video) {
	margin-block: var(--hsdeck-content-paragraph-gap);
}

:is(.wp-block-post-content.hsdeck-entry-content, .editor-styles-wrapper .is-root-container) > hr + * {
	margin-top: 0;
}

:is(.wp-block-post-content.hsdeck-entry-content, .editor-styles-wrapper .is-root-container) :is(h1, h2, h3, h4, h5, h6):not(:where(.hscard-deck-list *, .hscard-deck-layout *)) {
	margin-block: var(--hsdeck-content-paragraph-gap);
	color: inherit;
	font-family: inherit;
	font-weight: 600;
	letter-spacing: normal;
}


:is(.wp-block-post-content.hsdeck-entry-content, .editor-styles-wrapper .is-root-container) > :is(h1, h2, h3, h4, h5, h6):first-child {
	margin-top: 0;
}

:is(.wp-block-post-content.hsdeck-entry-content, .editor-styles-wrapper .is-root-container) :where(ul, ol):not(.hscard-deck-cards):not(:where(.hscard-deck-list *, .hscard-deck-layout *)) {
	margin: 0;
	padding-inline-start: 22.75px;
	list-style-position: outside;
	line-height: 22.75px;
}

:is(.wp-block-post-content.hsdeck-entry-content, .editor-styles-wrapper .is-root-container) :where(ul):not(:where(.hscard-deck-list *)) {
	list-style-type: disc;
}

:is(.wp-block-post-content.hsdeck-entry-content, .editor-styles-wrapper .is-root-container) :where(ol):not(:where(.hscard-deck-list *)) {
	list-style-type: decimal;
}

:is(.wp-block-post-content.hsdeck-entry-content, .editor-styles-wrapper .is-root-container) :where(:is(ul, ol) ul):not(:where(.hscard-deck-list *, .hscard-deck-layout *)) {
	list-style-type: circle;
}

:is(.wp-block-post-content.hsdeck-entry-content, .editor-styles-wrapper .is-root-container) :where(:is(ul, ol) :is(ul, ol) ul):not(:where(.hscard-deck-list *, .hscard-deck-layout *)) {
	list-style-type: square;
}

:is(.wp-block-post-content.hsdeck-entry-content, .editor-styles-wrapper .is-root-container) :where(li):not(:where(.hscard-deck-list *, .hscard-deck-layout *)) {
	display: list-item;
	margin-block: 0;
	padding-inline-start: 5.25px;
}

:is(.wp-block-post-content.hsdeck-entry-content, .editor-styles-wrapper .is-root-container) :where(li):not(:where(.hscard-deck-list *, .hscard-deck-layout *))::marker {
	color: currentcolor;
	font-weight: 600;
}

:is(.wp-block-post-content.hsdeck-entry-content, .editor-styles-wrapper .is-root-container) :where(li):not(:where(.hscard-deck-list *, .hscard-deck-layout *)) > :first-child {
	margin-block: 0;
}

:is(.wp-block-post-content.hsdeck-entry-content, .editor-styles-wrapper .is-root-container) :where(li):not(:where(.hscard-deck-list *, .hscard-deck-layout *)) > :last-child {
	margin-bottom: 0;
}

:is(.wp-block-post-content.hsdeck-entry-content, .editor-styles-wrapper .is-root-container) :where(li):not(:where(.hscard-deck-list *, .hscard-deck-layout *)) > p {
	margin: 0;
}

:is(.wp-block-post-content.hsdeck-entry-content, .editor-styles-wrapper .is-root-container) :where(li):not(:where(.hscard-deck-list *, .hscard-deck-layout *)) > :is(p, .wp-block-image, .wp-block-video) + :is(p, .wp-block-image, .wp-block-video) {
	margin-top: 14px;
}

:is(.wp-block-post-content.hsdeck-entry-content, .editor-styles-wrapper .is-root-container) :where(blockquote):not(:where(.hscard-deck-list *, .hscard-deck-layout *)) {
	position: relative;
	margin: 0 0 7px;
	padding: 7px 0;
	padding-inline-start: 21px;
	border: 0;
	background: transparent;
	color: inherit;
	font-style: normal;
	line-height: 21px;
}

:is(.wp-block-post-content.hsdeck-entry-content, .editor-styles-wrapper .is-root-container) :where(blockquote):not(:where(.hscard-deck-list *, .hscard-deck-layout *))::after {
	position: absolute;
	inset-inline-start: 0;
	top: 7px;
	bottom: 7px;
	width: 3.5px;
	border-radius: 1.75px;
	background: var(--hsdeck-markdown-border);
	content: "";
}

:is(.wp-block-post-content.hsdeck-entry-content, .editor-styles-wrapper .is-root-container) :where(blockquote):not(:where(.hscard-deck-list *, .hscard-deck-layout *)) > :first-child {
	margin-top: 0;
}

:is(.wp-block-post-content.hsdeck-entry-content, .editor-styles-wrapper .is-root-container) :where(blockquote):not(:where(.hscard-deck-list *, .hscard-deck-layout *)) > :last-child {
	margin-bottom: 0;
}

:is(.wp-block-post-content.hsdeck-entry-content, .editor-styles-wrapper .is-root-container) :where(blockquote):not(:where(.hscard-deck-list *, .hscard-deck-layout *)) > :where(p, .wp-block-image, .wp-block-video, cite, .wp-block-quote__citation) {
	margin: 0;
	font-weight: 400;
	line-height: 22.75px;
}

:is(.wp-block-post-content.hsdeck-entry-content, .editor-styles-wrapper .is-root-container) :where(blockquote):not(:where(.hscard-deck-list *, .hscard-deck-layout *)) > p::before,
:is(.wp-block-post-content.hsdeck-entry-content, .editor-styles-wrapper .is-root-container) :where(blockquote):not(:where(.hscard-deck-list *, .hscard-deck-layout *)) > p::after {
	content: none;
}

:is(.wp-block-post-content.hsdeck-entry-content, .editor-styles-wrapper .is-root-container) :where(blockquote):not(:where(.hscard-deck-list *, .hscard-deck-layout *)) > :where(cite, .wp-block-quote__citation) {
	display: block;
	color: var(--hsdeck-ui-muted);
	font-size: inherit;
	font-style: normal;
}

:is(.wp-block-post-content.hsdeck-entry-content, .editor-styles-wrapper .is-root-container) :where(code:not(pre code)):not(:where(.hscard-deck-list *, .hscard-deck-layout *)) {
	padding: 1px 6px;
	border-radius: 6px;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
	background: color-mix(in srgb, rgb(26 28 31 / 5%) 60%, #1a1c1f 6%);
	font-family: var(--hsdeck-codex-mono-family);
	font-size: 0.92em;
	font-weight: 400;
	overflow-wrap: anywhere;
	word-break: break-word;
}

:is(.wp-block-post-content.hsdeck-entry-content, .editor-styles-wrapper .is-root-container) :where(pre, .wp-block-code):not(:where(.hscard-deck-list *, .hscard-deck-layout *)) {
	margin-block: 17.5px;
	padding: 14px;
	overflow-x: auto;
	border: 0;
	border-radius: 20px;
	background: rgb(26 28 31 / 5%);
	font-family: var(--hsdeck-codex-mono-family);
	font-size: var(--hsdeck-markdown-small);
	line-height: 17.5px;
	white-space: pre;
}

:is(.wp-block-post-content.hsdeck-entry-content, .editor-styles-wrapper .is-root-container) :where(pre):not(:where(.hscard-deck-list *, .hscard-deck-layout *)) code {
	padding: 0;
	border-radius: 0;
	background: transparent;
	font: inherit;
	white-space: inherit;
}

:is(.wp-block-post-content.hsdeck-entry-content, .editor-styles-wrapper .is-root-container) :where(.wp-block-table) {
	width: var(--hsdeck-table-width, 100%);
	max-width: 100%;
	margin: 0;
	overflow-x: auto;
}

:is(.wp-block-post-content.hsdeck-entry-content, .editor-styles-wrapper .is-root-container) :where(.wp-block-table table) {
	line-height: var(--hsdeck-content-line-height);
	width: 100%;
	margin: 0;
	border-collapse: separate;
	border-spacing: 0;
	table-layout: auto;
	background: transparent;
	font-size: var(--hsdeck-markdown-small);
	text-align: start;
}

:is(.wp-block-post-content.hsdeck-entry-content, .editor-styles-wrapper .is-root-container) :where(.wp-block-table th, .wp-block-table td) {
	padding: 8.75px 21px 8.75px 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	line-height: var(--hsdeck-content-line-height);
	vertical-align: top;
	white-space: normal;
	overflow-wrap: break-word;
}

:is(.wp-block-post-content.hsdeck-entry-content, .editor-styles-wrapper .is-root-container) :where(.wp-block-table th):not(:where(.has-text-align-left, .has-text-align-center, .has-text-align-right)) {
	text-align: inherit;
}

:is(.wp-block-post-content.hsdeck-entry-content, .editor-styles-wrapper .is-root-container) :where(.wp-block-table th) {
	padding-block: 7px;
	border-bottom: 1px solid var(--hsdeck-markdown-border);
	font-weight: 600;
	line-height: 14px;
}

:is(.wp-block-post-content.hsdeck-entry-content, .editor-styles-wrapper .is-root-container) :where(.wp-block-table th:last-child) {
	padding-inline-end: 35px;
}

:is(.wp-block-post-content.hsdeck-entry-content, .editor-styles-wrapper .is-root-container) :where(.wp-block-table tbody tr:not(:last-child) td) {
	border-bottom: 1px solid var(--hsdeck-markdown-border-light);
}

:is(.wp-block-post-content.hsdeck-entry-content, .editor-styles-wrapper .is-root-container) :where(.wp-block-table td:last-child) {
	padding-inline-end: 0;
}

:is(.wp-block-post-content.hsdeck-entry-content, .editor-styles-wrapper .is-root-container) :where(.wp-block-table tbody tr:last-child td) {
	padding-bottom: 21px;
}

:is(.wp-block-post-content.hsdeck-entry-content, .editor-styles-wrapper .is-root-container) :where(hr) {
	clear: both;
	height: 0;
	margin: 24.5px 0;
	padding: 0;
	border: 0;
	border-top: 1px solid var(--hsdeck-markdown-border);
}

:is(.wp-block-post-content.hsdeck-entry-content, .editor-styles-wrapper .is-root-container) :where(a[href]):not(:where(.hscard-deck-list a, .hscard-deck-layout a, .wp-element-button, .wp-block-button__link, .wp-block-file__button)):not(:has(img, video, audio)) {
	display: inline;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--wp--preset--color--accent, #3182f6);
	font-size: inherit;
	font-weight: inherit;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

:is(.wp-block-post-content.hsdeck-entry-content, .editor-styles-wrapper .is-root-container) :where(a[href]):not(:where(.hscard-deck-list a, .hscard-deck-layout a, .wp-element-button)):focus-visible {
	outline-color: var(--wp--preset--color--accent, #3182f6);
}

/* Deck cards retain their compact font and authored alignment. */

:is(.wp-block-post-content.hsdeck-entry-content, .editor-styles-wrapper .is-root-container) .hscard-deck-list {
	--hsdeck-font-family: "HSdeck Pretendard", sans-serif;
	--hsdeck-content-line-height: 21.125px;
	--wp--style--block-gap: 13px;
	margin-block: var(--hsdeck-deck-frame-gap) !important;
	color: var(--wp--preset--color--ink);
	font-family: var(--hsdeck-font-family);
	font-size: 14px;
	font-weight: 400;
	line-height: 21.125px;
	overflow-wrap: break-word;
	text-align: start;
}

.editor-styles-wrapper .block-editor-block-list__layout.is-root-container > .wp-block.alignwide {
	width: min(100%, var(--wp--style--global--wide-size, 720px));
	max-width: var(--wp--style--global--wide-size, 720px);
	margin-inline: auto !important;
}

.hsdeck-entry-content :where(iframe, video) {
	max-width: 100%;
}

/**
 * 7.0 Empty States
 */

.hsdeck-not-found {
	max-width: 560px !important;
	padding: 72px 0;
	text-align: center;
}

.hsdeck-not-found > p {
	margin: 0;
	color: var(--wp--preset--color--muted);
}

.hsdeck-not-found .wp-block-search {
	--hsdeck-search-height: 48px;
	--hsdeck-search-font: 16px;
	max-width: 480px;
	margin: 28px auto 0;
}

.hsdeck-not-found .wp-block-search__button {
	min-width: 64px;
	min-height: 40px;
	margin: 4px;
	padding: 8px 16px;
	border: 0;
	border-radius: var(--hsdeck-ui-radius-pill);
	background: #262626;
	color: #fff;
}

.hsdeck-post-query .wp-block-query-no-results {
	margin: 0;
	padding: 0;
	border-radius: 0;
	background: transparent;
}

.hsdeck-search-empty {
	width: 100%;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	text-align: left;
}

@keyframes hsdeck-content-in {

	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

/**
 * 7.5 Application navigation shell
 * 9.0 Search dialog and expansion controls
 *
 * Article typography and content spacing intentionally remain in 6.0 Entries.
 */

.hsdeck-document-mobile-header {
	display: none;
}

.wp-site-blocks .hsdeck-document-shell {
	position: relative;
	display: grid;
	grid-template-columns: var(--hsdeck-sidebar-width, 245px) minmax(0, 1fr);
	min-height: calc(100vh - var(--hsdeck-admin-height));
	min-height: calc(100dvh - var(--hsdeck-admin-height));
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0;
	column-gap: 0;
	align-items: start;
	justify-content: stretch;
}

.hsdeck-document-main.hsdeck-main {
	grid-column: 2;
	grid-row: 1;
	width: min(760px, 100%);
	min-width: 0;
	min-height: calc(100vh - var(--hsdeck-admin-height));
	min-height: calc(100dvh - var(--hsdeck-admin-height));
	margin: 0 !important;
	padding: 46px 0 100px;
	justify-self: center;
}

.hsdeck-app-main--article.hsdeck-main,
.hsdeck-document-main.hsdeck-main:where(:has(> .hsdeck-expansion-header)) {
	width: min(var(--wp--style--global--content-size), 100%);
}

.hsdeck-document-sidebar {
	position: sticky;
	z-index: 30;
	top: 0;
	grid-column: 1;
	grid-row: 1;
	height: 100vh;
	height: 100dvh;
	overflow-y: auto;
	overscroll-behavior: contain;
	margin: 0;
	padding: 0 0 60px;
	background: var(--hsdeck-ui-sidebar);
}

.hsdeck-document-sidebar__brand-row {
	position: sticky;
	display: flex;
	padding: 20px 24px 12px;
	border-bottom: 0;
	align-items: center;
	justify-content: space-between;
	top: 0;
	z-index: 1;
	background: var(--hsdeck-ui-sidebar);
}

.hsdeck-document-brand {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	color: var(--hsdeck-ui-text);
	font-size: 13px;
	font-weight: 600;
	line-height: 20px;
	text-decoration: none;
}

.hsdeck-document-brand__image {
	width: 26px;
	height: 26px;
	object-fit: contain;
}

.hsdeck-document-sidebar__close {
	position: absolute;
	top: 8px;
	right: 12px;
	display: none;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: var(--hsdeck-ui-radius-control);
	background: transparent;
	color: var(--hsdeck-ui-muted);
	place-items: center;
	cursor: pointer;
}

.hsdeck-document-sidebar__close svg,
.hsdeck-document-menu-button svg {
	display: block;
	width: 20px;
	height: 20px;
}

.hsdeck-document-tree {
	display: grid;
	margin-top: 8px;
	padding: 0 16px 24px;
	gap: 0;
}

.hsdeck-document-tree__group + .hsdeck-document-tree__group {
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid var(--hsdeck-ui-divider);
}

.hsdeck-document-tree__group-heading {
	display: flex;
	min-height: 24px;
	margin: 0;
	padding: 2px 8px;
	color: var(--hsdeck-ui-muted);
	font-size: 12px;
	font-weight: 500;
	line-height: 20px;
	align-items: center;
}

.hsdeck-document-tree__group-label {
	display: flex;
	min-width: 0;
	align-items: center;
	gap: 5px;
}

.hsdeck-document-tree__expansions {
	display: grid;
	margin: 0;
	padding: 0;
	border: 0;
	gap: 0;
}

.hsdeck-document-tree__expansion {
	display: block;
	min-width: 0;
	min-height: 30px;
	padding: 5px 8px;
	border-radius: var(--hsdeck-ui-radius-control);
	color: var(--hsdeck-ui-text);
	font-size: 14px;
	line-height: 20px;
	text-decoration: none;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hsdeck-document-tree__expansion[aria-current="page"] {
	background: var(--hsdeck-ui-hover);
	color: var(--hsdeck-ui-text);
	font-weight: 600;
}

.hsdeck-document-sidebar__close:hover,
.hsdeck-document-menu-button:hover {
	background: var(--hsdeck-ui-hover);
}

.hsdeck-document-overlay {
	display: none;
}

.hsdeck-document-breadcrumb {
	margin: 0 0 18px;
	color: var(--hsdeck-ui-muted);
	font-size: 13px;
	line-height: 20px;
}

.hsdeck-document-breadcrumb ol {
	display: flex;
	margin: 0;
	padding: 0;
	align-items: center;
	flex-wrap: wrap;
	gap: 0;
	list-style: none;
}

.hsdeck-document-breadcrumb li {
	display: inline-flex;
	min-width: 0;
	margin: 0;
	align-items: center;
}

.hsdeck-document-breadcrumb li:not(:last-child)::after {
	margin: 0 7px;
	color: #c2c2c2;
	content: "/";
}

.hsdeck-document-breadcrumb a {
	color: inherit;
	text-decoration: none;
}

.hsdeck-document-breadcrumb a:hover,
.hsdeck-document-breadcrumb a:focus-visible {
	color: #222;
}

.hsdeck-document-breadcrumb span {
	display: block;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wp-site-blocks .hsdeck-document-main .hsdeck-page-title {
	margin: 0;
}

@media (max-width: 1200px) {

	.wp-site-blocks .hsdeck-document-shell {
		--hsdeck-sidebar-width: 220px;
		padding: 0;
		column-gap: 0;
	}

}

@media (max-width: 820px) {

	html {
		scroll-padding-top: 20px;
	}

	body.has-hsdeck-document-nav-open {
		overflow: hidden;
	}

	.hsdeck-document-mobile-header {
		position: relative;
		display: flex;
		height: 40px;
		margin: 0;
		padding: 0 10px;
		align-items: center;
	}

	.hsdeck-document-menu-button {
		display: grid;
		width: 44px;
		height: 40px;
		padding: 0;
		border: 0;
		border-radius: var(--hsdeck-ui-radius-control);
		background: transparent;
		color: var(--wp--preset--color--ink, #191f28);
		place-items: center;
	}

	.wp-site-blocks .hsdeck-document-shell {
		display: block;
		min-height: 0;
		padding: 0;
	}

	.hsdeck-document-main.hsdeck-main {
		width: min(var(--wp--style--global--content-size), calc(100% - (var(--hsdeck-gutter) * 2)));
		min-height: calc(100vh - var(--hsdeck-admin-height) - var(--hsdeck-mobile-header-height));
		min-height: calc(100dvh - var(--hsdeck-admin-height) - var(--hsdeck-mobile-header-height));
		padding-top: calc(46px - var(--hsdeck-mobile-header-height));
		padding-bottom: 56px;
	}

	.hsdeck-document-sidebar {
		position: fixed;
		z-index: 60;
		top: 0;
		bottom: 0;
		left: 0;
		width: min(320px, calc(100% - 48px));
		height: auto;
		box-shadow: 18px 0 42px rgba(25, 31, 40, 0.16);
		visibility: hidden;
		transform: translateX(-105%);
		transition: transform var(--hsdeck-ease), visibility var(--hsdeck-ease);
	}

	.hsdeck-document-breadcrumb {
		margin-bottom: 14px;
	}

	.has-hsdeck-document-nav-open .hsdeck-document-sidebar {
		visibility: visible;
		transform: translateX(0);
	}

	.hsdeck-document-sidebar__close {
		display: grid;
	}

	.hsdeck-document-overlay {
		position: fixed;
		z-index: 50;
		inset: 0;
		display: block;
		border: 0;
		background: rgba(25, 31, 40, 0.3);
		opacity: 0;
		pointer-events: none;
		transition: opacity var(--hsdeck-ease);
	}

	.has-hsdeck-document-nav-open .hsdeck-document-overlay {
		opacity: 1;
		pointer-events: auto;
	}

	body.admin-bar .hsdeck-document-sidebar {
		top: 46px;
	}
}

/**
 * 8.0 Responsive Rules
 */

@media (min-width: 783px) {

	body.admin-bar .hsdeck-document-sidebar {
		top: 32px;
		height: calc(100vh - 32px);
		height: calc(100dvh - 32px);
	}

	.hsdeck-post-card__meta {
		line-height: 1.4;
	}
}

@media (max-width: 782px) {

	body.admin-bar .hsdeck-main.hsdeck-preview-main {
		min-height: calc(100vh - 86px);
		min-height: calc(100dvh - 86px);
	}

	.hsdeck-main {
		padding-block: 0 56px;
	}

	.hsdeck-post-card {
		--hsdeck-thumb: 104px;
		min-height: 64px;
		border-radius: 16px;
	}

	.hsdeck-post-card__title {
		display: -webkit-box;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: normal;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
	}

	.hsdeck-post-card__meta {
		line-height: 1.5;
	}

	.hsdeck-document-section-header {
		margin-top: 24px;
	}

	.hsdeck-not-found {
		padding-block: 52px;
	}

}

@media (max-width: 420px) {

	:root {
		--hsdeck-gutter: 18px;
	}

	.hsdeck-post-card.has-featured-image {
		grid-template-columns: 96px minmax(0, 1fr);
	}

	.hsdeck-not-found .wp-block-search__button {
		min-width: 64px;
		padding-inline: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}

/* stylelint-enable no-descending-specificity */

.hsdeck-expansion-header {
	margin: 0;
	padding-bottom: 16px;
}

.hsdeck-load-more {
	display: flex;
	align-items: center;
	flex-direction: column;
	gap: 8px;
	margin: 28px 0;
	overflow-anchor: none;
}

.hsdeck-post-query .hsdeck-load-more > a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 8px 20px;
	border-radius: var(--hsdeck-ui-radius-pill);
	background: var(--hsdeck-ui-surface);
	color: var(--hsdeck-ui-text);
	font-size: 13px;
	text-decoration: none;
	border: 1px solid var(--hsdeck-ui-border);
	line-height: 18px;
}

.hsdeck-post-query .hsdeck-load-more > a[hidden] {
	display: none;
}

.hsdeck-post-query .hsdeck-load-more > a[aria-disabled="true"] {
	opacity: 0.5;
	cursor: wait;
}

.hsdeck-post-query .hsdeck-load-more > a:focus-visible {
	outline: 2px solid var(--hsdeck-ui-muted);
	outline-offset: 2px;
}

.hsdeck-load-more__status {
	color: var(--hsdeck-ui-muted);
	font-size: 12px;
}

/* stylelint-disable no-descending-specificity -- Modal and sidebar scopes are independent of document links. */
.hsdeck-sidebar-search-button {
	position: absolute;
	top: 14px;
	right: 12px;
	display: grid;
	width: 32px;
	height: 32px;
	padding: 6px;
	border: 0;
	border-radius: var(--hsdeck-ui-radius-control);
	background: transparent;
	color: var(--hsdeck-ui-muted);
	place-items: center;
}

.hsdeck-sidebar-search-button svg,
.hsdeck-search-dialog svg {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

html:has(body.has-hsdeck-search-open) {
	overflow: hidden;
}

body.admin-bar {
	--hsdeck-admin-height: 32px;
}

.hsdeck-search-dialog {
	position: fixed;
	inset: var(--hsdeck-search-top) 0 0 var(--hsdeck-sidebar-width, 245px);
	width: min(560px, calc(100% - var(--hsdeck-sidebar-width, 245px) - 40px));
	max-width: none;
	max-height: calc(100dvh - var(--hsdeck-search-top) - 40px);
	margin: auto;
	padding: 16px;
	border: 1px solid var(--hsdeck-ui-border);
	border-radius: var(--hsdeck-ui-radius-panel);
	background: var(--hsdeck-ui-surface);
	box-shadow: var(--hsdeck-ui-shadow-dialog);
	color: var(--hsdeck-ui-text);
	font-family: var(--hsdeck-font-family);
	font-size: 14px;
	line-height: 22px;
	overflow: auto;
}

.hsdeck-search-dialog::backdrop {
	background: rgb(0 0 0 / 16%);
}

.hsdeck-search-dialog__form,
.hsdeck-search-dialog__field {
	display: flex;
	min-width: 0;
	margin: 0;
	align-items: center;
	gap: 10px;
}

.hsdeck-search-dialog__form {
	padding: 4px 8px 4px 16px;
	border: 0;
	background: transparent;
}

.hsdeck-search-dialog__field {
	flex: 1;
	color: var(--hsdeck-ui-muted);
}

.hsdeck-search-dialog input[type="search"] {
	width: 100%;
	min-width: 0;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--hsdeck-ui-text);
	font: inherit;
	outline: none;
}

.hsdeck-search-dialog input::placeholder {
	color: var(--hsdeck-ui-muted);
}

.hsdeck-search-dialog input::-webkit-search-cancel-button,
.hsdeck-search-dialog input::-webkit-search-decoration {
	display: none;
	appearance: none;
}

.hsdeck-search-dialog__clear {
	display: grid;
	width: 32px;
	height: 32px;
	padding: 6px;
	border: 0;
	border-radius: var(--hsdeck-ui-radius-control);
	background: transparent;
	color: var(--hsdeck-ui-icon);
	cursor: pointer;
	place-items: center;
}

.hsdeck-search-dialog__status {
	margin: 16px 8px 8px;
	color: var(--hsdeck-ui-muted);
	font-size: 12px;
}

.hsdeck-search-dialog__results {
	display: grid;
	max-height: 360px;
	margin: 0;
	padding: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	list-style: none;
}

.hsdeck-search-dialog__results:empty {
	display: none;
}

.hsdeck-search-dialog__results li {
	margin: 0;
	padding: 0;
}

.hsdeck-search-dialog__results a {
	display: flex;
	min-height: 44px;
	padding: 10px 8px;
	border-radius: var(--hsdeck-ui-radius-control);
	color: inherit;
	align-items: center;
	flex-wrap: nowrap;
	gap: 6px 8px;
	text-decoration: none;
}

.hsdeck-search-dialog__results a > span:first-child {
	min-width: 0;
	flex: 1;
	font-weight: 600;
	overflow-wrap: anywhere;
}

.hsdeck-search-dialog__meta {
	flex: 0 0 auto;
	white-space: nowrap;
	padding: 1px 6px;
	border-radius: 3px;
	background: var(--hsdeck-ui-soft);
	color: var(--hsdeck-ui-muted);
	font-size: 12px;
	line-height: 18px;
}

.hsdeck-search-dialog__all {
	display: block;
	margin: 12px 0 0;
	padding: 10px 8px 0;
	border-top: 1px solid var(--hsdeck-ui-border);
	color: var(--hsdeck-ui-muted);
	font-size: 13px;
	text-decoration: none;
}

.hsdeck-search-dialog__all[hidden],
.hsdeck-search-dialog__clear[hidden] {
	display: none;
}

.hsdeck-search-dialog__results a:focus-visible {
	background: var(--hsdeck-ui-hover);
}

@media (max-width: 820px) {

	.hsdeck-sidebar-search-button {
		right: 56px;
	}

	:root {
		--hsdeck-mobile-header-height: 40px;
	}

	.hsdeck-search-dialog {
		left: 0;
		width: calc(100% - 40px);
	}
}

@media (max-width: 782px) {

	body.admin-bar {
		--hsdeck-admin-height: 46px;
	}
}

.hsdeck-search-dialog__quick {
	padding: 8px;
}

.hsdeck-search-dialog__quick[hidden] {
	display: none;
}

.hsdeck-search-dialog__quick > div {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* stylelint-enable no-descending-specificity */

.hsdeck-search-dialog__status:empty {
	display: none;
}

/* Expansion name and class selection share the centered search layout. */
.hsdeck-expansion-header--classes {
	padding-bottom: 24px;
}

.hsdeck-expansion-header--classes > .hsdeck-expansion-title {
	margin: 0 0 24px;
	text-align: center;
	font-size: 20px;
	line-height: 30px;
	font-weight: 600;
}

.hsdeck-document-main.hsdeck-main:has(> .hsdeck-expansion-header--landing),
.hsdeck-document-main.hsdeck-main.hsdeck-search-hub {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: calc(100vh - var(--hsdeck-admin-height) - var(--hsdeck-mobile-header-height));
	min-height: calc(100dvh - var(--hsdeck-admin-height) - var(--hsdeck-mobile-header-height));
	padding-block: 32px;
}

.hsdeck-expansion-header--landing {
	width: 100%;
	padding-bottom: 0;
}

/* One component for class navigation and search expansion icons. */
.hsdeck-icon-nav {
	--hsdeck-icon-gap: 12px;
	--hsdeck-icon-tile-size: 56px;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-inline: 16px;
}

.hsdeck-icon-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	width: 100%;
	max-width: calc(var(--hsdeck-icon-columns, 6) * var(--hsdeck-icon-tile-size) + (var(--hsdeck-icon-columns, 6) - 1) * var(--hsdeck-icon-gap));
	gap: 12px var(--hsdeck-icon-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.hsdeck-icon-item {
	flex: 1 0 calc((100% - (var(--hsdeck-icon-columns, 6) - 1) * var(--hsdeck-icon-gap)) / var(--hsdeck-icon-columns, 6));
	min-width: 0;
	max-width: var(--hsdeck-icon-tile-size);
}

.hsdeck-icon-link {
	display: flex;
	min-width: 0;
	width: 100%;
	height: var(--hsdeck-icon-tile-size);
	align-items: center;
	justify-content: center;
	border: 1px solid transparent;
	border-radius: var(--hsdeck-ui-radius-control);
	color: var(--hsdeck-ui-muted);
	text-decoration: none;
}

/* Navigation and deck icons do not participate in text selection or image dragging. */
.hsdeck-icon-link,
.hsdeck-post-card__preview-icon,
.hscard-deck-expansion-icon {
	user-select: none;
}

.hsdeck-icon-media,
.hscard-deck-expansion-icon {
	pointer-events: none;
}

.hsdeck-icon-link[aria-current] {
	border-color: var(--hsdeck-ui-border);
	background: var(--hsdeck-ui-soft);
	color: var(--hsdeck-ui-text);
}

.hsdeck-icon-media {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	width: var(--hsdeck-navigation-icon-size);
	max-width: calc(100% - 4px);
	aspect-ratio: 1;
	place-items: center;
}

.hsdeck-icon-media > img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.hsdeck-icon-media--expansion {
	border-radius: 50%;
	background: #000;
}

.hsdeck-icon-media--expansion > img {
	width: calc(100% * 7 / 12);
	height: calc(100% * 7 / 12);
	filter: brightness(0) invert(1);
}

/* Beta names overlay the icon without a badge surface. */
.hsdeck-icon-badge {
	position: absolute;
	right: -6px;
	bottom: 3px;
	text-align: right;
	width: max-content;
	color: #000;
	font-size: 10px;
	font-weight: 600;
	line-height: 12px;
	white-space: nowrap;
	-webkit-text-stroke: 2px #fff;
	paint-order: stroke fill;
	pointer-events: none;
}

.hsdeck-icon-link:focus-visible {
	outline: 2px solid var(--hsdeck-ui-muted);
	outline-offset: 2px;
}

@media (max-width: 420px) {

	.hsdeck-icon-nav {
		--hsdeck-icon-gap: 6px;
	}

	.hsdeck-icon-grid .hsdeck-icon-badge {
		font-size: 9px;
		line-height: 11px;
	}
}

@media (max-width: 360px) {

	.hsdeck-icon-grid .hsdeck-icon-badge {
		font-size: 8px;
		line-height: 10px;
	}
}

.hsdeck-icon-link[aria-disabled="true"] {
	cursor: default;
}

.hsdeck-icon-link[aria-disabled="true"] .hsdeck-icon-media::after {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.68);
	content: "";
	pointer-events: none;
}

.hsdeck-expansion-patches {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 24px auto 0;
	padding-inline: 16px;
	max-width: 560px;
}

.hsdeck-expansion-patch svg {
	flex: 0 0 12px;
	color: var(--hsdeck-ui-icon);
}

.hsdeck-expansion-patch__label {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hsdeck-document-menu-button svg,
.hsdeck-document-sidebar__close svg,
.hsdeck-sidebar-search-button svg,
.hsdeck-search-dialog svg {
	stroke-width: 1.75;
}

.hsdeck-document-result:focus-within {
	outline: 2px solid var(--hsdeck-ui-muted);
	outline-offset: -2px;
	border-radius: var(--hsdeck-ui-radius-control);
}

/* Centered search matches reuse the expansion navigation assets. */
.hsdeck-document-main.hsdeck-main.hsdeck-search-hub {
	width: 100%;
	padding-inline: 20px;
	align-items: center;
}

.hsdeck-search-hub__inner {
	width: min(560px, 100%);
	margin: 0;
}

.hsdeck-search-hub .hsdeck-expansion-header {
	padding-bottom: 24px;
}

.hsdeck-search-hub .hsdeck-context-title {
	margin: 0;
	font-size: 20px;
	font-weight: 600;
	line-height: 30px;
	text-align: center;
	overflow-wrap: anywhere;
}

.hsdeck-search-hub .hsdeck-search-empty {
	text-align: center;
}
