/* ==========================================================================
   Article layout – template-parts/article.php (pages on the default template + posts)
   Page hero (main.css .be_page-hero), then the body and a sticky side column
   (contents + doctor card), then the contact form (sections.css).
   Body typography follows the homepage tokens: Syne, H2 32/40, H3 24/32, body 18/24.
   ========================================================================== */


/* Hero extras: post meta line (category · date) and the doctor byline */
.be_article-meta {
	margin: 0;
	font: 500 16px/22px var(--be-font-alt);
	color: var(--be-muted);
}

.be_article-meta a {
	color: var(--be-mauve);
	text-decoration: none;
}

.be_article-meta a:hover,
.be_article-meta a:focus-visible {
	text-decoration: underline;
}

.be_article-byline {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	font: var(--be-body);
	color: var(--be-ink);
}

.be_article-byline-icon {
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	margin-top: 2px;
	color: var(--be-mauve);
}

.be_article-byline a {
	font-weight: 600;
	color: var(--be-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Hero photo: the articles' images are mostly wide (e.g. 810x470, 1200x480), so the frame
   follows the image instead of the tall 665x712 frame, up to that height */
.be_article-hero .be_page-hero-frame {
	aspect-ratio: auto;
	max-height: 712px;
}

.be_article-hero .be_page-hero-frame img {
	height: auto;
	max-height: 712px;
}

/* Body + side column */
.be_article {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 400px;
	gap: 80px;
	background: var(--be-paper);
}

/* The column runs the full height of the text: doctor card first, then the contents,
   which stay in view (sticky) while the text scrolls */
.be_article-aside {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.be_toc {
	position: sticky;
	top: calc(var(--be-sticky-h, 0px) + 32px);
}

.admin-bar .be_toc {
	top: calc(var(--wp-admin--admin-bar--height, 32px) + var(--be-sticky-h, 0px) + 32px);
}

/* Body typography (migrated Elementor content: h2/h3, p, ul/ol, img, FAQ, related) */
.be_entry {
	min-width: 0; /* the body fills its whole grid column (no max-width) */
	font: var(--be-body);
	color: var(--be-muted);
}

.be_entry > :first-child {
	margin-top: 0;
}

.be_entry h2 {
	margin: 56px 0 20px;
	font: var(--be-h2);
	color: var(--be-ink);
}

.be_entry h3 {
	margin: 32px 0 12px;
	font: var(--be-h3);
	color: var(--be-ink);
}

.be_entry h4 {
	margin: 24px 0 8px;
	font: 600 18px/24px var(--be-font);
	color: var(--be-ink);
}

.be_entry p,
.be_entry ul,
.be_entry ol,
.be_entry table,
.be_entry figure,
.be_entry blockquote {
	margin: 0 0 20px;
}

.be_entry strong {
	font-weight: 600;
	color: var(--be-ink);
}

.be_entry a {
	color: var(--be-ink);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.be_entry a:hover,
.be_entry a:focus-visible {
	color: var(--be-mauve);
}

/* Lists: mauve squares as the footer specialties */
.be_entry ul {
	padding: 0;
	list-style: none;
}

.be_entry ul > li {
	position: relative;
	padding-left: 24px;
}

.be_entry ul > li + li {
	margin-top: 10px;
}

.be_entry ul > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 8px;
	width: 8px;
	height: 8px;
	background: var(--be-mauve);
}

.be_entry ol {
	padding-left: 24px;
}

.be_entry ol > li + li {
	margin-top: 10px;
}

.be_entry ol > li::marker {
	font-weight: 600;
	color: var(--be-mauve);
}

.be_entry img {
	max-width: 100%;
	height: auto;
}

.be_entry figure img,
.be_entry p > img:only-child {
	display: block;
}

.be_entry figcaption {
	margin-top: 8px;
	font-size: 14px;
	color: var(--be-faint);
}

.be_entry blockquote {
	padding: 24px 32px;
	border-left: 2px solid var(--be-mauve);
	background: var(--be-cream);
	font: var(--be-subtext);
	color: var(--be-ink);
}

.be_entry table {
	width: 100%;
	border-collapse: collapse;
	font-size: 16px;
}

.be_entry th,
.be_entry td {
	padding: 12px 16px;
	border-bottom: 1px solid rgba(73, 54, 58, 0.2);
	text-align: left;
	vertical-align: top;
}

.be_entry th {
	background: var(--be-cream);
	font-weight: 600;
	color: var(--be-ink);
}

.be_entry iframe {
	display: block;
	width: 100%;
	max-width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	margin: 0 0 20px;
	border: 0;
}

/* FAQ inside the body: the homepage accordion (sections.css), a little tighter */
.be_entry .be_faq--article {
	display: flex;
	flex-direction: column;
	gap: 24px;
	margin: 0 0 20px;
}

.be_entry .be_faq--article .be_faq-title {
	margin: 0;
	font: var(--be-h3);
}

.be_entry .be_faq--article .be_faq-a {
	margin-top: 16px;
}

.be_entry .be_faq--article .be_faq-a p:last-child {
	margin-bottom: 0;
}

/* Section numbers: every body H2 gets «01, 02 …» (as in «Περιεχόμενα») and a rule above,
   drawn by CSS, so the heading text stays the migrated one */
.be_entry {
	counter-reset: be-section;
}

.be_entry > h2[id^="enotita-"] {
	counter-increment: be-section;
}

.be_entry > h2[id^="enotita-"]::before {
	content: counter(be-section, decimal-leading-zero);
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 12px;
	font: 500 16px/1 var(--be-font-alt);
	letter-spacing: 0.08em;
	color: var(--be-mauve);
}

.be_entry > h2[id^="enotita-"]::after {
	content: none;
}

.be_entry > h2[id^="enotita-"] {
	padding-top: 24px;
	border-top: 1px solid rgba(73, 54, 58, 0.15);
}

.be_entry > h2[id^="enotita-"]:first-child {
	padding-top: 0;
	border-top: 0;
}

/* Break 1 – appointment band (template-parts/article-break.php) */
.be_inline-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	margin: 56px 0;
	padding: 40px;
	background: var(--be-mauve);
	color: var(--be-paper);
}

.be_inline-cta-body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-width: 560px;
}

.be_entry .be_inline-cta p {
	margin: 0;
}

.be_inline-cta-title {
	font: var(--be-h2);
	color: var(--be-white);
}

.be_inline-cta-text {
	font: var(--be-body);
	color: #e0d9d6;
}

.be_inline-cta-actions {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}

.be_entry .be_inline-cta a {
	text-decoration: none;
}

.be_entry .be_inline-cta .be_btn--light {
	background: var(--be-white);
	color: var(--be-ink);
}

.be_entry .be_inline-cta .be_btn--light:hover,
.be_entry .be_inline-cta .be_btn--light:focus-visible {
	background: var(--be-ink);
	color: var(--be-white);
}

.be_entry .be_inline-cta-phone {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font: var(--be-contact);
	color: var(--be-white);
}

.be_entry .be_inline-cta-phone:hover,
.be_entry .be_inline-cta-phone:focus-visible {
	color: var(--be-white);
	text-decoration: underline;
}

.be_entry .be_inline-cta-phone strong {
	font-weight: 700;
	color: #e0d9d6; /* not the ink colour of body <strong> */
}

.be_inline-cta-phone .be_icon {
	width: 18px;
	height: 20px;
	color: var(--be-white);
}

/* Break 2 – a patient review */
.be_inline-review {
	position: relative;
	margin: 56px 0;
	padding: 40px 40px 32px 96px;
	background: var(--be-cream);
}

.be_inline-review::before {
	content: "“";
	position: absolute;
	top: 20px;
	left: 32px;
	font: 400 96px/1 var(--be-font);
	color: var(--be-mauve);
	opacity: 0.35;
}

.be_entry .be_inline-review p {
	margin: 0;
}

.be_inline-review-stars {
	display: flex;
	gap: 4px;
	color: #ffc107;
	font-size: 22px;
	line-height: 1;
}

.be_entry .be_inline-review-text {
	margin: 16px 0;
	padding: 0;
	border: 0;
	background: none;
	font: var(--be-subtext);
	color: var(--be-ink);
}

.be_inline-review-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	font: 500 16px/22px var(--be-font-alt);
	color: var(--be-ink);
}

