/* Ohmify — design system on top of PicoCSS.
   Palette and type follow the ohmify.com dashboard / learning-tracks templates. */

/* ── Tokens ──────────────────────────────────────────────────────────────── */

:root {
  --oh-orange:        #F7A541;
  --oh-orange-hover:  #F79B29;
  --oh-orange-soft:   #FEF3E4;
  --oh-teal:          #114B5F;
  --oh-teal-hover:    #2D3142;
  --oh-coral:         #E86B59;
  --oh-slate:         #404660;
  --oh-slate-hover:   #353A4F;
  --oh-navy:          #2D3142;

  --oh-bg:            #F4F4F4;
  --oh-band:          #E7E8EB;
  --oh-surface:       #FFFFFF;
  --oh-surface-hover: #F9F9F9;
  --oh-surface-sunk:  #F9F9F9;
  --oh-text:          #2F3035;
  --oh-heading:       #2D3142;
  --oh-subtle:        #404660;
  --oh-muted:         #868A9C;
  --oh-border:        #E7E8EB;
  --oh-divider:       #F0F0F0;
  --oh-link:          #114B5F;
  --oh-title:         #114B5F;
  --oh-track-bar:     #E7E8EB;
  --oh-label:         #2D3142;
  --oh-shadow:        0 1px 2px rgba(0, 0, 0, 0.08);
  --oh-shadow-raised: 0 2px 12px rgba(0, 0, 0, 0.08);
  --oh-logo-filter:   none;

  --oh-radius-sm: 4px;
  --oh-radius:    8px;
  --oh-radius-lg: 12px;
}

:root[data-theme="dark"] {
  --oh-label:         #4A5172;
  --oh-orange-soft:   rgba(247, 165, 65, 0.14);
  --oh-bg:            #1D202C;
  --oh-band:          #262A39;
  --oh-surface:       #2A2E3E;
  --oh-surface-hover: #313649;
  --oh-surface-sunk:  #242837;
  --oh-text:          #E3E4EA;
  --oh-heading:       #F4F4F6;
  --oh-subtle:        #C3C6D3;
  --oh-muted:         #959AAE;
  --oh-border:        #383D51;
  --oh-divider:       #343949;
  --oh-link:          #F7A541;
  --oh-title:         #F4F4F6;
  --oh-track-bar:     #3A3F54;
  --oh-shadow:        0 1px 2px rgba(0, 0, 0, 0.3);
  --oh-shadow-raised: 0 2px 12px rgba(0, 0, 0, 0.35);
  --oh-logo-filter:   invert(1) hue-rotate(180deg) brightness(1.15);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --oh-label:         #4A5172;
    --oh-orange-soft:   rgba(247, 165, 65, 0.14);
    --oh-bg:            #1D202C;
    --oh-band:          #262A39;
    --oh-surface:       #2A2E3E;
    --oh-surface-hover: #313649;
    --oh-surface-sunk:  #242837;
    --oh-text:          #E3E4EA;
    --oh-heading:       #F4F4F6;
    --oh-subtle:        #C3C6D3;
    --oh-muted:         #959AAE;
    --oh-border:        #383D51;
    --oh-divider:       #343949;
    --oh-link:          #F7A541;
    --oh-title:         #F4F4F6;
    --oh-track-bar:     #3A3F54;
    --oh-shadow:        0 1px 2px rgba(0, 0, 0, 0.3);
    --oh-shadow-raised: 0 2px 12px rgba(0, 0, 0, 0.35);
    --oh-logo-filter:   invert(1) hue-rotate(180deg) brightness(1.15);
  }
}

/* Pico's theme selectors are (0,2,0); :root:root matches that and loads later. */
:root:root {
  --pico-font-family:                    'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pico-font-size:                      100%;
  --pico-line-height:                    1.55;
  --pico-border-radius:                  var(--oh-radius);
  --pico-background-color:               var(--oh-bg);
  --pico-color:                          var(--oh-text);
  --pico-h1-color:                       var(--oh-heading);
  --pico-h2-color:                       var(--oh-heading);
  --pico-h3-color:                       var(--oh-heading);
  --pico-h4-color:                       var(--oh-heading);
  --pico-h5-color:                       var(--oh-heading);
  --pico-h6-color:                       var(--oh-heading);
  --pico-muted-color:                    var(--oh-muted);
  --pico-muted-border-color:             var(--oh-border);
  --pico-card-background-color:          var(--oh-surface);
  --pico-card-sectioning-background-color: var(--oh-surface-sunk);
  --pico-primary:                        var(--oh-link);
  --pico-primary-hover:                  var(--oh-orange-hover);
  --pico-primary-underline:              transparent;
  --pico-primary-hover-underline:        currentColor;
  --pico-primary-background:             var(--oh-teal);
  --pico-primary-border:                 var(--oh-teal);
  --pico-primary-hover-background:       var(--oh-navy);
  --pico-primary-hover-border:           var(--oh-navy);
  --pico-primary-focus:                  rgba(247, 165, 65, 0.35);
  --pico-primary-inverse:                #FFFFFF;
  --pico-secondary:                      var(--oh-subtle);
  --pico-form-element-background-color:  var(--oh-surface);
  --pico-form-element-border-color:      var(--oh-border);
  --pico-form-element-focus-color:       var(--oh-orange);
  --pico-form-element-placeholder-color: var(--oh-muted);
  --pico-code-background-color:          var(--oh-surface-sunk);
  --pico-blockquote-border-color:        var(--oh-border);
  --pico-spacing:                        1rem;
  --pico-typography-spacing-vertical:    1rem;
}

