/* NSR add-ons loaded on every page (kept apart from the original styles.css) */

/* SVG flags instead of emoji (emoji show as "GB"/"NL" letters on Windows) */
.lang-switch a.flag { align-items: center; }
.nsr-flag { display: block; width: 24px; height: 16px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(28, 23, 18, 0.15); }
.nsr-flag-code { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lang-gate .lang-btn span.flag { display: inline-flex; }
.lang-gate .lang-btn .nsr-flag { width: 27px; height: 18px; }

/* Contact form */
.nsr-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note.is-ok { color: var(--sage); font-weight: 600; }
.form-note.is-error { color: var(--terracotta); font-weight: 600; }
form[data-contact] button[disabled] { opacity: 0.6; cursor: wait; }

/* Instructors (phase 2) */
.avatar.has-photo { background: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.nsr-person { position: relative; }
.nsr-person h3 a:hover { color: var(--gold-deep); }
.nsr-more { margin-top: 10px !important; font-size: .9rem; }
.nsr-more a { color: var(--gold-deep); }
.nsr-admin-edit { position: absolute; top: 12px; right: 14px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--night); font-size: .95rem; }
.nsr-add-card { display: grid; place-items: center; min-height: 140px; border-style: dashed; color: var(--gold-deep); font-family: var(--font-display); font-size: 1.3rem; }
.nsr-hero-loc { margin-top: 12px; color: #c9c0b4; letter-spacing: .06em; }
.page-hero .eyebrow a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.nsr-profile { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: start; }
.nsr-profile-side { display: grid; gap: 20px; }
.nsr-portrait { width: 100%; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: linear-gradient(145deg, #c4a056, #5e6f5a); display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-size: 4.5rem; box-shadow: var(--shadow); }
.nsr-portrait img { width: 100%; height: 100%; object-fit: cover; }
.nsr-disc { list-style: none; display: grid; gap: 8px; margin-top: 12px; }
.nsr-disc li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.nsr-disc em { color: var(--gold-deep); font-style: normal; font-size: .9rem; white-space: nowrap; }
.nsr-link-out { color: var(--gold-deep); text-decoration: underline; }
.nsr-bio p { font-size: 1.1rem; color: var(--ink-soft); margin-bottom: 16px; max-width: 68ch; }
.nsr-msg-form { margin-top: 32px; max-width: 620px; }
.nsr-back { margin-top: 28px; }
.nsr-back a { color: var(--gold-deep); }
@media (max-width: 880px) { .nsr-profile { grid-template-columns: 1fr; } .nsr-profile-side { max-width: 360px; } }

/* Workshops (phase 3) */
a.u { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 2px; }
.nsr-ws-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 32px; }
.nsr-ws-card { position: relative; display: grid; padding: 0; overflow: hidden; }
.nsr-ws-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.nsr-ws-body { padding: 24px 26px 26px; display: grid; gap: 6px; align-content: start; }
.nsr-ws-date { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); }
.nsr-ws-body h3 a:hover { color: var(--gold-deep); }
.nsr-ws-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px !important; }
.nsr-badge { display: inline-block; font-size: .78rem; letter-spacing: .06em; padding: 4px 12px; border-radius: 999px; background: var(--sage-soft); color: var(--sage); font-weight: 600; }
.nsr-badge.is-off { background: #f3e2da; color: var(--terracotta); }
.nsr-ws-past { list-style: none; display: grid; gap: 8px; margin-top: 14px; }
.nsr-ws-past span { color: var(--muted); font-size: .9rem; display: inline-block; min-width: 230px; }
.nsr-ws-past a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.nsr-ws-detail { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.nsr-ws-main { grid-column: 1; }
.nsr-ws-side { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 100px; display: grid; gap: 14px; }
.nsr-ws-form { grid-column: 1; }
.nsr-ws-hero-img { width: 100%; border-radius: var(--radius); margin-bottom: 26px; box-shadow: var(--shadow); }
.nsr-facts { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: .98rem; }
.nsr-facts dt { color: var(--muted); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; padding-top: 3px; }
.nsr-facts dd { margin: 0; }
.nsr-reg-form { margin-top: 12px; max-width: 680px; scroll-margin-top: 110px; }
.nsr-reg-form .grid-2 { gap: 14px; }
.nsr-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.nsr-consent input { width: auto; margin-top: 4px; }
form[data-instructor-form] button[disabled] { opacity: .6; cursor: wait; }
@media (max-width: 880px) {
  .nsr-ws-grid { grid-template-columns: 1fr; }
  .nsr-ws-detail { grid-template-columns: 1fr; }
  .nsr-ws-side { grid-column: 1; grid-row: auto; position: static; }
  .nsr-ws-past span { display: block; min-width: 0; }
}

/* Blog (phase 4) */
.nsr-post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 8px; }
.nsr-post-card { position: relative; display: grid; grid-template-rows: auto 1fr; padding: 0; overflow: hidden; }
.nsr-post-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; transition: transform .4s; }
.nsr-post-img { overflow: hidden; }
.nsr-post-card:hover .nsr-post-img img { transform: scale(1.03); }
.nsr-post-body { padding: 22px 24px 24px; display: grid; gap: 8px; align-content: start; }
.nsr-post-body h3 { font-size: 1.45rem; line-height: 1.2; }
.nsr-post-body h3 a:hover { color: var(--gold-deep); }
.nsr-post-body p { color: var(--ink-soft); }
.nsr-post-more { margin-top: 4px !important; }
.nsr-pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 36px; }
.nsr-home-blog .nsr-post-grid { margin-top: 28px; }
.nsr-article-wrap { max-width: 1100px; }
.nsr-article { max-width: 720px; margin: 0 auto; }
.nsr-article-cover { width: 100%; border-radius: var(--radius); margin-bottom: 32px; box-shadow: var(--shadow); }
.nsr-article-body { font-size: 1.12rem; line-height: 1.75; color: var(--ink-soft); }
.nsr-article-body > * + * { margin-top: 1.1em; }
.nsr-article-body h2 { font-size: clamp(1.7rem, 3.4vw, 2.2rem); color: var(--ink); margin-top: 1.6em; line-height: 1.2; }
.nsr-article-body h3 { font-size: 1.4rem; color: var(--ink); margin-top: 1.4em; }
.nsr-article-body a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 2px; }
.nsr-article-body ul, .nsr-article-body ol { padding-left: 1.4em; }
.nsr-article-body li + li { margin-top: .4em; }
.nsr-article-body blockquote { border-left: 3px solid var(--gold); padding: 4px 0 4px 22px; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.4; color: var(--ink); font-style: italic; }
.nsr-article-body figure { margin: 1.8em 0; }
.nsr-article-body figure img { width: 100%; border-radius: 14px; display: block; }
.nsr-article-body .nsr-yt { position: relative; aspect-ratio: 16 / 9; margin: 1.8em 0; border-radius: 14px; overflow: hidden; background: #1c1712; }
.nsr-article-body .nsr-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.nsr-author { display: flex; gap: 16px; align-items: center; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); }
.nsr-author .avatar { width: 64px; height: 64px; flex: none; font-size: 1.3rem; }
.nsr-author p { margin: 0; }
.nsr-lang-note, .flash-note { padding: 10px 16px; border-radius: 12px; background: var(--sage-soft); margin-bottom: 22px; font-size: .95rem; }
.flash-note { background: #fff1d6; }
.nsr-post-more-list { margin-top: 72px; }
.nsr-post-more-list .nsr-post-grid { grid-template-columns: repeat(2, 1fr); margin-top: 22px; }
@media (max-width: 980px) { .nsr-post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .nsr-post-grid, .nsr-post-more-list .nsr-post-grid { grid-template-columns: 1fr; } }
.nsr-article-cover { max-height: 520px; object-fit: cover; }
.nsr-article-body figure img { width: auto; max-width: 100%; max-height: 80vh; margin: 0 auto; }
