/* DeSpiegel Academie — uses the theme variables (deep green, yellow highlights). */

.acad-open { background: #FFF1B8; color: #5a4300; padding: 0 4px; border-radius: 3px; font-weight: 700; }
.acad-empty { font-size: 18px; }
.acad-note { font-size: 15px; color: #33413e; margin: 8px 0 0; }
.acad-tag { display: inline-block; font: 700 13px/1 var(--body); text-transform: uppercase; letter-spacing: .06em; background: var(--grey); color: var(--green); padding: 6px 10px; border-radius: 999px; margin: 6px 0; }
.acad-tag--demo { background: var(--yellow); color: var(--green); }

/* Focus: always visible, high contrast. */
.acad-form :focus-visible, .acad-card :focus-visible, .acad-doc :focus-visible, .acad-month :focus-visible, .acad-price :focus-visible { outline: 3px solid var(--green); outline-offset: 3px; box-shadow: 0 0 0 6px var(--yellow); }

/* ------------------------------------------------------------- Hero */
.acad-hero { background: var(--green); color: var(--white); padding: 110px 0 90px; position: relative; overflow: hidden; }
.acad-hero h1 { color: var(--white); font-size: clamp(44px, 6vw, 76px); line-height: 1; max-width: 900px; }
.acad-hero h1 em { font-style: normal; color: var(--yellow); }
.acad-hero p { font-size: 21px; max-width: 760px; }
.acad-hero__kicker { font: 700 15px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--mint); }
.acad-hero .btns { margin-top: 32px; }
.acad-hero .btn--outline { border-color: var(--white); color: var(--white); }
.acad-hero .btn--outline:hover { background: var(--white); color: var(--green); }

.acad-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); counter-reset: s; }
.acad-steps > div { background: var(--white); padding: 32px; border-top: 6px solid var(--yellow); }
.acad-steps h3 { color: var(--green); margin-bottom: 8px; }
.acad-steps p { margin: 0; font-size: 18px; }
.sec--green .acad-steps > div { color: var(--black); }

.acad-subnav { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 32px; padding: 0; list-style: none; }
.acad-subnav a { display: inline-block; padding: 10px 18px; border: 2px solid var(--green); color: var(--green); text-decoration: none; font-weight: 700; border-radius: 999px; }
.acad-subnav a[aria-current="page"], .acad-subnav a:hover { background: var(--green); color: var(--white); }