body { background: var(--oh-bg); }

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.01em; }

/* Buttons follow ohmify btn-style2: teal, small caps-ish */
button:not(.icon-btn):not(.reaction-btn),
[role="button"],
input[type="submit"] {
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.65rem 1.1rem;
  border-radius: var(--oh-radius-sm);
}

/* ── Header ──────────────────────────────────────────────────────────────── */

body > .site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--oh-surface);
  box-shadow: var(--oh-shadow-raised);
  padding: 0;
}

.site-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand__logo {
  height: 32px;
  width: auto;
  filter: var(--oh-logo-filter);
}

.brand__tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--oh-subtle);
  padding-left: 0.75rem;
  border-left: 1px solid var(--oh-border);
  line-height: 1.6;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--oh-subtle);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.icon-btn:hover,
.icon-btn:focus-visible {
  background: var(--oh-surface-hover);
  color: var(--oh-heading);
}

.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme]) .theme-toggle .icon-moon { display: none; }
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: 0.4rem;
  padding: 4px 16px 4px 4px;
  border-radius: 999px;
  background: var(--oh-slate);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: background 0.2s;
}

.user-pill:hover { background: var(--oh-navy); color: #FFFFFF; }

/* The account menu (site-header.ejs): the pill opens a small panel */
/* Pico gives every details a bottom margin, which would lift the pill above the icons beside it */
.user-menu { position: relative; margin: 0; }
.user-menu > summary { list-style: none; cursor: pointer; margin: 0; }
/* Pico colours a summary by state (details[open] > summary:not([role]):not(:focus) and the like): the :not(#_) lifts
   this over all of them, so the pill keeps its white text */
.user-menu > summary.user-pill:not(#_) { color: #FFFFFF; }
.user-menu > summary.user-pill:hover:not(#_), .user-menu[open] > summary.user-pill:not(#_) { background: var(--oh-navy); }
.user-menu > summary::-webkit-details-marker { display: none; }
.user-menu > summary::after { display: none; }
.user-menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  min-width: 210px;
  padding: 6px;
  background: var(--oh-surface);
  border-radius: var(--oh-radius-lg);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
  z-index: 1000;
}
.user-menu__panel a,
.user-menu__panel button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.55rem 0.8rem;
  border: 0;
  border-radius: var(--oh-radius);
  background: none;
  color: var(--oh-text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.user-menu__panel a:hover,
.user-menu__panel button:hover { background: var(--oh-surface-hover); color: var(--oh-heading); }
.user-menu__panel form { margin: 4px 0 0; padding-top: 4px; border-top: 1px solid var(--oh-divider); }
/* Log out is a form button: the site's button rules (capitals, spacing) are lifted off it like the links beside it */
.user-menu__panel button:not(#_) { letter-spacing: normal; text-transform: none; font-size: 0.9rem; font-weight: 600; padding: 0.55rem 0.8rem; }

.user-pill__avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  object-fit: cover;
}

.user-pill__avatar--empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--oh-orange);
  color: var(--oh-navy);
  font-size: 0.8rem;
  font-weight: 800;
}

.btn-pill {
  display: inline-block;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  background: var(--oh-orange);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}

.btn-pill:hover { background: var(--oh-orange-hover); color: #FFFFFF; }
/* Log in beside Become a member (logged out): the same pill, quieter */
.btn-pill--quiet { background: transparent; color: var(--oh-heading); box-shadow: inset 0 0 0 1px var(--oh-border); }
.btn-pill--quiet:hover { background: var(--oh-surface-hover); color: var(--oh-heading); }

/* ── Notifications ───────────────────────────────────────────────────────── */

.notif-wrap { position: relative; }

#notif-badge {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--oh-coral);
  color: #FFFFFF;
  font-size: 0.6875rem;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}

#notif-badge[hidden] { display: none; }

.notification-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  width: 340px;
  background: var(--oh-surface);
  border-radius: var(--oh-radius-lg);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
  z-index: 1000;
  max-height: 420px;
  overflow-y: auto;
}

.notification-dropdown:empty { display: none; }

.notification-item {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--oh-divider);
  text-decoration: none;
  color: var(--oh-text);
  font-size: 0.875rem;
}