.be_inline-review-source {
	width: 20px;
	height: 20px;
}

.be_entry .be_inline-review-meta a {
	margin-left: auto;
	color: var(--be-mauve);
}

/* «Διαβάστε επίσης»: link cards with the arrow */
.be_related {
	margin-top: 56px;
	padding-top: 40px;
	border-top: 1px solid rgba(73, 54, 58, 0.2);
}

.be_entry .be_related-title {
	margin-top: 0;
}

.be_entry .be_related-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
}

.be_entry .be_related-list > li {
	margin: 0;
	padding: 0;
}

.be_entry .be_related-list > li::before {
	display: none;
}

.be_entry .be_related-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	height: 100%;
	padding: 16px 20px;
	background: var(--be-cream);
	color: var(--be-ink);
	text-decoration: none;
	transition: background-color var(--be-t-fast) var(--be-ease);
}

.be_entry .be_related-list a::after {
	content: "";
	flex: 0 0 auto;
	width: 8px;
	height: 8px;
	border-top: 1.5px solid var(--be-mauve);
	border-right: 1.5px solid var(--be-mauve);
	transform: rotate(45deg);
}

.be_entry .be_related-list a:hover,
.be_entry .be_related-list a:focus-visible {
	background: rgba(107, 79, 84, 0.2);
}

