/* Lovelle 0.4.0 - exactly two action styles: PRIMARY and SECONDARY.
   Loaded after theme and plugin styles. Scope selectors to action controls,
   not menus, anchor links within editorial text, form fields or radio chips. */
:root {
  --lv-action: #af3e58;
  --lv-action-hover: #852940;
  --lv-action-border: #b95770;
  --lv-action-tint: #fff6f7;
  --lv-action-white: #ffffff;
  --lv-action-shadow: 0 6px 16px rgba(125,49,70,.15);
  --lv-action-shadow-hover: 0 9px 22px rgba(125,49,70,.23);
  --lv-action-h: 50px;
  --lv-action-r: 14px;
}

/* SHAPE: one consistent control height/weight across theme and tools. */
:is(
 .lv-btn, .intent-button, .lv-rel-btn, .lv-da-btn, .lv-fd-btn,
 .lv-safe-btn, .lv-dq-btn, .lv-ds-btn, .lv-rv-btn,
 .question-hub-cta a, .lvi-home-dilemma a,
 .story-card > a, .post-card > a, .lvi-dilemma-card .lvi-link,
 .lv-context-next-links a, .lvi-crossnav-links a,
 .lvi-primary, .lvi-actions button, .lvi-vote-options button,
 .lvi-fun-actions button, .lv-helpful-actions button,
 .lovelle-tool .lovelle-generate, .lovelle-tool .lovelle-regenerate,
 .lovelle-tool .lovelle-secondary, .lovelle-tool .lovelle-icon-button,
 .lovelle-tool .lovelle-link-button, .lovelle-tool .lovelle-next__button,
 .lovelle-tool .lovelle-finder-option__cta,
 .lovelle-tool .lovelle-finder-option__secondary,
 .lovelle-tool-card__cta, .lovelle-planner-cta__button,
 .lovelle-tools-hub .lovelle-tool-card__cta,
 .lv-consent-actions button
){
  box-sizing:border-box;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  min-height:var(--lv-action-h);
  padding:12px 20px;
  border-radius:var(--lv-action-r);
  border:2px solid transparent;
  font:800 14px/1.28 var(--lv-sans,system-ui,sans-serif);
  letter-spacing:0;
  text-decoration:none!important;
  text-align:center;
  cursor:pointer;
  box-shadow:var(--lv-action-shadow);
  white-space:normal;
  transition:background-color .15s ease,color .15s ease,border-color .15s ease,box-shadow .15s ease,transform .15s ease;
}

/* PRIMARY: one dominant action for a task or an intentional CTA. */
:is(
 .lv-btn-primary, .intent-button, .lv-rel-btn--primary, .lv-da-btn--primary,
 .lv-fd-btn--primary, .lv-safe-btn--primary, .lv-dq-btn--primary,
 .lv-ds-btn--primary, .lv-rv-btn--primary,
 .lvi-primary, .lovelle-tool .lovelle-generate,
 .lovelle-tool .lovelle-next__button,
 .lovelle-tool .lovelle-finder-option__cta,
 .lovelle-tool-card__cta, .lovelle-planner-cta__button,
 .lv-consent .lv-consent-accept
){
  background:var(--lv-action)!important;
  border-color:var(--lv-action)!important;
  color:#fff!important;
  text-decoration:none!important;
}
:is(
 .lv-btn-primary, .intent-button, .lv-rel-btn--primary, .lv-da-btn--primary,
 .lv-fd-btn--primary, .lv-safe-btn--primary, .lv-dq-btn--primary,
 .lv-ds-btn--primary, .lv-rv-btn--primary,
 .lvi-primary, .lovelle-tool .lovelle-generate,
 .lovelle-tool .lovelle-next__button,
 .lovelle-tool .lovelle-finder-option__cta,
 .lovelle-tool-card__cta, .lovelle-planner-cta__button,
 .lv-consent .lv-consent-accept
):hover:not(:disabled){
  background:var(--lv-action-hover)!important;
  border-color:var(--lv-action-hover)!important;
  color:#fff!important;
}