.notification-item:last-child { border-bottom: none; }
.notification-item.unread { background: var(--oh-orange-soft); font-weight: 600; }
.notification-item:hover { background: var(--oh-surface-hover); }

.notif-icon { font-size: 1.1rem; flex-shrink: 0; }
.notif-text { flex: 1; }
.notif-time { white-space: nowrap; margin-left: auto; color: var(--oh-muted); font-size: 0.75rem; }

/* ── Page layout ─────────────────────────────────────────────────────────── */

.page-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 40px 80px;
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.main-content {
  flex: 1;
  min-width: 0;
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 24px;
}

.page-head [role="button"] { margin-bottom: 0.25rem; white-space: nowrap; }

.page-title {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  color: var(--oh-heading);
}

.page-description {
  margin: 0.4rem 0 0;
  color: var(--oh-subtle);
  font-size: 0.9375rem;
}

/* ohmify .section-title */
.section-title {
  display: inline-block;
  margin: 0 0 20px;
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--oh-heading);
}

/* ohmify .link-style1 — "Show all" style */
.section-link {
  display: inline-block;
  margin-left: 20px;
  font-weight: 700;
  color: var(--oh-orange);
  text-decoration: none;
}

.section-link:hover { color: var(--oh-orange-hover); }

.panel {
  background: var(--oh-surface);
  border-radius: var(--oh-radius-lg);
  box-shadow: var(--oh-shadow);
  padding: 28px 32px;
  margin-bottom: 24px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--oh-muted);
}

.crumbs a { color: var(--oh-subtle); text-decoration: none; }
.crumbs a:hover { color: var(--oh-orange); }

/* ── Sidebar ─────────────────────────────────────────────────────────────── */

.forum-sidebar {
  width: 248px;
  flex-shrink: 0;
  position: sticky;
  top: 104px;
  max-height: calc(100vh - 128px);
  overflow-y: auto;
  border-radius: var(--oh-radius-lg);
  background: var(--oh-surface);
  box-shadow: var(--oh-shadow);
  padding: 8px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--oh-border) transparent;
}

.sidebar-forums-section { margin: 0; }

.sidebar-forums-section > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.25rem 0.5rem;
  margin: 0;
}

.sidebar-forums-section > summary::-webkit-details-marker { display: none; }
.sidebar-forums-section > summary::after { display: none; }

.sidebar-forums-toggle {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--oh-muted);
}

.sidebar-chevron {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid var(--oh-muted);
  border-bottom: 2px solid var(--oh-muted);
  transform: rotate(45deg);
  transition: transform 0.2s;
  margin-top: -3px;
}

.sidebar-forums-section[open] .sidebar-chevron { transform: rotate(-135deg); margin-top: 3px; }

/* Tile colours for the forum icons */
:root {
  --sf-orange-bg: var(--oh-orange-soft);   --sf-orange-fg: #C9771A;
  --sf-teal-bg:   #E2EDF0;                 --sf-teal-fg:   var(--oh-teal);
  --sf-coral-bg:  #FCE8E5;                 --sf-coral-fg:  #C4503F;
  --sf-slate-bg:  #ECEDF2;                 --sf-slate-fg:  var(--oh-slate);
  --sf-navy-bg:   var(--oh-band);          --sf-navy-fg:   var(--oh-navy);
  --sf-new-bg:    var(--oh-teal);          --sf-new-fg:    #FFFFFF;
}
:root[data-theme="dark"] {
  --sf-orange-fg: var(--oh-orange);
  --sf-teal-bg:  rgba(94, 178, 204, 0.16);  --sf-teal-fg:  #7CC4DA;
  --sf-coral-bg: rgba(232, 107, 89, 0.16);  --sf-coral-fg: #F0907F;
  --sf-slate-bg: rgba(195, 198, 211, 0.12); --sf-slate-fg: var(--oh-subtle);
  --sf-navy-fg:  var(--oh-heading);
  --sf-new-bg:   var(--oh-orange);          --sf-new-fg:   var(--oh-navy);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --sf-orange-fg: var(--oh-orange);
    --sf-teal-bg:  rgba(94, 178, 204, 0.16);  --sf-teal-fg:  #7CC4DA;
    --sf-coral-bg: rgba(232, 107, 89, 0.16);  --sf-coral-fg: #F0907F;
    --sf-slate-bg: rgba(195, 198, 211, 0.12); --sf-slate-fg: var(--oh-subtle);
    --sf-navy-fg:  var(--oh-heading);
    --sf-new-bg:   var(--oh-orange);          --sf-new-fg:   var(--oh-navy);
  }
}

.sidebar-forum-list { list-style: none; padding: 0 8px 6px; margin: 0; }
/* Pico pads every `aside li` by 8px, which made each row 48px tall: the link does the spacing */
.sidebar-forum-list li { margin: 1px 0; padding: 0; list-style: none; }