/* Side column: contents */
.be_toc {
	padding: 32px;
	background: var(--be-cream);
}

.be_toc-title {
	font: var(--be-h3);
	color: var(--be-ink);
	list-style: none;
	cursor: pointer;
}

.be_toc-title::-webkit-details-marker {
	display: none;
}

.be_toc-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-height: calc(100vh - var(--be-sticky-h, 0px) - 200px);
	margin: 20px 0 0;
	padding: 0 8px 0 0;
	overflow-y: auto;
	list-style: none;
	counter-reset: be-toc;
}

.be_toc-list li {
	display: flex;
	gap: 10px;
	counter-increment: be-toc;
	font: 400 16px/22px var(--be-font);
}

.be_toc-list li::before {
	content: counter(be-toc, decimal-leading-zero);
	flex: 0 0 auto;
	font: 500 14px/22px var(--be-font-alt);
	color: var(--be-mauve);
}

.be_toc-list a {
	color: var(--be-ink);
	text-decoration: none;
}

.be_toc-list a:hover,
.be_toc-list a:focus-visible {
	text-decoration: underline;
}

/* Side column: doctor card (the old site's sidebar) */
.be_doctor-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	padding: 32px;
	background: var(--be-ink);
	color: var(--be-paper);
}

.be_doctor-card-photo {
	width: 96px;
	height: 96px;
	margin: 0 0 8px;
	overflow: hidden;
	border-radius: 50%;
	background: var(--be-paper);
}

.be_doctor-card-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	filter: grayscale(1);
}

.be_doctor-card-name {
	margin: 0;
	font: var(--be-h3);
}

.be_doctor-card-name span {
	display: block;
	font-size: 18px;
	line-height: 24px;
}

.be_doctor-card-role {
	margin: 0;
	font: 500 16px/22px var(--be-font-alt);
	color: #e0d9d6;
}

.be_doctor-card-text {
	margin: 4px 0 0;
	font: 400 16px/22px var(--be-font);
	color: var(--be-paper);
}

.be_doctor-card .be_contact-quick {
	gap: 10px;
	margin-top: 8px;
	font-size: 15px;
}

.be_doctor-card .be_contact-list,
.be_doctor-card .be_contact-list .be_icon,
.be_doctor-card .be_contact-quick-label {
	color: var(--be-paper);
}

.be_doctor-card-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 8px;
}

.be_doctor-card .be_btn--light {
	color: var(--be-paper);
}

.be_doctor-card .be_btn--light:hover,
.be_doctor-card .be_btn--light:focus-visible {
	color: var(--be-ink);
}

/* The contact form after the article */
.be_article + .be_contact {
	background: var(--be-cream);
}

@media (max-width: 1440px) {
	.be_article {
		grid-template-columns: minmax(0, 1fr) 340px;
		gap: 56px;
	}
}

@media (max-width: 1100px) {
	.be_article {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	/* Tablets and phones: contents above the text (collapsed, main.js), doctor card below it */
	.be_article-aside {
		display: contents;
	}

	.be_toc {
		position: static;
		order: -1;
	}

	.be_toc-list {
		max-height: none;
	}

	.be_doctor-card {
		order: 1;
	}
}

@media (max-width: 700px) {
	.be_entry h2 {
		margin: 40px 0 16px;
		font: 400 24px/30px var(--be-font);
	}

	.be_entry h3 {
		font: 500 20px/26px var(--be-font);
	}

	.be_entry,
	.be_entry .be_faq--article .be_faq-title {
		font-size: 16px;
		line-height: 22px;
	}

	.be_entry .be_faq--article .be_faq-title {
		font: 500 18px/24px var(--be-font);
	}

	.be_entry .be_related-list {
		grid-template-columns: 1fr;
	}

	.be_inline-cta,
	.be_inline-review {
		margin: 40px 0;
		padding: 24px 20px;
	}

	.be_inline-cta {
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
	}

	.be_inline-cta-title {
		font: 400 24px/30px var(--be-font);
	}

	.be_inline-review {
		padding-top: 56px;
	}

	.be_inline-review::before {
		top: 8px;
		left: 20px;
		font-size: 72px;
	}

	.be_entry .be_inline-review-text {
		font: 400 18px/24px var(--be-font);
	}

	.be_entry .be_inline-review-meta a {
		margin-left: 0;
	}

	.be_toc {
		padding: 20px;
	}

	.be_article-byline {
		font-size: 16px;
		line-height: 22px;
	}
}