/* SECONDARY: real contrast, visible outline, not a faint text link. */
:is(
 .lv-btn-soft, .lv-rel-btn:not(.lv-rel-btn--primary),
 .lv-da-btn:not(.lv-da-btn--primary), .lv-fd-btn:not(.lv-fd-btn--primary),
 .lv-safe-btn:not(.lv-safe-btn--primary), .lv-dq-btn:not(.lv-dq-btn--primary),
 .lv-ds-btn:not(.lv-ds-btn--primary), .lv-rv-btn:not(.lv-rv-btn--primary),
 .question-hub-cta a, .lvi-home-dilemma a, .story-card > a, .post-card > a,
 .lvi-dilemma-card .lvi-link, .lv-context-next-links a, .lvi-crossnav-links a,
 .lvi-actions button, .lvi-vote-options button, .lvi-fun-actions button,
 .lv-helpful-actions button,
 .lovelle-tool .lovelle-regenerate, .lovelle-tool .lovelle-secondary,
 .lovelle-tool .lovelle-icon-button, .lovelle-tool .lovelle-link-button,
 .lovelle-tool .lovelle-finder-option__secondary,
 .lv-consent-actions button:not(.lv-consent-accept)
){
  background:var(--lv-action-tint)!important;
  border-color:var(--lv-action-border)!important;
  color:var(--lv-action-hover)!important;
  text-decoration:none!important;
}
:is(
 .lv-btn-soft, .lv-rel-btn:not(.lv-rel-btn--primary),
 .lv-da-btn:not(.lv-da-btn--primary), .lv-fd-btn:not(.lv-fd-btn--primary),
 .lv-safe-btn:not(.lv-safe-btn--primary), .lv-dq-btn:not(.lv-dq-btn--primary),
 .lv-ds-btn:not(.lv-ds-btn--primary), .lv-rv-btn:not(.lv-rv-btn--primary),
 .question-hub-cta a, .lvi-home-dilemma a, .story-card > a, .post-card > a,
 .lvi-dilemma-card .lvi-link, .lv-context-next-links a, .lvi-crossnav-links a,
 .lvi-actions button, .lvi-vote-options button, .lvi-fun-actions button,
 .lv-helpful-actions button,
 .lovelle-tool .lovelle-regenerate, .lovelle-tool .lovelle-secondary,
 .lovelle-tool .lovelle-icon-button, .lovelle-tool .lovelle-link-button,
 .lovelle-tool .lovelle-finder-option__secondary,
 .lv-consent-actions button:not(.lv-consent-accept)
):hover:not(:disabled){
  background:#fce9ed!important;
  border-color:var(--lv-action-hover)!important;
  color:var(--lv-action-hover)!important;
}

/* Normalize the two-tier feel on ALL site actions without styling plain article links. */
:is(
 .lv-btn,.intent-button,.lv-rel-btn,.lv-da-btn,.lv-fd-btn,.lv-safe-btn,
 .lv-dq-btn,.lv-ds-btn,.lv-rv-btn,.question-hub-cta a,
 .lvi-home-dilemma a,.story-card > a,.post-card > a,.lvi-dilemma-card .lvi-link,
 .lv-context-next-links a,.lvi-crossnav-links a,.lvi-primary,.lvi-actions button,
 .lvi-vote-options button,.lvi-fun-actions button,.lv-helpful-actions button,
 .lovelle-tool .lovelle-generate,.lovelle-tool .lovelle-secondary,
 .lovelle-tool .lovelle-regenerate,.lovelle-tool .lovelle-icon-button,
 .lovelle-tool .lovelle-link-button,.lovelle-tool .lovelle-next__button,
 .lovelle-tool .lovelle-finder-option__cta,.lovelle-tool .lovelle-finder-option__secondary,
 .lovelle-tool-card__cta,.lovelle-planner-cta__button,.lv-consent-actions button
):hover:not(:disabled){
  transform:translateY(-1px);
  box-shadow:var(--lv-action-shadow-hover);
}
:is(
 .lv-btn,.intent-button,.lv-rel-btn,.lv-da-btn,.lv-fd-btn,.lv-safe-btn,
 .lv-dq-btn,.lv-ds-btn,.lv-rv-btn,.question-hub-cta a,
 .lvi-home-dilemma a,.story-card > a,.post-card > a,.lvi-dilemma-card .lvi-link,
 .lv-context-next-links a,.lvi-crossnav-links a,.lvi-primary,.lvi-actions button,
 .lvi-vote-options button,.lvi-fun-actions button,.lv-helpful-actions button,
 .lovelle-tool .lovelle-generate,.lovelle-tool .lovelle-secondary,
 .lovelle-tool .lovelle-regenerate,.lovelle-tool .lovelle-icon-button,
 .lovelle-tool .lovelle-link-button,.lovelle-tool .lovelle-next__button,
 .lovelle-tool .lovelle-finder-option__cta,.lovelle-tool .lovelle-finder-option__secondary,
 .lovelle-tool-card__cta,.lovelle-planner-cta__button,.lv-consent-actions button
):focus-visible{
  outline:3px solid var(--lv-action)!important;
  outline-offset:3px!important;
}