.sidebar-forum-list li a.sf-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 8px;
  border-radius: var(--oh-radius);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  color: var(--oh-subtle);
  transition: background 0.15s, color 0.15s;
}

.sidebar-forum-list li a.sf-link:hover { background: var(--oh-surface-hover); color: var(--oh-heading); }
.sidebar-forum-list li a.sf-link:hover .sf-icon { transform: scale(1.06); }

/* The current forum: a filled row and a solid tile */
.sidebar-forum-list li a.sf-link.active { background: var(--oh-orange-soft); color: var(--oh-heading); font-weight: 700; }
.sidebar-forum-list a.sf-link.active .sf-icon { background: var(--oh-orange); color: #FFFFFF; }

.sf-icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  font-size: 0.8125rem;
  font-weight: 800;
  transition: transform 0.15s, background 0.15s, color 0.15s;
}
.sf-icon--orange { background: var(--sf-orange-bg); color: var(--sf-orange-fg); }
.sf-icon--teal   { background: var(--sf-teal-bg);   color: var(--sf-teal-fg); }
.sf-icon--coral  { background: var(--sf-coral-bg);  color: var(--sf-coral-fg); }
.sf-icon--slate  { background: var(--sf-slate-bg);  color: var(--sf-slate-fg); }
.sf-icon--navy   { background: var(--sf-navy-bg);   color: var(--sf-navy-fg); }

.sf-name { flex: 1; min-width: 0; }

/* A section heading (Module 20 § Forums) */
.sidebar-forum-list li.sf-group {
  margin: 0;
  padding: 16px 10px 6px;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--oh-muted);
}

/* Topics new since the last visit */
.sf-new {
  flex-shrink: 0;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--sf-new-bg);
  color: var(--sf-new-fg);
  font-size: 0.6875rem;
  font-weight: 800;
}

/* A forum the member's products don't open */
.sf-lock { flex-shrink: 0; display: inline-flex; color: var(--oh-muted); }
.sidebar-forum-list a.sf-link.is-locked { color: var(--oh-muted); }
.sidebar-forum-list a.sf-link.is-locked .sf-icon { filter: grayscale(1); opacity: 0.6; }

/* ── Right column (feed and forum pages, from 1440px; Module 4 § Right column) ─ */

.community-rail { display: none; }

@media (min-width: 1440px) {
  .has-rail .page-layout,
  .has-rail .site-header__inner { max-width: 1480px; }
  .community-rail {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 300px;
    flex-shrink: 0;
  }
}

.rail-card {
  margin: 0;
  padding: 16px 18px 18px;
  border-radius: var(--oh-radius-lg);
  background: var(--oh-surface);
  box-shadow: var(--oh-shadow);
}

.rail-card h2 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 0 12px;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--oh-muted);
}
.rail-card h2 a { font-size: 0.75rem; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--oh-link); text-decoration: none; }
.rail-card a[role="button"] { display: block; width: 100%; margin-top: 12px; padding: 8px 12px; font-size: 0.8125rem; text-align: center; }

/* Continue learning */
.rail-course { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.rail-course__thumb {
  flex: 0 0 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--oh-orange-soft);
  color: var(--oh-orange);
}
.rail-course__title { display: block; font-size: 0.9375rem; font-weight: 800; line-height: 1.25; color: var(--oh-heading); text-decoration: none; }
.rail-course__title:hover { color: var(--oh-orange); }
.rail-course__meta { margin-top: 2px; font-size: 0.75rem; font-weight: 600; color: var(--oh-muted); }
.rail-next { display: block; margin-top: 12px; font-size: 0.8125rem; color: var(--oh-subtle); }
.rail-next strong { display: block; font-size: 0.875rem; color: var(--oh-heading); }

/* About (guests) */
.rail-about p { margin: 0; font-size: 0.875rem; color: var(--oh-subtle); }

/* Circuit of the day */
.rail-circuit__pic { display: block; overflow: hidden; border: 1px solid var(--oh-border); border-radius: var(--oh-radius); background: #FFFFFF; }
.rail-circuit__pic img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.rail-circuit__title { display: block; margin-top: 10px; font-weight: 800; color: var(--oh-heading); text-decoration: none; }
.rail-circuit__title:hover { color: var(--oh-orange); }
.rail-circuit__desc { margin: 4px 0 6px; font-size: 0.8125rem; line-height: 1.45; color: var(--oh-subtle); }
.rail-circuit__parts { font-size: 0.75rem; font-weight: 600; color: var(--oh-muted); }

/* From the workbench */
.rail-workbench { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rail-workbench a { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--oh-radius); background: var(--oh-surface-hover); }
.rail-workbench img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.2s; }
.rail-workbench a:hover img { transform: scale(1.04); }
.rail-workbench span {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  color: #FFFFFF;
  font-size: 0.6875rem;
  font-weight: 700;
}

