/* NexURLs full screen browsing (0.20.56, close button fix 0.20.57, comments 0.20.58). The bar sits on top on a computer, at the bottom on a phone. */
.nxf-switch {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin: 10px auto 0; padding: 6px 12px; border-radius: 999px;
  border: 1px solid #E3DCCF; background: #fff; color: #6B665E;
  font: 500 13px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; cursor: pointer;
}
.nxf-switch b { color: #121212; }
.nxf-switch.is-on { border-color: #FF5A1F; color: #121212; }
.nxf-switch.is-on b { color: #E2470F; }

html.nxf-lock, html.nxf-lock body { overflow: hidden !important; }
/* 0.20.63: while a site is open full screen, the page underneath is not drawn at
   all (it is still there, so Like, Save and Next keep working). Saves battery. */
html.nxf-lock body > :not(.nxf):not(canvas):not(script):not(style):not(link) { visibility: hidden !important; }

.nxf {
  position: fixed; inset: 0; z-index: 2147483000; display: none; flex-direction: column;
  background: #121212; color: #fff;
  font: 15px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.nxf.is-in { display: flex; }
/* 0.20.58: in the installed app the page runs under the phone's status bar, so the
   site's own header was hidden behind it. Keep the frame below the status bar. */
.nxf { padding-top: env(safe-area-inset-top, 0px); }
.nxf * { box-sizing: border-box; }
/* The theme colours links (including :visited), so every link in the layer sets its own colour. */
.nxf a.nxf-info, .nxf a.nxf-info:link, .nxf a.nxf-info:visited, .nxf a.nxf-info:hover,
.nxf a.nxf-btn, .nxf a.nxf-btn:link, .nxf a.nxf-btn:visited, .nxf a.nxf-btn:hover,
.nxf a.nxf-go, .nxf a.nxf-go:link, .nxf a.nxf-go:visited, .nxf a.nxf-go:hover { color: #fff; text-decoration: none; }
.nxf .nxf-title { color: #fff; }

.nxf-bar {
  flex: 0 0 auto; display: flex; align-items: center; gap: 10px;
  min-height: 58px; padding: 8px 12px; background: #121212; border-bottom: 1px solid #2A2724;
}
.nxf-x {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; border: 1px solid #3A3631;
  background: transparent; color: #fff; font-size: 24px; line-height: 1; cursor: pointer;
}
/* 0.20.57: the theme styles every button (padding, min width, colours), which
   squashed the close button into an oval with the X off centre. */
.nxf button.nxf-x {
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  width: 38px !important; height: 38px !important; min-width: 0 !important; min-height: 0 !important;
  padding: 0 !important; margin: 0 !important; border-radius: 50% !important;
  border: 1px solid #3A3631 !important; background: transparent !important; color: #fff !important;
  box-shadow: none !important; line-height: 1 !important; font-size: 0 !important;
}
.nxf button.nxf-x:hover { background: rgba(255,255,255,.08) !important; }
.nxf button.nxf-x svg { display: block; width: 18px; height: 18px; }
.nxf button.nxf-btn, .nxf button.nxf-next { min-width: 0 !important; margin: 0 !important; line-height: 1 !important; }
.nxf button.nxf-btn { padding: 0 10px !important; background: transparent !important; box-shadow: none !important; border: 1px solid #3A3631 !important; color: #fff !important; border-radius: 999px !important; }
.nxf button.nxf-btn.is-on { color: #FF5A1F !important; border-color: #FF5A1F !important; }
.nxf button.nxf-next { background: #FF5A1F !important; color: #121212 !important; border: 0 !important; border-radius: 999px !important; padding: 0 20px !important; box-shadow: 0 3px 0 #B8360A !important; font: 700 17px/1 "Space Grotesk", -apple-system, sans-serif !important; }
.nxf button.nxf-next:hover { background: #FF6A33 !important; color: #121212 !important; }
.nxf-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; color: #fff; text-decoration: none; }
.nxf-title { font: 700 15px/1.2 "Space Grotesk", -apple-system, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nxf-domain { color: #A9A39A; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nxf-acts { flex: 0 0 auto; display: flex; gap: 6px; align-items: center; }
.nxf-btn {
  display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 10px; border-radius: 999px;
  border: 1px solid #3A3631; background: transparent; color: #fff; text-decoration: none; cursor: pointer; font-size: 13px;
}
.nxf-btn.is-on { color: #FF5A1F; border-color: #FF5A1F; }
.nxf-n:empty { display: none; }
.nxf-next {
  flex: 0 0 auto; height: 42px; padding: 0 20px; border-radius: 999px; border: 0; cursor: pointer;
  background: #FF5A1F; color: #121212; font: 700 17px/1 "Space Grotesk", -apple-system, sans-serif;
  box-shadow: 0 3px 0 #B8360A;
}
.nxf-next:active { transform: translateY(2px); box-shadow: 0 1px 0 #B8360A; }

.nxf-view { position: relative; flex: 1 1 auto; background: #fff; }
.nxf-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.nxf-load {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 24px; text-align: center; background: #F4F0E8; color: #121212;
}
.nxf-load[hidden] { display: none; }
.nxf-lt { font: 700 22px/1.2 "Space Grotesk", -apple-system, sans-serif; }
.nxf-ld { color: #6B665E; }
.nxf-slow { color: #6B665E; font-size: 14px; }
.nxf-slow a { color: #E2470F; }
.nxf-spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #E3DCCF; border-top-color: #FF5A1F; animation: nxf-spin .8s linear infinite; }
@keyframes nxf-spin { to { transform: rotate(360deg); } }

.nxf-panel { position: absolute; inset: 0; overflow: auto; background: #F4F0E8; color: #121212; display: flex; align-items: center; justify-content: center; padding: 20px 16px; }
.nxf-panel[hidden] { display: none; }
.nxf-card { width: 100%; max-width: 560px; background: #fff; border: 1px solid #E3DCCF; border-radius: 18px; overflow: hidden; }
.nxf-card img { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; background: #121212; }
.nxf-card-b { padding: 18px 20px 20px; }
.nxf-card h2 { font: 700 24px/1.2 "Space Grotesk", -apple-system, sans-serif; margin: 6px 0 8px; }
.nxf-card p { color: #6B665E; margin: 0 0 16px; }
.nxf-topic { color: #E2470F; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.nxf-go {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px;
  background: #121212; color: #fff; text-decoration: none; font-weight: 700;
}
.nxf-card small { display: block; margin-top: 12px; color: #6B665E; }

/* Phones: the bar moves to the bottom, where your thumb is. */
@media (max-width: 760px) {
  .nxf { flex-direction: column-reverse; }
  .nxf-bar { border-bottom: 0; border-top: 1px solid #2A2724; flex-wrap: wrap; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); }
  .nxf-info { order: 1; flex: 1 1 calc(100% - 50px); }
  .nxf-x, .nxf button.nxf-x { order: 2; width: 36px !important; height: 36px !important; }
  .nxf-acts { order: 3; flex: 1 1 auto; }
  .nxf-open-t { display: none; }
  .nxf-btn, .nxf button.nxf-btn { height: 40px; padding: 0 11px !important; }
  .nxf-next { order: 4; height: 44px; padding: 0 22px; }
}

/* ---------- Comments over the site (0.20.58): a centred box on a computer, full screen on phones and the app. ---------- */
.nxf-sheet { position: absolute; inset: 0; z-index: 5; display: none; align-items: center; justify-content: center; padding: 24px; }
.nxf-sheet.is-in { display: flex; }
.nxf-sheet-bg { position: absolute; inset: 0; background: rgba(18,18,18,.55); }
.nxf-sheet-box {
  position: relative; display: flex; flex-direction: column; width: 100%; max-width: 600px; height: min(720px, 86vh);
  background: #fff; color: #121212; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.nxf-sheet-head { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #E3DCCF; }
.nxf-sheet-head b { font: 700 18px/1.2 "Space Grotesk", -apple-system, sans-serif; }
.nxf-sheet-n { color: #6B665E; font-size: 14px; }
.nxf-sheet-site { display: block; color: #6B665E; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60vw; }
.nxf button.nxf-sheet-x {
  flex: 0 0 auto; display: inline-flex !important; align-items: center !important; justify-content: center !important;
  width: 38px !important; height: 38px !important; min-width: 0 !important; padding: 0 !important; margin: 0 !important;
  border-radius: 50% !important; border: 1px solid #E3DCCF !important; background: #fff !important; color: #121212 !important; box-shadow: none !important;
}
.nxf button.nxf-sheet-x svg { width: 18px; height: 18px; display: block; }
.nxf-sheet-list { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 8px 16px 16px; }
.nxf-sheet-empty { color: #6B665E; text-align: center; padding: 40px 10px; margin: 0; }
.nxf-c { display: flex; gap: 10px; padding: 12px 0 4px calc(var(--d, 0) * 22px); }
.nxf-c + .nxf-c { border-top: 1px solid #F1ECE3; }
.nxf-c-av { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: #E3DCCF; display: block; }
.nxf-c-b { flex: 1 1 auto; min-width: 0; }
.nxf-c-top { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font-size: 14px; }
.nxf-c-top b, .nxf-c-top b a, .nxf-c-top b a:visited { color: #121212; text-decoration: none; }
.nxf-c-op { font-size: 11px; font-weight: 700; color: #E2470F; background: #FFF1E9; border-radius: 999px; padding: 2px 7px; }
.nxf-c-ago { color: #8A847A; font-size: 12px; }
.nxf-c-b p { margin: 4px 0 2px; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; color: #121212; }
.nxf-c-b p a { color: #E2470F; }
.nxf-c-gone { color: #8A847A !important; font-style: italic; }
.nxf-c-wait { color: #8A847A; font-size: 12px; }
.nxf button.nxf-c-reply {
  border: 0 !important; background: transparent !important; color: #6B665E !important; font: 700 13px/1 -apple-system, sans-serif !important;
  padding: 6px 0 !important; margin: 0 !important; min-width: 0 !important; box-shadow: none !important; cursor: pointer;
}
.nxf button.nxf-c-reply:hover { color: #E2470F !important; }
.nxf-sheet-foot { flex: 0 0 auto; border-top: 1px solid #E3DCCF; padding: 10px 12px; background: #fff; }
.nxf-sheet-to { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: #6B665E; padding: 0 4px 8px; }
.nxf-sheet-to[hidden] { display: none; }
.nxf button.nxf-sheet-cancel { border: 0 !important; background: transparent !important; color: #E2470F !important; font-weight: 700 !important; padding: 0 !important; min-width: 0 !important; box-shadow: none !important; }
.nxf-sheet-form { display: flex; align-items: flex-end; gap: 8px; margin: 0; }
.nxf-sheet-form textarea {
  flex: 1 1 auto; min-height: 44px; max-height: 140px; resize: none; margin: 0;
  border: 1.5px solid #E3DCCF; border-radius: 22px; padding: 11px 14px; font: 16px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #121212; background: #F9F7F3; outline: none; box-shadow: none;
}
.nxf-sheet-form textarea:focus { border-color: #FF5A1F; background: #fff; }
.nxf button.nxf-sheet-post {
  flex: 0 0 auto; height: 44px; padding: 0 18px !important; margin: 0 !important; min-width: 0 !important; border: 0 !important; border-radius: 999px !important;
  background: #FF5A1F !important; color: #121212 !important; font: 700 15px/1 "Space Grotesk", -apple-system, sans-serif !important; box-shadow: none !important; cursor: pointer;
}
.nxf button.nxf-sheet-post[disabled] { opacity: .6; }
.nxf-sheet-msg { margin: 8px 4px 0; color: #C0341A; font-size: 13px; }
.nxf-sheet-msg[hidden] { display: none; }
.nxf a.nxf-sheet-join, .nxf a.nxf-sheet-join:visited { display: block; text-align: center; padding: 13px; border-radius: 999px; background: #FF5A1F; color: #121212; font-weight: 700; text-decoration: none; }
.nxf a.nxf-sheet-full, .nxf a.nxf-sheet-full:visited { display: block; text-align: center; padding: 10px 0 2px; color: #6B665E; font-size: 13px; text-decoration: none; }

/* Phones and the app: the comments take the whole screen, above the bar, and keep clear of the notch and home bar. */
@media (max-width: 760px) {
  .nxf-sheet { position: fixed; inset: 0; padding: 0; z-index: 2147483001; height: 100vh; height: 100dvh; }
  .nxf-sheet-bg { display: none; }
  .nxf-sheet-box { max-width: none; height: 100%; border-radius: 0; box-shadow: none; }
  .nxf-sheet-head { padding: calc(10px + env(safe-area-inset-top)) 14px 10px; }
  .nxf-sheet-foot { padding: 10px 10px calc(10px + env(safe-area-inset-bottom)); }
  .nxf-sheet-list { padding: 6px 14px 14px; }
  .nxf-c { padding-left: calc(var(--d, 0) * 14px); }
}

/* ---------- About panel (0.20.72): everything about the link, without leaving full screen. ---------- */
.nxf-about-t { font-size: 13px; }
.nxf-sheet-hl { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.nxf-tabs { display: flex; gap: 6px; }
.nxf button.nxf-tab {
  min-width: 0 !important; margin: 0 !important; padding: 7px 14px !important; border-radius: 999px !important;
  border: 1px solid #E3DCCF !important; background: #fff !important; color: #6B665E !important; box-shadow: none !important;
  font: 700 14px/1 "Space Grotesk", -apple-system, sans-serif !important; cursor: pointer;
}
.nxf button.nxf-tab.is-on { background: #121212 !important; border-color: #121212 !important; color: #fff !important; }
.nxf button.nxf-tab .nxf-sheet-n { color: inherit; opacity: .7; font-size: 12px; }
.nxf-sheet-about { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.nxf-sheet-about[hidden], .nxf-sheet-list[hidden], .nxf-sheet-foot[hidden] { display: none; }
.nxf-ab-hero { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; background: #121212; }
.nxf-ab-b { padding: 16px 18px 22px; }
.nxf-ab-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.nxf-ab-tags span { background: #FFF0E8; color: #C2410C; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 600; }
.nxf-ab-b h2 { font: 700 22px/1.25 "Space Grotesk", -apple-system, sans-serif; margin: 0 0 6px; color: #121212; }
.nxf a.nxf-ab-site, .nxf a.nxf-ab-site:visited { display: inline-flex; align-items: center; gap: 4px; color: #C2410C; font-size: 14px; text-decoration: none; word-break: break-all; }
.nxf a.nxf-ab-site svg { width: 14px; height: 14px; flex: 0 0 auto; }
.nxf-ab-by { display: flex; align-items: center; gap: 10px; margin: 14px 0 4px; }
.nxf-ab-by img, .nxf-ab-av { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: #E3DCCF; flex: 0 0 auto; }
.nxf-ab-by b { display: block; font-size: 14px; color: #121212; }
.nxf-ab-by b a, .nxf-ab-by b a:visited { color: #121212; text-decoration: none; }
.nxf-ab-by small { color: #6B665E; font-size: 12px; }
.nxf-ab-sum, .nxf-ab-take, .nxf-ab-desc { margin-top: 16px; }
.nxf-ab-sum { background: #F7F3EC; border-radius: 14px; padding: 12px 14px; }
.nxf-ab-sum > b, .nxf-ab-take > b, .nxf-ab-desc > b { display: block; font: 700 12px/1.2 -apple-system, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #8A847A; margin-bottom: 6px; }
.nxf-ab-b p { margin: 0 0 8px; color: #2B2722; line-height: 1.5; }
.nxf-ab-sum ul { margin: 6px 0 0 18px; padding: 0; color: #2B2722; }
.nxf-ab-sum li { margin: 3px 0; }
.nxf-ab-take h3 { font-size: 16px; margin: 10px 0 4px; }
.nxf-ab-take a { color: #C2410C; }
.nxf-ab-video { position: relative; margin-top: 16px; aspect-ratio: 16 / 9; background: #121212; border-radius: 14px; overflow: hidden; cursor: pointer; }
.nxf-ab-video.nxf-ab-hero { margin-top: 0; border-radius: 0; }
.nxf-ab-video.is-tall { aspect-ratio: 9 / 16; max-width: 320px; margin-left: auto; margin-right: auto; }
.nxf-ab-video img, .nxf-ab-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.nxf-ab-play { position: absolute; left: 50%; top: 50%; width: 62px; height: 62px; margin: -31px 0 0 -31px; border-radius: 50%; background: rgba(18,18,18,.75); color: #fff; display: flex; align-items: center; justify-content: center; }
.nxf-ab-play svg { width: 28px; height: 28px; margin-left: 3px; }
.nxf-ab-photos { display: grid; gap: 6px; margin-top: 16px; grid-template-columns: 1fr 1fr; }
.nxf-ab-photos.n1 { grid-template-columns: 1fr; }
.nxf-ab-photos a { display: block; border-radius: 12px; overflow: hidden; background: #F1ECE3; }
.nxf-ab-photos img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.nxf-ab-more { color: #8A847A; font-size: 13px; margin-top: 14px !important; }
.nxf-ab-stats { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 18px; padding-top: 14px; border-top: 1px solid #F1ECE3; color: #6B665E; font-size: 13px; }
.nxf-ab-stats b { color: #121212; }
.nxf a.nxf-ab-page, .nxf a.nxf-ab-page:visited { display: block; text-align: center; margin-top: 16px; padding: 12px; border-radius: 999px; border: 1px solid #E3DCCF; color: #121212; font-weight: 700; text-decoration: none; }
.nxf a.nxf-ab-page:hover { border-color: #121212; }
/* Phones: one Info button opens About and Comments, so the bar stays roomy. */
@media (max-width: 760px) {
  .nxf-about-t { display: none; }
  .nxf-acts .nxf-talk { display: none; }
  .nxf-ab-b { padding: 14px 14px calc(22px + env(safe-area-inset-bottom)); }
}

/* 0.20.73: Like and Save answer the moment they are pressed. */
.nxf-btn.is-busy { pointer-events: none; }
.nxf-btn.nxf-pop { animation: nxfPop .32s ease; }
@keyframes nxfPop { 0% { transform: scale(1); } 40% { transform: scale(1.18); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .nxf-btn.nxf-pop { animation: none; } }
