/* Shared affordance for actions that previously looked like body text.
   Brand marks, citations and already filled primary controls keep their design. */
:root {
  --action-ink: #253128;
  --action-bg: #ffffff;
  --action-line: #adb6ac;
  --action-hover: #edf1e8;
}
:where(.action-link) { display: inline-flex; }
body .action-link.action-link {
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  max-width: 100%;
  padding: 11px 17px;
  border: 1px solid var(--action-line);
  border-radius: 10px;
  background: var(--action-bg);
  color: var(--action-ink);
  box-shadow: 0 2px 3px #15231509;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -.02em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color .16s, border-color .16s, box-shadow .16s;
}
body .action-link.action-link:focus-visible {
  outline: 3px solid #df542e;
  outline-offset: 4px;
}
body .action-link.action-link:active {
  background: var(--action-hover);
  box-shadow: inset 0 2px 3px #15231515;
}
@media (hover: hover) {
  body .action-link.action-link:hover {
    background: var(--action-hover);
    border-color: var(--action-ink);
    box-shadow: 0 3px 8px #15231512;
  }
}
body .action-link.action-link--compact {
  min-height: 34px;
  padding: 7px 11px;
  gap: 7px;
  font-size: 11px;
  border-radius: 8px;
}
body .action-link.action-link--nav {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 11px;
  border-radius: 8px;
  white-space: nowrap;
}
body .action-link.action-link--choice,
body .action-link.action-link--row {
  justify-content: space-between;
  text-align: left;
  width: 100%;
}
body .action-link.action-link--menu { justify-content: space-between; }
body .action-link.action-link--menu::after { content: '→'; margin-left: auto; }
body .action-link.action-link:is([aria-selected="true"], [aria-pressed="true"], [aria-current="step"], [aria-current="location"]) {
  background: var(--action-ink);
  border-color: var(--action-ink);
  color: var(--action-bg);
  box-shadow: none;
}
/* Main preview: keep the existing layout and give every text action its own edge. */
.header-nav { gap: 6px; }
.header-nav .action-link {
  --action-ink: #edf1e6;
  --action-bg: #242923;
  --action-line: #656e60;
  --action-hover: #3a4235;
}
.mobile-menu { gap: 7px; }
.mobile-menu .action-link { width: 100%; }
.aftercare-steps { gap: 10px; }
.creation-step-tabs { gap: 8px; }
.creation-step-title.action-link { margin-block: 4px; }
.creation-step-title.action-link .creation-step-name { font-size: inherit; }
body .creation-step-title.action-link { font-size: 17px; }
.creation-step-title.action-link small { color: inherit; opacity: .7; }
.creation-step-title.action-link b { margin-left: auto; }
.creation-result-foot { flex-wrap: wrap; row-gap: 8px; }
.creation-result-foot .action-link { margin-left: auto; }
.creation-chapters { gap: 6px; }
.creation-chapters .action-link { flex: 1; }
.creation-chapters .action-link small { color: inherit; opacity: .7; }
.service-tabs { row-gap: 8px; }
.service-tabs .action-link { margin-block: 4px; }
/* The original selected label rule also sets a color; follow the button's
   foreground for both the title and number so dark selections stay legible. */