/* Your next rank */
.rail-rank__row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.rail-rank__row div { flex: 1; display: flex; flex-direction: column; }
.rail-rank__row strong { color: var(--oh-heading); }
.rail-rank__row span { font-size: 0.75rem; font-weight: 600; color: var(--oh-muted); }
.rail-rank__next { opacity: 0.45; filter: grayscale(1); }
.rail-rank .progress-label strong { color: var(--oh-heading); }

/* ── Avatars, labels, meta ───────────────────────────────────────────────── */

.avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 999px;
  object-fit: cover;
}

.avatar--empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--oh-slate);
  color: #FFFFFF;
  font-size: 0.875rem;
  font-weight: 800;
}

/* ohmify .btn-style1 — small dark label */
.label {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--oh-radius-sm);
  background: var(--oh-label);
  color: #FFFFFF;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.6;
  text-decoration: none;
}

a.label:hover { background: var(--oh-teal); color: #FFFFFF; }
.label--accent { background: var(--oh-orange); color: var(--oh-navy); }
.label--muted { background: var(--oh-band); color: var(--oh-subtle); }
.label--new { background: var(--oh-teal); color: #FFFFFF; }

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.9rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--oh-muted);
}

.meta__author { color: var(--oh-subtle); font-weight: 700; }

/* ── Sort selector above a topic list ────────────────────────────────────── */

.sort-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 16px;
  background: var(--oh-surface);
  border-radius: 999px;
  box-shadow: var(--oh-shadow);
}

.sort-tab {
  padding: 6px 16px 6px 12px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--oh-subtle);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.sort-tab:hover { background: var(--oh-surface-hover); color: var(--oh-title); }
.sort-tab.active { background: var(--oh-orange-soft); color: var(--oh-title); }

/* Each sort's icon has its own colour, fills in when active and wiggles on hover */
.sort-tab { display: inline-flex; align-items: center; gap: 6px; }
.sort-tab--hot { --sort-icon: var(--oh-coral); }
.sort-tab--new { --sort-icon: #8B5CF6; }
.sort-tab--top { --sort-icon: #F2B705; }

.sort-tab__icon {
  flex-shrink: 0;
  color: var(--sort-icon);
  transform-origin: 50% 70%;
  transition: transform 0.2s;
}

.sort-tab.active .sort-tab__icon { fill: var(--sort-icon); }
.sort-tab.active .sort-tab__spark { fill: none; }

.sort-tab:hover .sort-tab__icon { animation: sort-icon-wiggle 0.5s ease-in-out; }
.sort-tab.active .sort-tab__icon { transform: scale(1.1); }

@keyframes sort-icon-wiggle {
  0%, 100% { transform: rotate(0) scale(1.1); }
  25%      { transform: rotate(-12deg) scale(1.2); }
  75%      { transform: rotate(10deg) scale(1.2); }
}

@media (prefers-reduced-motion: reduce) {
  .sort-tab:hover .sort-tab__icon { animation: none; }
}

/* ── Topic cards (ohmify .s-post) ────────────────────────────────────────── */

.topic-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px 24px;
  margin-bottom: 12px;
  background: var(--oh-surface);
  border-radius: var(--oh-radius);
  box-shadow: var(--oh-shadow);
  transition: background 0.2s, box-shadow 0.2s;
}

.topic-card:hover { background: var(--oh-surface-hover); }

.topic-card .avatar { margin-top: 2px; }

.topic-card__body { flex: 1; min-width: 0; }

.topic-card__labels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.topic-title {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--oh-title);
  text-decoration: none;
  margin-bottom: 4px;
}

.topic-title:hover { color: var(--oh-orange); }

.topic-preview {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--oh-subtle);
  margin: 4px 0 10px;
  overflow-wrap: anywhere;
  max-height: 9rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.topic-preview > * { margin-top: 0; margin-bottom: 0.3rem; font-size: inherit; }
.topic-preview > *:last-child { margin-bottom: 0; }
.topic-preview a { color: inherit; }

.topic-preview img {
  max-width: 100%;
  max-height: 7rem;
  height: auto;
  border-radius: var(--oh-radius-sm);
  object-fit: cover;
  display: block;
  margin-bottom: 0.3rem;
}

.topic-preview iframe {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 16 / 9;
  height: auto;
  border: none;
  border-radius: var(--oh-radius-sm);
  display: block;
}

/* Feed cards: the topic's first image, large, between title and excerpt */
.topic-card__media {
  position: relative;
  display: block;
  margin: 8px 0 10px;
  border-radius: var(--oh-radius-sm);
  overflow: hidden;
  background: #000;   /* fills the sides of an image or video narrower than the card, as Reddit does */
}

/* Capped so one image doesn't fill the screen: the whole image shows, never cropped or enlarged,
   centred on the black frame. White behind it, so a transparent PNG's dark lines still show. */
.topic-card__media img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 22rem;
  margin: 0 auto;
  background: #fff;
}

