/* Shared pieces injected into every CV theme (owner bar, contact form, signature).
   Prefixed .jo- so they don't collide with theme CSS. Themes may override --jo-accent. */
:root { --jo-accent: #ff9600; }

.jo-owner-bar {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 9999;
  display: flex; flex-wrap: wrap; gap: 4px; align-items: center; justify-content: center;
  max-width: calc(100vw - 24px); padding: 6px 8px; border-radius: 999px;
  background: rgba(24, 28, 50, .92); box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
  font: 500 13px/1.2 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
.jo-owner-bar a, .jo-owner-label { color: #fff; text-decoration: none; padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.jo-owner-label { opacity: .6; }
.jo-owner-bar a:hover, .jo-owner-bar a:focus-visible { background: rgba(255, 255, 255, .14); outline: none; }
.jo-owner-bar .jo-owner-cta { background: var(--jo-accent); }

.jo-contact { max-width: 720px; margin: 3em auto; padding: 0 1em; font-family: inherit; }
.jo-contact-title { font-size: 1.6em; margin: 0 0 .8em; font-weight: 600; }
.jo-contact-note, .jo-contact-ok { padding: 1em; border-radius: 6px; background: rgba(0, 0, 0, .04); }
.jo-contact-ok { border-left: 4px solid #1bc5bd; }
.jo-contact-form { display: grid; gap: .9em; }
.jo-contact-form .jo-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9em; }
@media (max-width: 600px) { .jo-contact-form .jo-row { grid-template-columns: 1fr; } }
.jo-contact-form label { display: grid; gap: .3em; font-size: .9em; font-weight: 600; }
.jo-contact-form input, .jo-contact-form textarea {
  box-sizing: border-box; width: 100%; height: auto; margin: 0; padding: .65em .8em;
  border: 1px solid rgba(0, 0, 0, .2); border-radius: 6px; background: #fff; color: #222;
  font: 400 1em/1.4 inherit; box-shadow: none;
}
.jo-contact-form input:focus, .jo-contact-form textarea:focus { border-color: var(--jo-accent); outline: 2px solid color-mix(in srgb, var(--jo-accent) 30%, transparent); }
.jo-contact-form button {
  justify-self: start; padding: .75em 1.6em; border: 0; border-radius: 6px; cursor: pointer;
  background: var(--jo-accent); color: #fff; font: 600 1em/1 inherit;
}
.jo-contact-form button:hover { filter: brightness(1.08); }
.jo-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.jo-signature { padding: .8em 1em; text-align: center; font-size: 12px; }
.jo-signature a { color: inherit; opacity: .75; text-decoration: none; }
.jo-signature a:hover { opacity: 1; }

@media print { .jo-owner-bar, .jo-contact, .jo-signature { display: none !important; } }

/* Wide screens: CV content sits in a centred sheet instead of stretching edge to edge.
   Themes wrap their page in .cv-frame and may set --cv-max / --cv-backdrop. */
.cv-frame { max-width: var(--cv-max, 1160px); margin-inline: auto; }
@media screen and (min-width: 1240px) {
  body.cv-framed { background: var(--cv-backdrop, #eceff3); }
  body.cv-framed .cv-frame {
    margin-block: 40px; background: #fff; border-radius: 10px; overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .04), 0 24px 60px -20px rgba(0, 0, 0, .18);
  }
}
@media print { .cv-frame { max-width: none; margin: 0; box-shadow: none; border-radius: 0; } }

/* floating share button (all themes) */
.jo-fab { position: fixed; right: 18px; bottom: 18px; z-index: 9998; font: 600 14px/1.2 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
.jo-fab-btn {
  display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.15rem; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--jo-accent); color: #fff; font: inherit; box-shadow: 0 10px 28px -8px rgba(0, 0, 0, .45);
  transition: transform .15s ease, box-shadow .2s ease;
}
.jo-fab-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -8px rgba(0, 0, 0, .5); }
.jo-fab-btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--jo-accent) 40%, white); outline-offset: 2px; }
.jo-fab-menu {
  position: absolute; right: 0; bottom: calc(100% + 10px); min-width: 190px; padding: 6px; border-radius: 12px;
  background: #fff; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .35), 0 0 0 1px rgba(0, 0, 0, .05); display: grid;
}
.jo-fab-menu[hidden] { display: none; }
.jo-fab-menu a, .jo-fab-menu button {
  display: flex; align-items: center; gap: .65rem; padding: .6rem .8rem; border-radius: 8px; border: 0; background: none; text-align: left;
  color: #1f2330; text-decoration: none; font: 500 14px/1.2 inherit; cursor: pointer;
}
.jo-fab-menu a:hover, .jo-fab-menu button:hover, .jo-fab-menu a:focus-visible, .jo-fab-menu button:focus-visible { background: #f1f2f6; outline: none; }
.jo-ico { width: 18px; height: 18px; flex: none; }
.jo-fab-menu [data-copy] { border-top: 1px solid #eceef3; border-radius: 0 0 8px 8px; margin-top: 4px; padding-top: .7rem; }
/* when the owner bar is shown, sit above it on small screens */
@media (max-width: 760px) { .jo-owner-bar ~ .jo-fab { bottom: 84px; } }
@media print { .jo-fab { display: none !important; } }
