/* Visuals (7 Nov 2026): pictures and the languages map on the culture page, and the clickable orange "culture" word
 * in the home page heading. Pictures teach: each one has a few Spanish words next to it. */

/* Home page: "Descoperă limba și cultura." — "cultura" is orange and leads to the culture page */
#topic-heading .topic-culture-link { color: inherit; text-decoration: none; }
#topic-heading .topic-culture-link em,
html[data-theme="dark"] #topic-heading .topic-culture-link em { color: #f05a18; text-decoration: underline; text-decoration-color: rgb(240 90 24 / 45%); text-decoration-thickness: 2px; text-underline-offset: 7px; transition: text-decoration-color .2s ease; }
#topic-heading .topic-culture-link:hover em,
#topic-heading .topic-culture-link:focus-visible em { text-decoration-color: #f05a18; }
#topic-heading .topic-culture-link:focus-visible { outline: 3px solid #f05a18; outline-offset: 4px; border-radius: 2px; }

/* Culture page: three places under the heading */
.culture-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: -6px 0 50px; }
.culture-gallery figure, .culture-band, .culture-map { margin: 0; }
.culture-gallery img, .culture-band img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; background: var(--culture-soft, #e8edf3); }
.culture-gallery figcaption, .culture-band figcaption { margin-top: 8px; font-size: 13px; line-height: 1.45; color: var(--culture-muted, #66707d); }
.culture-gallery figcaption strong, .culture-band figcaption strong { color: var(--culture-navy, #203758); font-weight: 650; }

/* Section 01: languages map */
.culture-map { margin-top: 26px; padding: 20px 20px 16px; background: var(--culture-surface, #f6f8fb); border: 1px solid var(--culture-line, #dde3ea); }
.culture-map-head { margin: 0 0 4px; font-size: 15px; font-weight: 700; color: var(--culture-navy, #203758); }
.culture-map-note { margin: 0 0 12px; font-size: 13px; line-height: 1.55; color: var(--culture-muted, #66707d); }
.lang-map-svg { display: block; width: 100%; max-width: 520px; height: auto; margin: 0 auto; }
.lang-map-svg path { stroke: #fff; stroke-width: .7; stroke-linejoin: round; transition: opacity .15s ease; }
.lm-es { fill: #cdd6e3; } .lm-ca { fill: #f05a18; } .lm-gl { fill: #3f7fd9; } .lm-eu { fill: #1f9a87; } .lm-eu-part { fill: #1f9a87; fill-opacity: .42; }
.lm-inset { fill: none; stroke: #9aa6b6; stroke-dasharray: 3 3; }
.lm-label { font: 700 13px var(--sans, system-ui, sans-serif); fill: #13243a; paint-order: stroke; stroke: #fff; stroke-width: 3.5px; pointer-events: none; }
.culture-map-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 12px 0 0; padding: 0; list-style: none; font-size: 13px; line-height: 1.4; }
.culture-map-legend li { display: flex; align-items: center; gap: 7px; }
.culture-map-legend i { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.culture-map-legend [lang] { font-weight: 650; color: var(--culture-navy, #203758); }
.culture-map-source { margin: 10px 0 0; font-size: 11px; color: var(--culture-muted, #66707d); }
html[data-theme="dark"] .lang-map-svg path { stroke: #1b2029; }
html[data-theme="dark"] .lm-es { fill: #3a4659; }
html[data-theme="dark"] .lm-inset { stroke: #4b566a; }
html[data-theme="dark"] .lm-label { fill: #fff; stroke: #1b2029; }

/* Cards 02-04: picture on top, a few Spanish words under the text */
.culture-card-img { display: block; width: calc(100% + 52px); max-width: none; height: auto; aspect-ratio: 16 / 10; object-fit: cover; margin: -30px -26px 20px; background: var(--culture-soft, #e8edf3); }
.culture-card:has(.culture-card-img) .culture-icon { display: none; }
.culture-card:has(.culture-card-img) h3 { margin-top: 0; }
.culture-vocab { margin: 0 0 16px; font-size: 14px; font-weight: 650; color: #ce4810; }
html[data-theme="dark"] .culture-vocab { color: #ff9860; }

/* Section 05: one wide picture above the two columns */
.culture-band { margin: 26px 0 6px; }
.culture-band img { aspect-ratio: 21 / 8; }

@media (max-width: 900px) {
  .culture-card-img { width: calc(100% + 50px); margin: -25px -25px 18px; }
}
@media (max-width: 650px) {
  .culture-gallery { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 38px; }
  .culture-gallery figure:first-child { grid-column: 1 / -1; }
  .culture-gallery figure:first-child img { aspect-ratio: 16 / 9; }
  .culture-map { padding: 16px 14px 12px; }
  .culture-band img { aspect-ratio: 16 / 9; }
}
.lm-sw-es { background: #cdd6e3; } .lm-sw-ca { background: #f05a18; } .lm-sw-gl { background: #3f7fd9; } .lm-sw-eu { background: #1f9a87; }
html[data-theme="dark"] .lm-sw-es { background: #3a4659; outline: 1px solid #5a6679; }
.culture-diversity .culture-map-head { font-size: 15px; line-height: 1.4; margin: 0 0 4px; }
.culture-diversity .culture-map-note { font-size: 13px; line-height: 1.55; margin: 0 0 12px; }
.culture-diversity .culture-map-source { font-size: 11px; line-height: 1.4; margin: 10px 0 0; }
.culture-map-legend [lang] { white-space: nowrap; }
.lm-label { font-size: 15px; }
@media (max-width: 650px) { .culture-map-legend { flex-direction: column; gap: 6px; } }
.culture-card .culture-vocab { color: #ce4810; font-weight: 650; font-size: 14px; line-height: 1.6; }
html[data-theme="dark"] .culture-card .culture-vocab { color: #ff9860; }
.culture-map-legend li { display: block; }
.culture-map-legend i { display: inline-block; vertical-align: -1px; margin-right: 7px; }