.topic-card__media-count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3);   /* still visible on the black filler */
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
}

.topic-card__media--video iframe {
  display: block;
  width: 100%;
  max-width: calc(22rem * 16 / 9);   /* the same height cap as images */
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border: 0;
}

.topic-card__video-credit {
  display: block;
  margin: -4px 0 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--oh-muted);
  text-decoration: none;
}

.topic-card__video-credit:hover { color: var(--oh-orange); }

.topic-card__media-credit {
  position: absolute;
  left: 10px;
  bottom: 10px;
  max-width: calc(100% - 80px);
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Feed cards: reaction buttons and the latest reply */
.topic-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 12px;
}

.topic-card__footer .reaction-bar { margin-top: 0; gap: 4px; }
.topic-card__footer .reaction-bar .reaction-btn { padding: 1px 8px; font-size: 0.8125rem; }

.topic-card__last-reply {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--oh-muted);
  text-decoration: none;
}

.topic-card__last-reply strong { color: var(--oh-subtle); }
.topic-card__last-reply:hover strong { color: var(--oh-orange); }

.topic-card .avatar--xs,
.avatar--xs {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: 0;
  font-size: 0.625rem;
}


/* Infinite scroll: what loads the next page of topics as it scrolls into view */
.load-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--oh-muted);
  cursor: pointer;
}

.load-more__spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--oh-border);
  border-top-color: var(--oh-orange);
  border-radius: 50%;
  animation: load-more-spin 0.8s linear infinite;
}

@keyframes load-more-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) { .load-more__spinner { animation: none; } }

/* ── Topic page ──────────────────────────────────────────────────────────── */

.topic-post {
  background: var(--oh-surface);
  border-radius: var(--oh-radius-lg);
  box-shadow: var(--oh-shadow);
  padding: 32px 36px 24px;
  margin-bottom: 40px;
}

.topic-post__head {
  margin: 0 0 24px;
  padding: 0 0 20px;
  background: transparent;
  border-radius: 0;
  border-bottom: 1px solid var(--oh-divider);
}

.topic-post__head h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 16px;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.post-author > div { display: flex; flex-direction: column; line-height: 1.3; }

.post-author__name {
  font-weight: 700;
  color: var(--oh-heading);
  text-decoration: none;
}

.post-author__name:hover { color: var(--oh-orange); }

.post-author__date { font-size: 0.8125rem; font-weight: 600; color: var(--oh-muted); }

.reply-card {
  background: var(--oh-surface);
  border-radius: var(--oh-radius);
  box-shadow: var(--oh-shadow);
  padding: 20px 24px 16px;
  margin-bottom: 12px;
}

.reply-card .post-author { margin-bottom: 12px; }

.parent-quote {
  margin: 0 0 12px;
  padding: 8px 14px;
  border-left: 3px solid var(--oh-orange);
  border-radius: 0 var(--oh-radius-sm) var(--oh-radius-sm) 0;
  background: var(--oh-surface-sunk);
  font-size: 0.875rem;
  color: var(--oh-subtle);
}

.reply-form { margin-top: 32px; }
.reply-form label { font-weight: 700; font-size: 0.875rem; color: var(--oh-subtle); }

/* ── Markdown ────────────────────────────────────────────────────────────── */

.markdown-body { font-size: 1rem; line-height: 1.65; color: var(--oh-text); overflow-wrap: anywhere; }
.markdown-body > :last-child { margin-bottom: 0; }
.markdown-body a { color: var(--oh-link); text-decoration: underline; text-underline-offset: 2px; }
.markdown-body a:hover { color: var(--oh-orange); }
.markdown-body img { max-width: 100%; height: auto; border-radius: var(--oh-radius-sm); }
.markdown-body iframe { max-width: 100%; border: none; border-radius: var(--oh-radius-sm); }

.markdown-body pre {
  background: var(--oh-navy);
  color: #E7E8EB;
  padding: 1rem 1.25rem;
  border-radius: var(--oh-radius);
  overflow-x: auto;
}

.markdown-body pre code { background: none; color: inherit; padding: 0; }

.markdown-body blockquote {
  margin: 1rem 0;
  padding: 0.5rem 1rem;
  border-left: 3px solid var(--oh-border);
  color: var(--oh-subtle);
}

.markdown-preview {
  border: 1px solid var(--oh-border);
  border-radius: var(--oh-radius);
  padding: 0.75rem 1rem;
  min-height: 200px;
  background: var(--oh-surface-sunk);
  overflow-y: auto;
}

/* ── Reactions ───────────────────────────────────────────────────────────── */

.reaction-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 14px;
}

.reaction-bar .reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 3px 10px;
  border: 1px solid var(--oh-border);
  border-radius: 999px;
  background: var(--oh-surface);
  color: var(--oh-text);
  font-size: 0.875rem;
  line-height: 1.5;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.reaction-bar .reaction-btn:hover { background: var(--oh-surface-hover); border-color: var(--oh-muted); }