body .service-tabs .action-link > b,
body .service-tabs .action-link > span { color: inherit; }
/* Let the compact buttons set their row height before drawing the divider. */
.handoff-demo-nav { height: auto; padding-bottom: 10px; }
.handoff-demo-nav .action-link { flex: 1; min-width: 0; margin: 0; }
.handoff-demo-nav button.action-link > span { margin-right: 0; color: inherit; }
@media (max-width: 1100px) {
  body .handoff-demo-nav .action-link { min-height: 46px; }
}
.landing-footer nav { flex-wrap: wrap; gap: 8px; }
.contact-questions details { margin-block: 10px; border: 0; }
body .contact-questions summary.action-link { padding: 16px; }
.contact-questions details[open] summary.action-link { background: #e7eddf; }
.contact-questions details p { padding-inline: 16px; }
.contact-questions .quiet-link { margin-top: 14px; }
.case-evidence-action, .search-capture-title > span {
  border: 1px solid #adb6ac;
  border-radius: 8px;
  padding: 7px 11px;
  background: #fff;
  color: #253128;
}
/* Introduction and payment share the same unmistakable home button. */
.about-header .back-home { flex-shrink: 0; }
.about-footer { align-items: center; }
.brand-about-links { gap: 10px; }
.brand-about-channel.action-link { --action-bg: #fee500; --action-hover: #f3dc00; --action-line: #dbc600; --action-ink: #251f00; }
.brand-about-info dd a { text-decoration: underline; text-underline-offset: 4px; }
/* Industry pages share button geometry; palette follows each site's identity. */
.interior-site { --action-ink: #eee9dc; --action-bg: #292a24; --action-line: #817f6f; --action-hover: #3d3e34; }
.clinic-page { --action-ink: #245363; --action-line: #8eafb9; --action-hover: #e8f1f3; }
.stay-page { --action-ink: #3e4938; --action-bg: #fffdf6; --action-line: #a6ac96; --action-hover: #eaece1; }
.cleaning-site { --action-ink: #164c9c; --action-line: #9eb6d6; --action-hover: #eaf1ff; }
body .action-link.action-link--inverse { --action-ink: #fffdf6; --action-bg: #20251ed9; --action-line: #ffffff8c; --action-hover: #394235; }
.demo-header nav { gap: 8px; }
.demo-nav { padding-block: 7px; min-height: 50px; gap: 10px; }
.demo-nav .action-link { opacity: 1; }
.demo-nav .action-link span { margin-left: 3px; }
.demo-nav .action-link { min-width: 34px; }
.atelier-link.action-link, .clean-line-link.action-link { width: fit-content; }
.clean-line-link.action-link { width: 100%; margin-top: 18px; justify-content: space-between; }
.circle-link.action-link > span { border: 0; width: auto; height: auto; background: none; }
.text-next.action-link { margin-top: 24px; }
.demo-nav .collection-back.action-link, .demo-nav .demo-back.action-link { min-width: 80px; margin-right: 0; }
/* Existing dental canvases: modest sizing avoids crowding the embedded preview. */
.site-nav .action-link { --action-ink: #23495d; --action-line: #8daab8; --action-bg: #f7faf9; --action-hover: #e3eff2; }
[data-dental-design="final"] .site-header:not(.is-light):not(.contact-header) .action-link { --action-ink: #edf4f7; --action-bg: #173f55; --action-line: #8caebb; --action-hover: #2a566c; }
.hero .hero-link.action-link { --action-ink: #fff; --action-bg: #183f53; --action-line: #8baebd; --action-hover: #28586c; }
.team-tabs .action-link { --action-ink: #ecf4f6; --action-bg: #234456; --action-line: #7298a9; --action-hover: #355c70; }
.team-tabs { gap: 10px; border: 0; }
.team-tabs .action-link::after { display: none; }
.period-options { gap: 7px; }
.period-options .action-link { flex: 1; }
@media (max-width: 700px) {
  .about-header { gap: 8px; }
  .about-header .wordmark { padding-inline: 12px; }
  .about-header .back-home { font-size: 11px; padding-inline: 10px; gap: 7px; }
  .demo-nav { gap: 6px; padding-inline: 10px; }
  .demo-nav .action-link { padding-inline: 7px; }
  .demo-nav .nav-brand, .demo-nav .nav-end { display: none; }
  .demo-nav .action-link span { display: none; }
  body .creation-step-title.action-link { font-size: 13px; min-height: 42px; padding: 9px 10px; }
  .creation-step-title.action-link .creation-step-name { max-width: 100%; white-space: normal; word-break: keep-all; }
  body .creation-chapters .action-link { padding: 6px; gap: 4px; font-size: 10px; }
  .creation-chapters .action-link small { display: none; }
  body .aftercare-steps .action-link { padding: 10px 7px; font-size: 11px; justify-content: center; }
  .search-capture-title > span { padding: 5px 7px; }
  .landing-footer nav .action-link { font-size: 10px; }
  .service-tabs .action-link { padding: 10px; }
}
@media (max-width: 350px) {
  body .creation-step-title.action-link { font-size: 11px; padding: 8px 4px; }
  .about-header .wordmark { padding-inline: 9px; gap: 6px; }
  .about-header .wordmark > span { font-size: 18px; }
  .about-header .back-home { padding-inline: 8px; }
}
@media (max-height: 500px) {
  .is-embedded .action-link.action-link { min-height: 22px; padding: 4px 7px; gap: 5px; font-size: 8px; border-radius: 5px; }
  .is-embedded .team-tabs { gap: 5px; }
}
@media (max-height: 200px) {
  .is-embedded .action-link.action-link { min-height: 12px; padding: 2px 4px; gap: 3px; font-size: 5px; border-radius: 3px; }
}
@media (prefers-reduced-motion: reduce) { .action-link.action-link { transition: none; } }

body .contact-large-link.action-link { --action-bg: #e85530; --action-ink: #fff; --action-line: #d04523; --action-hover: #ce4524; font-size: 17px; padding: 15px 20px; }

/* These three choices stay centered even when mobile story styles remove padding. */
#promise .aftercare-steps button.action-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 10px 8px;
  text-align: center;
}
#promise .aftercare-steps button.action-link > span {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  word-break: keep-all;
  line-height: 1.4;
}
#promise .aftercare-footer a.action-link {
  padding: 10px 14px;
  gap: 10px;
}
