/* ScholarshipSpace card actions and saved lists - Oct 2026 */
/* Icon row on cards. Specific selectors so the theme's own button hover styles cannot draw a square box. */
.ss-eng-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: 0; padding-top: 12px; border-top: 1px solid var(--ss-eng-line, #d9dee7); }
.ss-eng-actions--page { justify-content: flex-start; margin: 10px 0 0; padding-top: 0; border-top: 0; }
.ss-eng-fill { flex: 1 0 14px; }
.ss-eng-acts { display: flex; gap: 6px; }
.ss-featured-grid .ss-eng-acts { flex: 1; justify-content: space-around; }
.ss-eng-actions--page .ss-eng-acts { gap: 16px; }
.ss-eng-actions .ss-eng-act, .ss-eng-actions .ss-eng-act:hover, .ss-eng-actions .ss-eng-act:focus, .ss-eng-actions .ss-eng-act:active { display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 0; box-shadow: none; outline: none; padding: 0; cursor: pointer; color: #374151; font: inherit; min-width: 56px; text-shadow: none; -webkit-tap-highlight-color: transparent; }
.ss-eng-act-ic { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: #f1f3f7; transition: background .15s, transform .1s; }
.ss-eng-act-ic svg { fill: none; stroke: currentColor; }
.ss-eng-act-cap { font-size: 12px; line-height: 1.2; color: var(--ss-eng-muted, #6b7280); }
.ss-eng-actions .ss-eng-act:hover .ss-eng-act-ic { background: #e5e9f0; }
.ss-eng-actions .ss-eng-act:active .ss-eng-act-ic { transform: scale(.94); }
.ss-eng-actions .ss-eng-act:focus-visible .ss-eng-act-ic { outline: 2px solid var(--ss-eng-accent, #3730a3); outline-offset: 2px; }
.ss-eng-act--shortlist.is-on .ss-eng-act-ic { background: #fde7ef; color: #be185d; }
.ss-eng-act--shortlist.is-on svg { fill: #be185d; stroke: #be185d; }
.ss-eng-actions .ss-card-link { margin: 6px 0 0 auto; align-self: flex-start; flex: 0 0 auto; }
/* Homepage featured cards: View Details is a full-width dark button under the icons. */
.ss-featured-grid .ss-card.ss-eng-has-acts .ss-card-link { align-self: stretch; margin-top: 12px; padding: 14px 20px; border-radius: 12px; border-color: #111418; background: #111418; color: #fff; font-size: 1rem; text-align: center; }
/* Homepage hover: white, navy text, 2px theme blue border (1px border plus 1px ring, so nothing shifts). */
.ss-featured-grid .ss-card.ss-eng-has-acts .ss-card-link:hover { background: #fff; border-color: #0066cc; box-shadow: 0 0 0 1px #0066cc; color: #1a2e4a; }
.ss-eng-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: #111827; color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 100001; max-width: calc(100vw - 32px); }
.ss-eng-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.ss-eng-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--ss-eng-line, #d9dee7); }
.ss-eng-row:last-child { border-bottom: 0; }
.ss-eng-row-title { font-weight: 600; color: var(--ss-eng-navy, #1a2e4a); text-decoration: none; }
.ss-eng-row-title:hover { text-decoration: underline; }
.ss-eng-row .ss-eng-link { flex: none; min-height: 44px; }
@media (prefers-reduced-motion: reduce) { .ss-eng-toast, .ss-eng-act-ic { transition: none; } }
/* Shortlist panel */
.ss-eng-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.ss-eng-chip { min-height: 36px; padding: 6px 12px; border: 1px solid var(--ss-eng-line, #d9dee7); border-radius: 999px; background: #fff; color: #374151; font: inherit; font-size: 14px; cursor: pointer; }
.ss-eng-chip.is-on { background: var(--ss-eng-navy, #1a2e4a); border-color: var(--ss-eng-navy, #1a2e4a); color: #fff; }
.ss-eng-row--wide .ss-eng-row-main { flex: 1; min-width: 0; }
.ss-eng-row-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 8px 0; }
.ss-eng-badge { display: inline-block; padding: 4px 10px; border-radius: 999px; background: #eef1f6; color: #374151; font-size: 12.5px; font-weight: 600; }
.ss-eng-badge.is-amber { background: #fef3c7; color: #92400e; }
.ss-eng-badge.is-red { background: #fee2e2; color: #b42318; }
.ss-eng-badge.is-closed { background: #e5e7eb; color: #6b7280; }
.ss-eng-select { min-height: 40px; padding: 6px 10px; border: 1px solid var(--ss-eng-line, #d9dee7); border-radius: 8px; font: inherit; font-size: 14px; background: #fff; }
.ss-eng-note-text { margin: 4px 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.ss-eng-textarea { width: 100%; box-sizing: border-box; padding: 10px; border: 1px solid var(--ss-eng-line, #d9dee7); border-radius: 8px; font: inherit; font-size: 15px; }
.ss-eng-note-actions { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.ss-eng-btn--small { width: auto; min-height: 40px; padding: 6px 14px; font-size: 14px; }
/* Tag a friend, notifications, friends settings */
.ss-eng-unread { display: inline-block; min-width: 18px; margin-left: 6px; padding: 1px 6px; border-radius: 999px; background: #b42318; color: #fff; font-size: 12px; font-weight: 700; line-height: 16px; text-align: center; }
.ss-eng-results { display: flex; flex-direction: column; gap: 6px; margin: 0 0 12px; }
.ss-eng-result { min-height: 44px; padding: 8px 12px; border: 1px solid var(--ss-eng-line, #d9dee7); border-radius: 8px; background: #fff; font: inherit; text-align: left; cursor: pointer; }
.ss-eng-result:hover, .ss-eng-result:focus-visible { background: #eef1f6; }
.ss-eng-chosen { margin: 0 0 12px; font-weight: 600; color: var(--ss-eng-navy, #1a2e4a); }
.ss-eng-input { width: 100%; box-sizing: border-box; min-height: 44px; padding: 8px 12px; border: 1px solid var(--ss-eng-line, #d9dee7); border-radius: 8px; font: inherit; font-size: 16px; }
.ss-eng-row.is-unread { background: #f5f7ff; border-radius: 8px; padding-left: 8px; }
.ss-eng-check { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; min-height: 36px; }
.ss-eng-inline { display: flex; gap: 10px; align-items: center; margin-top: 10px; }
.ss-eng-inline .ss-eng-input { flex: 1; }
.ss-eng-settings h3 { margin: 18px 0 8px; font-size: 16px; }
/* Q&A card icon badge */
.ss-eng-act-badge { position: absolute; top: -4px; right: -6px; min-width: 18px; padding: 1px 5px; border-radius: 999px; background: var(--ss-eng-accent, #3730a3); color: #fff; font-size: 11px; font-weight: 700; line-height: 16px; text-align: center; box-sizing: border-box; border: 2px solid #fff; }
.ss-eng-toast.has-act { pointer-events: auto; border-radius: 14px; display: flex; gap: 14px; align-items: center; }
.ss-eng-toast-act { color: #fff; font-weight: 700; text-decoration: underline; white-space: nowrap; }
.ss-eng-confirm h2 { margin: 0 0 8px; font-size: 18px; }
/* Phones: keep View Details on the icon row of the All Scholarships cards instead of wrapping under it. */
@media (max-width: 420px) {
  .ss-eng-actions { gap: 8px; }
  .ss-eng-acts { gap: 4px; }
  .ss-eng-actions .ss-eng-act, .ss-eng-actions .ss-eng-act:hover, .ss-eng-actions .ss-eng-act:focus, .ss-eng-actions .ss-eng-act:active { min-width: 44px; }
  .ss-eng-act-ic { width: 44px; height: 44px; }
  .ss-eng-act-cap { font-size: 11px; }
  .ss-eng-actions .ss-card-link { padding: 8px 12px; font-size: 0.8rem; }
  .ss-featured-grid .ss-eng-acts { gap: 4px; }
}