.reaction-bar .reaction-btn.active {
  background: var(--oh-orange-soft);
  border-color: var(--oh-orange);
}

.reaction-count { font-weight: 700; font-size: 0.8125rem; }
.reaction-bar .reaction-total { font-size: 0.8125rem; font-weight: 600; color: var(--oh-muted); margin-left: 4px; }

/* ── Messages ────────────────────────────────────────────────────────────── */

.conversation-card {
  display: block;
  padding: 16px 20px;
  margin-bottom: 10px;
  border-radius: var(--oh-radius);
  background: var(--oh-surface);
  box-shadow: var(--oh-shadow);
  color: var(--oh-text);
  text-decoration: none;
  transition: background 0.2s;
}

.conversation-card:hover { background: var(--oh-surface-hover); }
.conversation-card.unread { font-weight: 700; box-shadow: inset 3px 0 0 var(--oh-orange), var(--oh-shadow); }

.unread-badge {
  background: var(--oh-orange);
  color: var(--oh-navy);
  border-radius: 999px;
  padding: 0 7px;
  font-size: 0.75rem;
  font-weight: 800;
}

.message-thread {
  max-height: 60vh;
  overflow-y: auto;
  padding: 20px;
  border-radius: var(--oh-radius-lg);
  background: var(--oh-surface);
  box-shadow: var(--oh-shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.message-card {
  max-width: 70%;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--oh-surface-sunk);
  border: 1px solid var(--oh-divider);
}

.message-card.mine {
  align-self: flex-end;
  background: var(--oh-orange-soft);
  border-color: transparent;
}

.message-card.theirs { align-self: flex-start; }

.message-meta {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--oh-muted);
}

/* ── Profile badges ──────────────────────────────────────────────────────── */

.badge-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: var(--oh-surface-sunk);
  border: 1px solid var(--oh-divider);
  font-size: 0.875rem;
  font-weight: 600;
}

/* ── Utility ─────────────────────────────────────────────────────────────── */

.muted { color: var(--oh-muted); }
.active-sort { font-weight: 700; }

/* ── Learning components (library, courses, tracks, dashboard) ───────────── */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

/* Progress bar — ohmify .progress */
.progress {
  width: 100%;
  height: 8px;
  border-radius: 10px;
  background: var(--oh-track-bar);
  overflow: hidden;
}

.progress__bar { height: 100%; background: var(--oh-orange); border-radius: 10px; }

.progress-label {
  display: block;
  padding-top: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--oh-subtle);
}

/* Course card — ohmify .owl-carousel-style1 .item */
.course-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--oh-radius);
  overflow: hidden;
  background: var(--oh-surface);
  box-shadow: var(--oh-shadow);
  text-decoration: none;
  color: var(--oh-text);
  transition: box-shadow 0.2s, transform 0.2s;
}

.course-card:hover { box-shadow: var(--oh-shadow-raised); transform: translateY(-2px); }

.course-card__img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  background: var(--oh-band);
}

.course-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.course-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.33;
  color: var(--oh-subtle);
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.66em;
}

.course-card__meta { font-size: 0.8125rem; font-weight: 600; color: var(--oh-muted); margin-top: auto; }

/* Track tile — ohmify .columns-style-1 .column. The only dark-slate surface. */
.track-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  min-height: 320px;
  padding: 36px 32px;
  border-radius: var(--oh-radius);
  background: var(--oh-slate);
  color: #FFFFFF;
  text-decoration: none;
  transition: background 0.2s;
}

