/* ==========================================================================
   Padmira Cargo — singular content (posts & pages)
   ========================================================================== */

.entry { padding-bottom: 3rem; }

.entry-thumb { margin: 0 0 1.75rem; overflow: hidden; border-radius: var(--pc-radius-lg); }
.entry-thumb img { display: block; width: 100%; height: auto; }

/* Typography ------------------------------------------------------------- */

.entry-content { overflow-wrap: break-word; }
.entry-content:not(.entry-content--full),
.pc-article-content { padding-inline: 10px !important; }
.entry-content > :first-child { margin-top: 0; }

.entry-content h2 { margin: 2.25rem 0 .75rem; color: var(--pc-primary); font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); }
.entry-content h3 { margin: 1.75rem 0 .6rem; color: var(--pc-navy); font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); }
.entry-content h4, .entry-content h5, .entry-content h6 { margin: 1.5rem 0 .5rem; font-size: 1.05rem; }

.entry-content a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.entry-content .wp-block-button__link { text-decoration: none; }

.entry-content ul, .entry-content ol { margin: 0 0 1.2em; padding-inline-start: 1.5rem; }
.entry-content li { margin-bottom: .35em; }

.entry-content blockquote {
	margin: 1.5rem 0;
	padding: 1rem 1.25rem;
	background: var(--pc-surface);
	border-inline-start: 4px solid var(--pc-primary);
	border-radius: var(--pc-radius);
}

.entry-content blockquote p:last-child { margin-bottom: 0; }

.entry-content hr { margin: 2rem 0; border: 0; border-top: 1px solid var(--pc-border); }

.entry-content iframe { max-width: 100%; }

/* Images (classic + blocks) --------------------------------------------- */

.entry-content img { border-radius: var(--pc-radius); }
.entry-content figure { max-width: 100%; margin: 1.5rem 0; }

.aligncenter { display: block; margin-inline: auto; text-align: center; }
img.aligncenter { margin-block: 1.25rem; }

@media (min-width: 600px) {
	.alignright { float: right; margin: .3rem 0 1rem 1.5rem; }
	.alignleft { float: left; margin: .3rem 1.5rem 1rem 0; }
}

.entry-content::after { content: ""; display: table; clear: both; }

.wp-caption { max-width: 100%; }
.wp-caption-text, .entry-content figcaption { margin-top: .4rem; color: var(--pc-muted); font-size: .85rem; text-align: center; }

.gallery { display: grid; gap: .75rem; margin: 1.5rem 0; grid-template-columns: repeat(var(--pc-gallery-cols, 3), minmax(0, 1fr)); }
.gallery-columns-1 { --pc-gallery-cols: 1; }
.gallery-columns-2 { --pc-gallery-cols: 2; }
.gallery-columns-4 { --pc-gallery-cols: 4; }
.gallery-columns-5 { --pc-gallery-cols: 5; }
.gallery-item { margin: 0; }
.gallery-icon img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery br { display: none; }

@media (max-width: 599px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Tables ----------------------------------------------------------------- */

.entry-content table { width: 100%; margin: 1.5rem 0; border-collapse: collapse; font-size: .92rem; }
.entry-content th, .entry-content td { padding: .6rem .75rem; border: 1px solid var(--pc-border); text-align: start; vertical-align: top; }
.entry-content th, .entry-content thead td { background: var(--pc-surface); color: var(--pc-heading); font-weight: 700; }

@media (max-width: 767px) {
	.entry-content table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* Accordion / FAQ (core/details) ---------------------------------------- */

.wp-block-details {
	margin: 0 0 .75rem;
	padding: 0;
	background: #fff;
	border: 1px solid var(--pc-border);
	border-radius: var(--pc-radius);
}

.wp-block-details summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: .85rem 1rem;
	color: var(--pc-navy);
	font-weight: 700;
	list-style: none;
	cursor: pointer;
}

.wp-block-details summary::-webkit-details-marker { display: none; }

.wp-block-details summary::after {
	content: "";
	flex-shrink: 0;
	width: .55rem;
	height: .55rem;
	margin-top: -.3rem;
	border-inline-end: 2px solid currentColor;
	border-block-end: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform .2s;
}

.wp-block-details[open] > summary { border-bottom: 1px solid var(--pc-border); }
.wp-block-details[open] > summary::after { margin-top: .3rem; transform: rotate(-135deg); }
.wp-block-details > :not(summary) { margin-inline: 1rem; }
.wp-block-details > :nth-child(2) { margin-top: .85rem; }
.wp-block-details > :last-child { margin-bottom: .85rem; }

/* Post footer, related, comments ---------------------------------------- */

.entry-footer { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--pc-border); }

.tag-list { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.tag-list a { display: inline-block; padding: .2rem .75rem; border-radius: 999px; background: var(--pc-surface); color: var(--pc-text); font-size: .82rem; }

.related { margin-top: 1rem; padding-bottom: 3rem; }
.related__title { margin-bottom: 1.25rem; font-size: 1.3rem; }

.page-links { margin-top: 1.5rem; }

.comments-area { margin-top: 3rem; }
.comment-list { margin: 0 0 2rem; padding: 0; list-style: none; }
.comment-list .comment { margin-bottom: 1rem; padding: 1rem; background: var(--pc-surface); border-radius: var(--pc-radius); }
.comment-form input:not([type="submit"]):not([type="checkbox"]), .comment-form textarea { width: 100%; padding: .6rem .8rem; border: 1px solid var(--pc-border); border-radius: var(--pc-radius); }

/* Info boxes + map (converted landing/contact content) ------------------ */

.pc-infobox { height: 100%; margin: 0 0 1rem; padding: 1.25rem; background: #fff; border: 1px solid var(--pc-border); border-radius: var(--pc-radius-lg); text-align: center; }
.pc-infobox > .wp-block-image { margin: 0 auto .75rem; }
.pc-infobox > .wp-block-image img { width: 48px; height: 48px; object-fit: contain; }
.entry-content .pc-infobox h3 { margin: 0 0 .5rem; font-size: 1.05rem; }
.pc-infobox p:last-child { margin-bottom: 0; }

.pc-map { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--pc-radius-lg); background: var(--pc-surface); }
.pc-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Contact form [padmira_contact_form] ----------------------------------- */

.pc-form { display: grid; gap: .25rem; }
.pc-form__row { display: grid; gap: 0 1rem; }

@media (min-width: 600px) { .pc-form__row { grid-template-columns: 1fr 1fr; } }

.pc-form__field { margin: 0 0 .75rem; }
.pc-form__field label { display: block; margin-bottom: .25rem; color: var(--pc-heading); font-size: .9rem; font-weight: 500; }
.pc-form__field input, .pc-form__field textarea {
	width: 100%;
	padding: .65rem .85rem;
	background: #fff;
	border: 1px solid var(--pc-border);
	border-radius: var(--pc-radius);
}
.pc-form__field input:focus, .pc-form__field textarea:focus { border-color: var(--pc-primary); outline: 2px solid rgba(1, 83, 165, .2); }

.pc-form__hp { position: absolute; inset-inline-start: -9999px; }

.pc-form__notice { padding: .75rem 1rem; border-radius: var(--pc-radius); font-weight: 500; }
.pc-form__notice--success { background: #e7f6ec; color: #17602f; }
.pc-form__notice--error { background: #fdecec; color: #8c1c1c; }
