/* ==========================================================================
   OTTOMAN SERVICES — WordPress Core Support
   --------------------------------------------------------------------------
   Styles for WordPress-generated classes the frozen HTML template has no
   equivalent for: alignment, captions, galleries, the comment list, and
   accessibility utilities. Uses the same custom properties as style.css.
   Never edit style.css / pages.css / responsive.css to add these — they
   stay here so the frozen files remain untouched.
   ========================================================================== */

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: var(--os-white);
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, .6);
	clip: auto !important;
	clip-path: none;
	color: var(--os-ink);
	display: block;
	font-size: 14px;
	font-weight: 600;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 12px 16px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Block/editor alignment ------------------------------------------------- */

.os-article .alignwide {
	width: 100%;
	max-width: calc(100% + 96px);
	margin-left: -48px;
	margin-right: -48px;
}

.os-article .alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.os-article .alignleft {
	float: left;
	margin: .4em 1.6em 1.2em 0;
}

.os-article .alignright {
	float: right;
	margin: .4em 0 1.2em 1.6em;
}

.os-article .aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

/* Captions ---------------------------------------------------------------- */

.os-article .wp-caption {
	max-width: 100%;
}

.os-article .wp-caption img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 6px;
}

.os-article .wp-caption-text,
.os-article figcaption {
	margin-top: 10px;
	font-family: var(--os-font-body);
	font-size: 13px;
	line-height: 1.5;
	color: var(--os-text-light);
	text-align: center;
}

/* Galleries ---------------------------------------------------------------- */

.os-article .gallery {
	display: grid;
	grid-template-columns: repeat(var(--gallery-columns, 3), 1fr);
	gap: 16px;
	margin: 1.6em 0;
	list-style: none;
	padding: 0;
}

.os-article .gallery-item {
	margin: 0;
}

.os-article .gallery-item img {
	width: 100%;
	height: auto;
	border-radius: 6px;
	display: block;
}

/* Comment list -------------------------------------------------------------- */

.os-comments {
	margin-top: 56px;
	padding-top: 56px;
	border-top: 1px solid var(--os-rule-light);
}

.os-comments__title {
	font-family: var(--os-font-display);
	font-size: 28px;
	color: var(--os-ink);
	margin: 0 0 28px;
}

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

.os-comment-list .children {
	list-style: none;
	margin: 0 0 0 40px;
	padding: 0;
}

.os-comment-body {
	padding: 24px 0;
	border-bottom: 1px solid var(--os-rule-light);
}

.os-comment-author {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 8px;
}

.os-comment-author .avatar {
	border-radius: 50%;
	display: block;
}

.os-comment-author cite {
	font-style: normal;
	font-weight: 600;
	color: var(--os-ink);
}

.os-comment-metadata {
	font-size: 13px;
	color: var(--os-text-light);
}

.os-comment-metadata a {
	color: inherit;
}

.os-comment-content p {
	margin: 0 0 .8em;
	color: var(--os-body);
	line-height: 1.7;
}

.os-comment-reply-link {
	display: inline-block;
	margin-top: 8px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .02em;
	color: var(--os-gold-dark);
	text-decoration: none;
}

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

.os-comment-respond {
	margin-top: 32px;
}

.os-comment-respond .comment-form p {
	margin: 0 0 16px;
}

.os-comment-respond label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--os-ink);
}

.os-comment-respond input[type="text"],
.os-comment-respond input[type="email"],
.os-comment-respond input[type="url"],
.os-comment-respond textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--os-rule-light);
	border-radius: 4px;
	font-family: var(--os-font-body);
	font-size: 15px;
	color: var(--os-ink);
	background: var(--os-white);
}

.os-comment-respond .form-submit input[type="submit"] {
	font-family: var(--os-font-body);
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	font-size: 13px;
	padding: 14px 28px;
	background: var(--os-ink);
	color: var(--os-light);
	border: 0;
	border-radius: 4px;
	cursor: pointer;
}

.os-comment-respond .form-submit input[type="submit"]:hover {
	background: var(--os-gold-dark);
}

/* 404 / search-no-results -------------------------------------------------- */

.os-error-page {
	padding: 130px 0;
	text-align: center;
}

.os-error-page__code {
	font-family: var(--os-font-display);
	font-size: 120px;
	line-height: 1;
	color: var(--os-gold);
	margin: 0 0 16px;
}

/* Search form (searchform.php) — modelled on style.css's .os-newsletter
   input/button pairing so it reads as the same design language. */

.os-searchform {
	display: flex;
	border: 1px solid rgba(23, 19, 16, .18);
	max-width: 480px;
}

.os-searchform__input {
	flex: 1;
	min-width: 0;
	padding: 14px 15px;
	background: none;
	border: 0;
	outline: none;
	font-family: var(--os-font-body);
	font-size: 14px;
	color: var(--os-ink);
}

.os-searchform__input::placeholder {
	color: rgba(23, 19, 16, .38);
}

.os-searchform__btn {
	flex: none;
	padding: 14px 20px;
	background: var(--os-ink);
	border: 0;
	color: var(--os-cream);
	font-size: 10.5px;
	letter-spacing: .18em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background .35s ease, color .35s ease;
}

.os-searchform__btn:hover {
	background: var(--os-gold);
	color: var(--os-ink);
}