.track-tile:hover { background: var(--oh-slate-hover); color: #FFFFFF; }
.track-tile__icon { width: 80px; height: 92px; object-fit: contain; margin-bottom: 8px; }
.track-tile__title { font-size: 1.125rem; font-weight: 700; line-height: 1.33; color: #FFFFFF; }
.track-tile .progress { margin-top: auto; background: rgba(255, 255, 255, 0.12); }
.track-tile .progress-label { color: #F9F9F9; }

/* Page band — ohmify .list-roadmaps-section-1 */
.page-band {
  background: var(--oh-band);
  padding: 28px 0;
}

.page-band__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Filter chips for the library */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }

.chip {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--oh-surface);
  box-shadow: var(--oh-shadow);
  color: var(--oh-subtle);
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
}

.chip:hover { color: var(--oh-heading); }
.chip.active { background: var(--oh-orange); color: #FFFFFF; }

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .site-header__inner { padding: 0 16px; height: 64px; }
  .page-band__inner { padding: 0 16px; }
  .brand__logo { height: 26px; }
  .user-pill__name { display: none; }
  .user-pill { padding: 4px; }

  .page-layout {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 16px 16px 48px;
  }

  .brand__tag { font-size: 0.6875rem; padding-left: 0.6rem; }

  .forum-sidebar {
    width: 100%;
    position: static;
    max-height: none;
    padding: 6px;
  }

  .sidebar-forums-section > summary { padding: 0.4rem 0.6rem; }

  .sidebar-forum-list {
    display: flex;
    gap: 6px;
    padding: 0 0.4rem 0.4rem;
    overflow-x: auto;
    scrollbar-width: none;
    /* A fade on the right edge shows the row scrolls */
    -webkit-mask-image: linear-gradient(to right, #000 85%, transparent);
            mask-image: linear-gradient(to right, #000 85%, transparent);
  }
  .sidebar-forum-list li { flex-shrink: 0; margin: 0; }
  .sidebar-forum-list li.sf-group { display: none; }
  .sidebar-forum-list li a.sf-link {
    gap: 6px;
    padding: 0.25rem 0.7rem 0.25rem 0.3rem;
    border: 1px solid var(--oh-border);
    border-radius: 999px;
    font-size: 0.8125rem;
    white-space: nowrap;
  }
  .sidebar-forum-list li a.sf-link.active { border-color: var(--oh-orange); }
  .sf-icon { flex-basis: 22px; width: 22px; height: 22px; border-radius: 999px; font-size: 0.6875rem; }
  .sf-icon svg { width: 13px; height: 13px; }
  .sf-new { min-width: 18px; height: 18px; font-size: 0.625rem; }

  .page-head { flex-direction: column; align-items: stretch; }
  .page-title { font-size: 1.75rem; }

  .topic-card { padding: 16px; }
  .topic-card > .avatar { display: none; }
  .topic-post { padding: 22px 18px 18px; }
  .topic-post__head h1 { font-size: 1.5rem; }
  .reply-card { padding: 16px; }
  .panel { padding: 20px; }
  .reply-form form > div { grid-template-columns: 1fr !important; }
}

/* ── Compose form ────────────────────────────────────────────────────────── */

.compose-forum { color: var(--oh-muted); }
/* A question asked from a course or lesson page (Module 24), and a retired course thread */
.asked-from { margin: -4px 0 12px; color: var(--oh-muted); font-size: 0.9375rem; }
.asked-from a { font-weight: 700; }
.retired-thread { margin: 0 0 20px; padding: 14px 18px; border-radius: var(--oh-radius-sm); border-left: 4px solid var(--oh-orange); background: var(--oh-surface-sunk); }
.retired-thread p { margin: 0; }

/* Submit and cancel side by side, same size (Pico makes form buttons full width) */
.form-actions { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; }
.form-actions > button,
.form-actions > [role="button"] { width: auto; margin: 0; }

/* Markdown editor of the compose forms (views/partials/md-editor.ejs, public/compose.js) */
.md-editor { margin-bottom: var(--pico-spacing); border: 1px solid var(--oh-border); border-radius: var(--oh-radius-sm);
  background: var(--oh-surface); }
.md-editor:focus-within { border-color: var(--oh-orange); }
.md-editor__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem;
  padding: 0.25rem 0.5rem; border-bottom: 1px solid var(--oh-border); }
.md-editor__tabs { display: flex; gap: 0.25rem; }
.md-editor .md-editor__tab { width: auto; margin: 0; padding: 0.35rem 0.75rem; border: none; border-radius: var(--oh-radius-sm);
  background: transparent; color: var(--oh-muted); letter-spacing: 0.05em; transition: none; }
.md-editor .md-editor__tab:hover { color: var(--oh-heading); }
.md-editor .md-editor__tab[aria-selected="true"] { color: var(--oh-heading); box-shadow: inset 0 -2px 0 var(--oh-orange); border-radius: 0; }
.md-editor__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.125rem; }
.md-editor .md-editor__tool { width: 34px; height: 34px; border-radius: var(--oh-radius-sm); }
.md-editor__sep { width: 1px; height: 20px; margin: 0 0.25rem; background: var(--oh-border); }
.md-editor--preview .md-editor__tools { visibility: hidden; }
@media (max-width: 520px) {
  .md-editor .md-editor__tool { width: 32px; height: 32px; }
  .md-editor__sep { display: none; }
  .md-editor__hint { display: none; }
}
.md-editor textarea { display: block; margin: 0; border: none; border-radius: 0; box-shadow: none; resize: vertical;
  font-family: var(--pico-font-family-monospace, ui-monospace, monospace); font-size: 0.9375rem; line-height: 1.55; }
.md-editor textarea:focus { box-shadow: none; }
.md-editor__preview { min-height: 12rem; padding: 0.75rem 1rem; }
.md-editor__empty { color: var(--oh-muted); }
.md-editor__foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1rem;
  padding: 0.35rem 0.75rem; border-top: 1px solid var(--oh-border); }
.md-editor__hint { color: var(--oh-muted); }
.upload-status { font-size: 0.875rem; color: var(--oh-muted); }
.upload-status:empty { display: none; }
.upload-status--error { color: #C0392B; }

.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