/* Actual social controls are 44px icon buttons, never tiny, borderless dots. */
.lv-share-icon{
  width:44px!important;
  height:44px!important;
  min-width:44px!important;
  min-height:44px!important;
  border:2px solid var(--lv-action-border)!important;
  border-radius:var(--lv-action-r)!important;
  background:var(--lv-action-tint)!important;
  color:var(--lv-action-hover)!important;
  box-shadow:0 3px 9px rgba(125,49,70,.10);
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
}
.lv-share-icon:hover{background:#fce9ed!important;border-color:var(--lv-action-hover)!important}
.lv-share-icon:focus-visible{outline:3px solid var(--lv-action)!important;outline-offset:3px!important}

/* Card navigation: its call to action is visible, but the full tile stays clickable. */
.lvi-home-card em{
  display:inline-flex;
  justify-content:center;
  align-items:center;
  min-height:36px;
  padding:7px 14px;
  border-radius:10px;
  background:var(--lv-action-tint)!important;
  border:2px solid var(--lv-action-border)!important;
  color:var(--lv-action-hover)!important;
  box-shadow:none;
}
.lvi-home-card:hover em{background:#fce9ed!important}
.lvi-home-card:focus-visible{outline:3px solid var(--lv-action);outline-offset:3px}

/* Tool-state buttons must remain legible, even before/after a user action. */
.lvi-actions button[hidden],
.lvi-vote-options[hidden],
.lovelle-results[hidden],
.lovelle-saved[hidden]{display:none!important}
.lvi-vote-options button{justify-content:flex-start;text-align:left;min-height:56px!important}
.lvi-actions button{min-height:50px!important}
.lvi-fun-actions button{min-height:44px!important;padding:10px 14px!important}
.lvi-fun-actions button.is-liked,
.lv-helpful-actions button.is-selected{
  background:#f0d6de!important;
  border-color:var(--lv-action-hover)!important;
}
.lvi-vote-options button:disabled,
.lvi-actions button:disabled,
.lv-helpful-actions button:disabled,
.lovelle-tool button:disabled{
  opacity:.66;
  cursor:default;
  transform:none!important;
  box-shadow:none!important;
}
/* Copy and Share are still secondary actions; keep icon-label separation. */
.lvi-actions button[data-lvi-copy]::before{content:"⧉";font-size:17px;line-height:1}
.lvi-actions button[data-lvi-share]::before{content:"↗";font-size:17px;line-height:1}

/* Only CTA groups become full-width on narrow screens; no layout changes to inputs/nav. */
@media(max-width:680px){
  .hero-actions,.lv-rel-actions,.lv-da-actions,.lv-fd-actions,.lv-safe-actions,
  .lv-dq-actions,.lv-ds-actions,.lv-rv-actions,.lvi-actions,.lvi-fun-actions,
  .lvi-crossnav-links,.lv-context-next-links{
    gap:10px;
  }
  :is(.hero-actions,.lv-rel-actions,.lv-da-actions,.lv-fd-actions,
  .lv-safe-actions,.lv-dq-actions,.lv-ds-actions,.lv-rv-actions,
  .lvi-actions,.lvi-fun-actions,.lvi-crossnav-links,.lv-context-next-links) > :is(a,button),
  .lvi-dilemma-card .lvi-link,
  .lovelle-next__button,
  .lovelle-planner-cta__button{
    width:100%;
    white-space:normal;
  }
  .lvi-fun-actions{display:grid;grid-template-columns:1fr 1fr}
  .lvi-fun-actions button{min-width:0;width:100%}
  .lv-share-icon{width:44px!important}
}
@media(prefers-reduced-motion:reduce){
  :is(.lv-btn,.lvi-primary,.lvi-actions button,.lvi-fun-actions button,
  .lovelle-tool .lovelle-generate,.lovelle-tool .lovelle-secondary,
  .lovelle-tool-card__cta):hover{transform:none!important}
}
