/* Big section window (ne-fereastra.js), ported from nr-fereastra.css (nouaromania.eu): header band, a line "this is an excerpt from ...",
 * the section, and at the bottom a band with a big X and "Close". Colours and fonts from this site's own tokens (site.css :root).
 * Hidden until option ne_fe_live = 1. */
html.nefe-lock { overflow: hidden; padding-right: var(--nefe-sb, 0px); }
html.nefe-lock body { overflow: hidden; }
/* z-index above the sticky menu bar (50), the Follow bar (800), the picture viewer (9999) and the WordPress admin bar (99999) */
.nefe-backdrop {
  position: fixed; inset: 0; z-index: 100000;
  display: flex; align-items: center; justify-content: center;
  padding: max(10px, env(safe-area-inset-top, 0px)) max(10px, env(safe-area-inset-right, 0px)) max(10px, env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px));
  background: rgba(38, 16, 26, 0.62);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.nefe {
  width: min(900px, 100%); height: min(86vh, 860px); max-height: 100%;
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--paper-2); color: var(--ink);
  border-radius: 12px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  text-align: left;
  font-family: var(--f-read);
}
.nefe-head { flex: none; padding: 14px 22px; background: var(--burg); color: var(--on-dark); }
.nefe-label { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.nefe-eyebrow { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.85; line-height: 1.35; }
.nefe-title { font-family: var(--f-display); font-size: 22px; font-weight: 400; line-height: 1.2; }
.nefe-top { flex: none; padding: 12px 22px; background: var(--paper); border-bottom: 1px solid var(--paper-3); font-size: 16px; line-height: 1.45; }
.nefe-top a { color: var(--burg); font-weight: 600; }
.nefe-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 26px 10px; }
.nefe-body.prose { max-width: none; margin: 0; font-size: 1.0625rem; }
.nefe-body > :first-child { margin-top: 0; }
.nefe-bottom { flex: none; display: flex; justify-content: center; padding: 9px 16px; background: var(--burg); }
.nefe-x {
  display: inline-flex; align-items: center; gap: 12px;
  background: transparent; border: 0; padding: 0 14px 0 0; border-radius: 99px;
  color: var(--on-dark); font: inherit; font-size: 16px; cursor: pointer;
}
.nefe-xc {
  width: 52px; height: 52px; border-radius: 50%; border: 2px solid rgba(246, 244, 239, 0.75);
  display: grid; place-items: center; font-size: 34px; line-height: 1;
  padding-top: 3px; /* the multiplication sign sits high in most fonts; 3 px on top centres it (measured on nouaromania.eu, log 375) */
}
.nefe-x:hover .nefe-xc { background: rgba(246, 244, 239, 0.12); }
.nefe-x:focus-visible { outline: 3px solid var(--on-dark); outline-offset: 3px; }
.nefe-top a:focus-visible, .nefe-body a:focus-visible { outline: 2px solid var(--burg); outline-offset: 2px; }
@media (max-width: 700px) {
  .nefe { height: 100%; border-radius: 10px; }
  .nefe-head { padding: 12px 16px; }
  .nefe-title { font-size: 19px; }
  .nefe-top { padding: 10px 16px; font-size: 15px; }
  .nefe-body { padding: 14px 16px 8px; }
  .nefe-bottom { padding: 8px 12px; }
}
@media (prefers-reduced-motion: no-preference) {
  .nefe-backdrop { animation: nefe-fade 0.16s ease-out; }
  .nefe { animation: nefe-in 0.18s ease-out; }
  @keyframes nefe-fade { from { opacity: 0; } to { opacity: 1; } }
  @keyframes nefe-in { from { opacity: 0; transform: translateY(8px) scale(0.99); } to { opacity: 1; transform: none; } }
}
.nefe-busy, .nefe-busy a { cursor: progress; }
/* The picture viewer, when opened from a section window, shows above the window, not hidden under it. */
.nefe-lock .ne-lb { z-index: 100010; }
/* Sources and clarifications meant to live only in the window: give the block the class ne-win-src and the anchor win-<name>;
 * on the page it stays out of sight, the window shows it. (Without this style file the block simply shows in the page.) */
.ne-win-src { display: none; }
@media print { .nefe-backdrop { display: none; } }

