/* ---- The template's painting in the home hero (tenants/presets/paintings.py, 2026-10) ----
   Its own file, linked whenever the template has a painting: details.css loads for
   flat templates only, and «ليلة النجوم» is the glow one.
   A real frame: dark wood, a pale mat, a soft shadow, and a museum label under it.
   Phones: the painting first, smaller (it is the template). Desktop: side by side. */
.theme-student [data-tpl="hero-art"] { position: relative; z-index: 10; margin: 2.5rem auto 0; width: min(100%, 26rem); display: grid; gap: .75rem; justify-items: center; }
.theme-student [data-tpl="hero-art"] > span {
  display: block; padding: clamp(10px, 2.2vw, 16px); background: var(--art-mat, #f3eee4);
  border: clamp(9px, 1.8vw, 14px) solid var(--art-frame, #2b211a); border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), 0 1px 0 rgba(255,255,255,.18), 0 22px 48px -12px rgba(0,0,0,.45);
}
.theme-student [data-tpl="hero-art"] img { display: block; width: 100%; height: auto; max-height: 62vh; object-fit: contain; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.theme-student [data-tpl="hero-art"] figcaption { display: grid; gap: 1px; text-align: center; font-size: .85rem; line-height: 1.5; color: var(--tc-on-hero-muted); }
.theme-student [data-tpl="hero-art"] figcaption b { color: var(--tc-on-hero); font-weight: 700; font-size: .95rem; }
.theme-student [data-tpl="hero-art"] figcaption small { font-size: .7rem; opacity: .8; }
@media (max-width: 1023.98px) {
  .theme-student [data-tpl="hero"]:has(> [data-tpl="hero-art"]) { padding-top: 6.5rem; }
  .theme-student [data-tpl="hero-art"] { order: -1; margin: 0 auto 1.75rem; width: min(100%, 20rem); }
  .theme-student [data-tpl="hero-art"] img { max-height: 34vh; }
}
@media (min-width: 1024px) {
  .theme-student [data-tpl="hero"]:has(> [data-tpl="hero-art"]) {
    display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 4vw, 4rem);
    align-items: center; text-align: start; padding-inline: clamp(1.5rem, 5vw, 5rem);
  }
  .theme-student [data-tpl="hero"]:has(> [data-tpl="hero-art"]) > [data-tpl="hero-body"] { align-items: flex-start; }
  .theme-student [data-tpl="hero"]:has(> [data-tpl="hero-art"]) > [data-tpl="hero-body"] .justify-center { justify-content: flex-start; }
  .theme-student [data-tpl="hero-art"] { margin: 0; width: 100%; max-width: 34rem; justify-self: center; }
}

/* A band cut from the painting: between the hero and the page, and over the footer. */
.theme-student [data-tpl="art-strip"], [data-tpl="art-strip-foot"] {
  height: clamp(36px, 5.5vw, 68px); background-size: cover; background-position: center; background-repeat: no-repeat;
  box-shadow: inset 0 6px 10px -8px rgba(0,0,0,.45), inset 0 -6px 10px -8px rgba(0,0,0,.45);
}
/* Every other home section takes a whisper of the painting's first tone. */
.theme-student [data-tpl="section"]:nth-of-type(even) { background-color: color-mix(in srgb, var(--art-t1, transparent) 6%, var(--tc-page-canvas)); }

/* The painting's colours, blurred past recognition, under the hero's own canvas. */
.theme-student [data-tpl="hero"]:has(> [data-tpl="hero-art"]) {
  background-image: linear-gradient(color-mix(in srgb, var(--tc-page-canvas) 86%, transparent), color-mix(in srgb, var(--tc-page-canvas) 86%, transparent)), var(--art-wash, none);
  background-size: cover; background-position: center;
}

/* ---------- «تفاصيل أكتر» (2026-10-04) ----------
   The owner found the platforms plain below the hero. The painting now carries
   on down the page: its palette under each section heading, its frame and mat
   around every course cover, a canvas grain on the sections, and the hero says
   who teaches and how much is here. No gradients, glow or emoji (the house rule). */

/* who teaches + the numbers, under the hero's two buttons */
.theme-student [data-tpl="hero-face"] { width: 36px; height: 36px; border-radius: 999px; overflow: hidden; display: inline-block; flex: none;
  box-shadow: 0 0 0 2px var(--art-mat-c, #fff), 0 0 0 3px var(--art-frame-c, currentColor); }
.theme-student [data-tpl="hero-facts-list"] li { font-weight: 600; }
.theme-student [data-tpl="hero-facts-list"] li + li::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%;
  background: var(--art-t2, currentColor); margin-inline-end: 1rem; vertical-align: middle; }
.theme-student [data-tpl="hero-facts"] { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin-top: 2rem; padding-top: 1.25rem;
  font-size: .9rem; border-top: 1px solid color-mix(in srgb, var(--tc-on-hero, currentColor) 14%, transparent); }
.theme-student [data-tpl="hero-teacher"] { display: inline-flex; align-items: center; gap: .6rem; }
.theme-student [data-tpl="hero-facts-list"] { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem; margin: 0; padding: 0; list-style: none; }

/* the painting's palette under each section heading */
.theme-student [data-tpl="art-palette"] { display: flex; gap: 6px; margin-top: .85rem; }
.theme-student [data-tpl="art-palette"] i { width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--tc-on-hero, #000) 30%, transparent); }
.theme-student [data-tpl="art-palette"] i:nth-child(1) { background: var(--art-t1); }
.theme-student [data-tpl="art-palette"] i:nth-child(2) { background: var(--art-t2); }
.theme-student [data-tpl="art-palette"] i:nth-child(3) { background: var(--art-t3); }
.theme-student [data-tpl="art-palette"] i:nth-child(4) { background: var(--art-t4); }
.theme-student [data-tpl="art-palette"] i:nth-child(5) { background: var(--art-t5); }
.theme-student .text-center [data-tpl="art-palette"] { justify-content: center; }

/* every course cover hangs like the painting: its frame colour, then its mat */
.theme-student [data-tpl="card"] > div:first-child { box-shadow: inset 0 0 0 6px var(--art-mat-c, #fff), inset 0 0 0 7px color-mix(in srgb, var(--art-frame-c, #000) 55%, transparent); }
.theme-student [data-tpl="card"] > div:first-child > img,
.theme-student [data-tpl="card"] > div:first-child > :not([data-tpl="badge"]) { clip-path: inset(7px); }
.theme-student [data-tpl="card"] { border-color: color-mix(in srgb, var(--art-frame-c, #000) 35%, var(--tc-glass-line, transparent)); }

/* a canvas grain on the sections instead of a flat fill (one tiny SVG, no image request) */
.theme-student [data-tpl="section"] { position: relative; isolation: isolate; }
.theme-student [data-tpl="section"]::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* «إزاي بتشتغل»: numbers in the painting's tones, joined by a thread on wide screens */
.theme-student [data-tpl="step"] { position: relative; }
.theme-student [data-tpl="step"] > span:first-child { background: var(--art-t1) !important; color: #fff !important; box-shadow: 0 0 0 4px var(--art-mat-c, #fff), 0 0 0 5px var(--art-frame-c, transparent); }
.theme-student [data-tpl="step"]:nth-child(2) > span:first-child { background: var(--art-t2) !important; }
.theme-student [data-tpl="step"]:nth-child(3) > span:first-child { background: var(--art-t3) !important; }
.theme-student [data-tpl="step"]:nth-child(4) > span:first-child { background: var(--art-t4) !important; }
@media (min-width: 1024px) {
  .theme-student [data-tpl="step"]:not(:last-child)::after { content: ""; position: absolute; top: 2.75rem; inset-inline-start: calc(1.5rem + 2.75rem); inset-inline-end: -1.25rem;
    border-top: 2px dotted color-mix(in srgb, var(--art-t1) 55%, transparent); }
}