/* ---------------------------------------------------------- Series */
.acad-series { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: var(--gap); }
.acad-card { background: var(--white); border: 1px solid #dfe5e3; display: flex; flex-direction: column; }
.acad-card__head { background: var(--green); color: var(--white); padding: 26px 28px 22px; position: relative; }
.acad-card__head h3 { color: var(--white); margin: 6px 0 12px; font-size: 32px; }
.acad-card__track { margin: 0; font-weight: 700; color: var(--yellow); font-size: 15px; }
.acad-card__head .acad-tag--demo { position: absolute; top: 18px; inset-inline-end: 18px; margin: 0; }
.acad-places { display: inline-block; margin: 0; background: var(--mint); color: var(--green); font-weight: 700; padding: 6px 12px; border-radius: 999px; font-size: 15px; }
.acad-places.is-full { background: var(--yellow); }
.acad-card__body { padding: 24px 28px; flex: 1; }
.acad-card__body h4 { font: 700 16px/1.3 var(--body); text-transform: uppercase; letter-spacing: .06em; color: var(--green); margin: 18px 0 8px; }
.acad-card__body h4:first-child { margin-top: 0; }
.acad-dates { margin: 0; padding-inline-start: 22px; }
.acad-dates li { margin: 3px 0; }
.acad-time { color: #33413e; white-space: nowrap; }
.acad-meta { display: grid; gap: 6px; margin: 16px 0 0; }
.acad-meta div { display: grid; grid-template-columns: 130px 1fr; gap: 10px; }
.acad-meta dt { font-weight: 700; }
.acad-meta dd { margin: 0; }
.acad-goals { margin: 0; padding-inline-start: 20px; }
.acad-card__foot { padding: 0 28px 28px; }
.acad-from { font-size: 15px; margin: 0 0 14px; }

/* ----------------------------------------------------------- Prices */
.acad-price { width: 100%; border-collapse: collapse; background: var(--white); font-size: 18px; }
.acad-price caption { text-align: start; font: 400 32px/1.1 var(--head); color: var(--green); margin-bottom: 14px; }
.acad-price th, .acad-price td { padding: 16px 18px; border-bottom: 1px solid #dfe5e3; text-align: start; vertical-align: top; }
.acad-price thead th { background: var(--green); color: var(--white); font-weight: 700; }
.acad-price td { white-space: nowrap; font-weight: 700; color: var(--green); }
.acad-price td small { display: block; font-weight: 400; color: #33413e; font-size: 13px; }
.acad-price tbody th small { display: block; font-weight: 400; color: #33413e; }
.acad-table-wrap { overflow-x: auto; }

.acad-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.acad-table th, .acad-table td { padding: 10px 12px; border-bottom: 1px solid #dfe5e3; text-align: start; vertical-align: top; }
.acad-table thead th { background: var(--grey); }

/* ---------------------------------------------------- Hours table */
.acad-hours { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 22px 0; }
.acad-hours__col { padding: 22px 24px; border-radius: 12px; }
.acad-hours__col h4 { font: 700 18px/1.2 var(--body); margin: 0 0 10px; }
.acad-hours__col ul { margin: 0; padding-inline-start: 20px; }
.acad-hours__col li { margin: 6px 0; }
.acad-hours__col--yes { background: #E3FBEF; border: 2px solid var(--mint); }
.acad-hours__col--no { background: var(--grey); border: 2px solid #c9d2cf; }

/* -------------------------------------------------------- Documents */
.acad-doc { max-width: 860px; }
.acad-doc__version { color: #33413e; font-style: italic; }
.acad-doc h2 { font-size: 34px; margin: 40px 0 12px; color: var(--green); }
.acad-doc h3 { margin: 26px 0 10px; color: var(--green); }
.acad-doc ol { padding-inline-start: 24px; }
.acad-doc li { margin: 8px 0; }
.acad-doc-note { font-size: 15px; color: #33413e; }
.acad-toc { background: var(--grey); padding: 20px 26px; margin: 20px 0 30px; }
.acad-toc ol { margin: 0; padding-inline-start: 20px; columns: 2; column-gap: 30px; }
.acad-toc a { color: var(--green); }

/* ------------------------------------------------------------- Form */
.acad-form { max-width: 820px; }
.acad-form fieldset { border: 0; border-top: 3px solid var(--green); padding: 22px 0 8px; margin: 0 0 18px; }
.acad-form legend { font: 400 30px/1 var(--head); color: var(--green); padding-inline-end: 12px; }
.acad-form label { display: block; font-weight: 700; margin: 14px 0 6px; }
.acad-form input[type=text], .acad-form input[type=email], .acad-form input[type=tel], .acad-form select, .acad-form textarea { width: 100%; font: 18px/1.4 var(--body); padding: 12px 14px; border: 2px solid #7d8b88; border-radius: 0; background: var(--white); color: var(--black); }
.acad-form input:focus, .acad-form select:focus, .acad-form textarea:focus { border-color: var(--green); }
.acad-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 20px; }
.acad-check { display: flex !important; gap: 12px; align-items: flex-start; font-weight: 400 !important; }
.acad-check input { width: 22px; height: 22px; margin-top: 2px; flex: 0 0 22px; accent-color: var(--green); }
.req { color: #9a2400; }
.acad-req-note { font-size: 14px; color: #33413e; }
.acad-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.acad-tier { display: grid !important; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: center; border: 2px solid #c9d2cf; padding: 14px 16px; margin: 10px 0 !important; cursor: pointer; font-weight: 400 !important; background: var(--white); }
.acad-tier input { width: 22px; height: 22px; accent-color: var(--green); }
.acad-tier:has(input:checked) { border-color: var(--green); background: #E3FBEF; }
.acad-tier:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.acad-tier__label { font-weight: 700; }
.acad-tier__price { font-weight: 700; color: var(--green); white-space: nowrap; text-align: end; }
.acad-tier__price small { display: block; font-weight: 400; color: #33413e; font-size: 13px; }
.acad-cond { background: var(--grey); padding: 4px 18px 16px; margin: 4px 0 10px; border-inline-start: 4px solid var(--yellow); }
.acad-total { background: var(--green); color: var(--white); padding: 18px 22px; margin: 0 0 20px; }
.acad-total p { display: flex; justify-content: space-between; margin: 4px 0; font-size: 18px; }
.acad-total .acad-note { display: block; color: #E3FBEF; font-size: 14px; margin-top: 10px; }
.acad-total__sum { border-top: 1px solid rgba(255,255,255,.3); padding-top: 8px; font-size: 22px !important; }
.acad-total__sum strong { color: var(--yellow); }
.acad-docs { line-height: 1.9; }
.acad-alert { background: #FDECEA; border-inline-start: 6px solid #9a2400; color: #5c1500; padding: 14px 18px; font-weight: 700; margin-bottom: 16px; }
.acad-form .btn { font-size: 22px; padding: 12px 24px; }

.acad-confirm { background: var(--white); border-top: 6px solid var(--mint); padding: 28px 32px; max-width: 860px; }
.acad-summary { display: grid; gap: 0; margin: 20px 0; }
.acad-summary div { display: grid; grid-template-columns: 220px 1fr; gap: 14px; padding: 10px 0; border-bottom: 1px solid #dfe5e3; }
.acad-summary dt { font-weight: 700; }
.acad-summary dd { margin: 0; }
.acad-withdrawal pre { white-space: pre-wrap; background: var(--grey); padding: 16px; font: 15px/1.5 var(--body); }

/* -------------------------------------------------------- Complaints */
.acad-steps-list { counter-reset: c; list-style: none; padding: 0; margin: 20px 0; }
.acad-steps-list li { position: relative; padding: 4px 0 18px; padding-inline-start: 58px; }
.acad-steps-list li::before { counter-increment: c; content: counter(c); position: absolute; inset-inline-start: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); color: var(--green); font: 400 24px/40px var(--head); text-align: center; }

/* ------------------------------------------------------------ Portal */
.dsp-btn--ghost { background: transparent !important; color: var(--green) !important; border: 2px solid var(--green) !important; }
.dsp-btn--small { padding: 6px 14px !important; font-size: 15px !important; }
.acad-month { background: var(--white); border: 1px solid #dfe5e3; border-radius: 14px; padding: 18px 22px; margin: 0 0 22px; }
.acad-month__label { font-weight: 700; margin: 0 0 10px; color: var(--green); font-size: 18px; }
.acad-month__bar { height: 14px; background: #e6ece9; border-radius: 999px; overflow: hidden; }
.acad-month__bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--mint)); border-radius: 999px; transition: width .8s ease; }
.acad-month__bar.is-paused span { background: repeating-linear-gradient(45deg, #c9d2cf 0 10px, #e6ece9 10px 20px); }
.acad-month__link { display: inline-block; margin-top: 10px; color: var(--green); font-weight: 700; }
.acad-hr-gate__doc { max-height: 460px; overflow: auto; border: 1px solid #dfe5e3; padding: 8px 22px; margin: 16px 0; background: #fff; }
.acad-gate-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.acad-inline { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.acad-inline label { margin: 0 !important; }
.acad-link-btn { background: none; border: 0; color: #9a2400; text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
.acad-danger { margin-top: 14px; }
.acad-danger summary { cursor: pointer; color: #9a2400; }
.acad-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.acad-item { border: 1px solid #dfe5e3; padding: 18px 20px; border-radius: 12px; }
.acad-item h4 { margin: 0 0 4px; }
.acad-item__meta { color: #33413e; margin: 0 0 8px; font-size: 15px; }
.acad-fee { display: inline-block; background: var(--yellow); color: var(--green); font-weight: 700; padding: 6px 12px; border-radius: 999px; margin: 0 0 8px; }
.acad-mentee { border-bottom: 1px solid #dfe5e3; padding: 10px 0; }
.acad-mentee summary { cursor: pointer; }

/* ------------------------------------------------- Arabic (RTL) */
html[lang="ar"] body { font-family: "Noto Naskh Arabic", "Lato", Arial, sans-serif; }
html[lang="ar"] .acad-doc, html[lang="ar"] .entry, html[lang="ar"] .acad-hero p { font-size: 20px; line-height: 1.9; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { font-family: "Noto Naskh Arabic", var(--head); font-weight: 700; letter-spacing: 0; }
html[lang="ar"] .acad-hero h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.3; }
html[lang="ar"] .btn::after { transform: scaleX(-1); }
html[lang="ar"] .site-header, html[lang="ar"] .site-footer { direction: ltr; }
html[lang="ar"] .acad-toc ol { columns: 1; }
.acad-doc[dir="rtl"] { text-align: right; }

@media (max-width: 860px) {
	.acad-steps, .acad-hours { grid-template-columns: 1fr; }
	.acad-series { grid-template-columns: 1fr; }
	.acad-summary div, .acad-meta div { grid-template-columns: 1fr; gap: 2px; }
	.acad-toc ol { columns: 1; }
	.acad-price { font-size: 16px; }
	.acad-price th, .acad-price td { padding: 12px 10px; }
	.acad-hero { padding: 80px 0 60px; }
}