/* The X is drawn from two lines, so it sits exactly in the centre of the circle in any font (owner, 2026-11-03: it sat about 10 px low). */
.nefe-xc { position: relative; font-size: 0; padding: 0; }
.nefe-xc::before, .nefe-xc::after { content: ""; position: absolute; left: 50%; top: 50%; width: 24px; height: 2px; background: currentColor; }
.nefe-xc::before { transform: translate(-50%, -50%) rotate(45deg); }
.nefe-xc::after { transform: translate(-50%, -50%) rotate(-45deg); }

.nefe-top[hidden] { display: none; }

/* Links that open this window on purpose (class ne-window): text in the paragraph's own colour, a faint dotted line and a small arrow,
   like the home page's "Who is behind it" link, so they differ from links that leave the page (solid line) and from the
   hard-word cards (thicker plum dotted line). Owner's choice B, 2026-11-21. The arrow is hidden from screen readers. */
.prose a.ne-window, .hubflow a.ne-window {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(29, 20, 24, .4);
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  text-underline-offset: 4px;
}
.prose a.ne-window::after, .hubflow a.ne-window::after { content: "^"; content: "^" / ""; color: rgb(140, 133, 130); color: color-mix(in srgb, currentColor 50%, #FAF5EC); }
.prose a.ne-window:hover, .prose a.ne-window:focus-visible, .hubflow a.ne-window:hover, .hubflow a.ne-window:focus-visible { text-decoration-color: currentColor; }
/* Owner 2026-11-23: the excerpt line under the window header is bold, link included. */
.nefe-top,.nefe-top a{font-weight:700}

/* 'Why this point' boxes inside the window (owner, 2026-11-30): a small link; a click opens its card under the point. Same look as on the Pillar pages. */
.nefe .ne-why{white-space:nowrap}
.nefe .ne-why-link{margin-left:.3em;font:600 .9em/1 Cabin,system-ui,sans-serif;color:#7a4a5c;text-decoration:none;border-bottom:2px dotted var(--gold,#cba652);cursor:pointer;white-space:nowrap}
.nefe .ne-why-link::after{content:" \203A"}
.nefe .ne-why-link:hover,.nefe .ne-why-link:focus-visible,.nefe .ne-why-link[aria-expanded="true"]{color:#552531;border-bottom-color:#a8862f}
.nefe .ne-why-card{display:none}
.nefe .ne-why-card.nefe-on{display:block;white-space:normal;margin:10px 0;padding:14px 18px;border:1px solid #ddd4c2;border-radius:6px;background:#fffefa;font-size:.94em;line-height:1.5}
.nefe .ne-why-card .nw-lab{display:block;font:600 .76em/1.5 Cabin,sans-serif;color:#5b4650;letter-spacing:.06em;text-transform:uppercase}
.nefe .ne-why-card .nw-tit{display:block;font:650 1.06em/1.35 Cabin,system-ui,sans-serif;color:#1d1418;margin:2px 0 8px}
.nefe .ne-why-card .nw-sub{display:block;font:600 .95em/1.4 Cabin,sans-serif;color:#552531;margin:12px 0 4px}
.nefe .ne-why-card .nw-p{display:block;margin:0 0 .6em}
.nefe .ne-why-card .nw-src{display:block;border-top:1px solid #e8e0d0;margin-top:10px;padding-top:8px;font-size:.9em;color:#5b4650}
.nefe .ne-why-card .nw-srclab{display:block;margin-bottom:2px}
.nefe .ne-why-card .nw-dot{display:none}
.nefe .ne-why-card .nw-src a{display:table;margin:4px 0;color:#552531;font-weight:600;text-decoration:none;border-bottom:1px solid #c9b9a6;line-height:1.35}
.nefe .ne-why-card .nw-close{display:none}
body.ne-why-off .nefe .ne-why{display:none}
.nefe .ne-why-card.nefe-on,.nefe .ne-why-card.nefe-on *{text-indent:0;text-align:left;-webkit-hyphens:manual;hyphens:manual}
/* Taller than wide on computers: height = 1.25 x width (owner, 2026-11-30: '20-30% mai înalte decât late'); phones keep the full screen. */
@media (min-width:701px){.nefe{width:min(900px,100%,calc(min(86vh,860px) / 1.25))}}
/* A short section (e.g. 'The Charter by theme') does not leave an empty window: on computers the window shrinks to its content, up to the usual height (owner, 2026-11-30). */
@media (min-width:701px){.nefe{height:auto;max-height:min(86vh,860px,100%)}}
