/* Icons describe the destination. Directional model and paging controls keep their own symbols. */
[data-action-icon="cv"] { --shortcut-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.65%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%203.5h9l5%205V21H5z%20M14%203.5V9h5%20M8.5%2016c.7-2.3%204.5-2.3%205.2%200%20M8.4%2018.5h7.1%20M12.7%2011.7a1.7%201.7%200%201%201-3.4%200%201.7%201.7%200%200%201%203.4%200%22/%3E%3C/svg%3E"); }
[data-action-icon="drawing"], #ew-task-next, [data-ew="ramp-section-doc"] { --shortcut-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.65%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3.5%204.5h17v15h-17z%20M7%208h6v4H9v4H7z%20M16%208h1%20M16%2011h1%20M13%2016h4%22/%3E%3C/svg%3E"); }
[data-action-icon="section"], #ew-task-next[data-native-task="ramp-section"], #ew-task-next[data-native-task="view-section"], #ew-task-next[data-native-task="source-section"] { --shortcut-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.65%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%205v14h18%20M5%2015h4l6-6h5v3h-4l-6%206H5z%20M4%209h2%20M9%209h2%20M16%2016h2%22/%3E%3C/svg%3E"); }
[data-action-icon="model"], #sc-open-stair { --shortcut-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.65%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m12%202.8%208.6%204.9v8.7L12%2021.3l-8.6-4.9V7.7z%20M3.7%207.9l8.3%204.7%208.4-4.7%20M12%2012.6v8.4%20M8%205.1l8.5%204.8%22/%3E%3C/svg%3E"); }
[data-action-icon="locate"], #ew-task-next[data-native-task="focus-selection"] { --shortcut-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.65%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3.5%209V4h5%20M15%204h5v5%20M20%2015v5h-5%20M9%2020H4v-5%20M15.2%2012a3.2%203.2%200%201%201-6.4%200%203.2%203.2%200%200%201%206.4%200%22/%3E%3C/svg%3E"); }
[data-action-icon="compare"], #ew-task-next[data-native-task="tools"], #ew-task-next[data-native-task="solibri-check"] { --shortcut-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.65%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%205h6.4v14H4z%20M13.6%205H20v14h-6.4z%20M6.3%209h1.8%20M6.3%2012h1.8%20M15.9%209h1.8%20M15.9%2015h1.8%22/%3E%3C/svg%3E"); }
[data-action-icon="mail"] { --shortcut-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.65%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%205.5h18v13H3z%20M3.6%206.2l8.4%206.2%208.4-6.2%22/%3E%3C/svg%3E"); }
[data-action-icon="works"] { --shortcut-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.65%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3.5%204.3h7v6.5h-7z%20M13.5%204.3h7v6.5h-7z%20M3.5%2013.5h7V20h-7z%20M13.5%2013.5h7V20h-7z%22/%3E%3C/svg%3E"); }
[data-action-icon="people"] { --shortcut-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.65%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M15.3%208.4a3.3%203.3%200%201%201-6.6%200%203.3%203.3%200%200%201%206.6%200%20M5.5%2019c.5-3.2%203-5.4%206.5-5.4s6%202.2%206.5%205.4%22/%3E%3C/svg%3E"); }
[data-action-icon="bookmark"], #ew-task-next[data-native-task="save-view"] { --shortcut-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.65%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M6%204h12v16l-6-3.8L6%2020z%22/%3E%3C/svg%3E"); }
[data-action-icon="present"] { --shortcut-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.65%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%204.5h18v12H3z%20M12%2016.5V21%20M8.5%2021h7%22/%3E%3C/svg%3E"); }
[data-action-icon="folder"] { --shortcut-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.65%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3.3%207.3V5.5h6l2%202H20v3H3.3z%20M3.3%2010h18l-2.2%209H3.3z%22/%3E%3C/svg%3E"); }
[data-action-icon="zoom"] { --shortcut-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.65%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M15.8%209.8a6%206%200%201%201-12%200%206%206%200%200%201%2012%200%20M14.4%2014.4l5.6%205.6%20M7.4%209.8h4.8%20M9.8%207.4v4.8%22/%3E%3C/svg%3E"); }
[data-action-icon="code"], #ew-task-next[data-native-task="graph-run"] { --shortcut-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.65%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m7.5%207-5%205%205%205%20M16.5%207l5%205-5%205%20M13.7%204l-3.4%2016%22/%3E%3C/svg%3E"); }

:where([data-action-icon], #ew-task-next, [data-ew="ramp-section-doc"], #sc-open-stair)::before {
  content: "";
  display: inline-block;
  flex: 0 0 auto;
  inline-size: 1.18em;
  block-size: 1.18em;
  background-color: currentColor;
  -webkit-mask: var(--shortcut-mask) center / contain no-repeat;
  mask: var(--shortcut-mask) center / contain no-repeat;
  pointer-events: none;
  vertical-align: -.2em;
}
/* On the most prominent actions a narrow tonal field gives the icon its own place. */
body { --shortcut-field: 90deg; }
html[dir=rtl] body { --shortcut-field: 270deg; }
body :is(a,button)[data-action-face="primary"]:not([hidden]),
body :is(a,button)[data-action-face="secondary"]:not([hidden]) {
  display: inline-flex; align-items: center; justify-content: flex-start;
  gap: .65em; min-block-size: 2.8rem; min-inline-size: 0; max-inline-size: 100%;
  padding: .54rem .86rem .54rem; border-radius: .75rem;
  text-decoration: none; text-align: start; white-space: normal;
  line-height: 1.3; font-weight: 600; overflow-wrap: break-word;
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}
body :is(a,button)[data-action-face="primary"]:not([hidden]) {
  color: var(--folio-button-text, var(--bg)); background-color: var(--folio-accent, var(--accent));
  background-image: linear-gradient(var(--shortcut-field),#ffffff18 2.56rem,transparent 2.56rem);
  border: 1px solid color-mix(in srgb, var(--accent) 80%, var(--ink));
  box-shadow: 0 2px 4px #061d2310;
}
body :is(a,button)[data-action-face="secondary"]:not([hidden]) {
  color: var(--ink); background-color: var(--surface);
  background-image: linear-gradient(var(--shortcut-field),color-mix(in srgb, var(--accent) 11%, transparent) 2.56rem,transparent 2.56rem);
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line));
  box-shadow: 0 2px 4px #061d230a;
}
body :is(a,button)[data-action-face="primary"]::before,
body :is(a,button)[data-action-face="secondary"]::before { margin-inline-end: .21rem; }
body :is(a,button)[data-action-face="quiet"]:not([hidden]),
body :is(a,button)[data-action-face="guide"]:not([hidden]) {
  display: inline-flex; align-items: center; gap: .48em; max-inline-size: 100%;
  min-block-size: 2.75rem; min-inline-size: 0; text-align: start;
  border-radius: .5rem; text-decoration: underline; text-underline-offset: .24em;
  text-decoration-thickness: 1px; white-space: normal;
}
body .model-study #hero-ramp-guide[data-action-face] {
  line-height: 1.25; text-decoration: none;
  padding: .28em .6em; border: 1px solid color-mix(in srgb,currentColor 32%,transparent);
  border-radius: .65rem; background: color-mix(in srgb,var(--surface) 85%,transparent);
}
body [data-action-face="native"]::before, #ew-task-next::before, [data-ew="ramp-section-doc"]::before, #sc-open-stair::before,
body [data-action-face="caption"]::before { margin-inline-end: .45em; }
body [data-action-face="header"]::before { margin-inline-end: .28em; }
body [data-action-face="caption"]::before { vertical-align: -.18em; }
.work-cover .work-enter[data-action-face] {
  display: grid; place-items: center; padding: 0; border-radius: .65rem;
  color: var(--ink); background: var(--surface); border: 1px solid var(--line); }
.work-cover .work-enter[data-action-face]::before { margin: 0; inline-size: 1.3rem; block-size: 1.3rem; }
/* The section thumbnail already identifies this action wherever its pixels are shown. */
#profil .portfolio-primary:has(#h-section-thumb)::before { display: none; }
#profil .portfolio-actions a[data-action-face] { white-space: normal; }

@media (max-width: 42rem) {
  body :is(a,button)[data-action-face="primary"]:not([hidden]),
  body :is(a,button)[data-action-face="secondary"]:not([hidden]) { padding-inline: .64rem; gap: .5em; }
  body :is(a,button)[data-action-face="primary"],
  body :is(a,button)[data-action-face="secondary"] { background-image: none; }
  #profil .portfolio-actions a[data-action-face] { justify-content:center; gap:.42em; }
  body .role-mobile-cv[data-action-face="header"]::before { display:none; }
}
@media (prefers-reduced-motion:no-preference) and (hover:hover) {
  body :is(a,button)[data-action-face]:not(:disabled):hover,
  body [data-shortcut-card]:hover { border-color: var(--accent); }
  body :is(a,button)[data-action-face="secondary"]:hover { background-color:color-mix(in srgb,var(--accent) 8%,var(--surface)); }
  body [data-action-icon]::before { transition: transform .17s ease; }
  body :is(a,button)[data-action-face]:not(:disabled):hover::before,
  body [data-shortcut-card]:hover [data-action-face="caption"]::before { transform: scale(1.1); }
}
body :is(a,button):is([data-action-face],[data-shortcut-card]):focus-visible {
  outline: 3px solid var(--accent); outline-offset: 3px;
}
body :is(a,button):is([data-action-face],[data-shortcut-card]):active:not(:disabled) {
  box-shadow: inset 0 0 0 1px currentColor;
}
/* Lay out the portfolio navigation with its neighbours as the labels change language. */
@media (min-width:1025px) {
  body[data-presentation=overview] .app-header {gap:clamp(.4rem,.7vw,.8rem);}
  body[data-presentation=overview] .app-header .main-nav {
    position:static;inset:auto;transform:none;flex:1 1 auto;min-width:0;width:auto;
    max-width:none;height:auto;margin:0;padding:0;justify-content:center;gap:clamp(0px,.25vw,.3rem);
  }
  body[data-presentation=overview] .app-header .main-nav a {
    flex:0 0 auto;min-width:0;padding-inline:clamp(.23rem,.53vw,.7rem);
    white-space:nowrap; text-decoration:none;
  }
  body[data-presentation=overview] .app-header .main-nav a[data-action-icon]::before {display:none;}
  body[data-presentation=overview] .app-header :is(.display-modes,.header-contact,.he-locale) {
    margin-inline:0;flex:none;
  }
}
@media (min-width:1025px) and (max-width:1100px) {
  body[data-presentation=overview] .app-header .main-nav {gap:0;}
  body[data-presentation=overview] .app-header .main-nav a {padding-inline:.23rem;}
  body[data-presentation=overview] .app-header .header-contact {min-width:0;padding-inline:.65rem;}
}
@media (prefers-reduced-motion:reduce) {
  body [data-action-face], body [data-action-face]::before { animation:none; transition:none; }
}
@media (forced-colors:active) {
  [data-action-icon]::before { forced-color-adjust:none; background:ButtonText; }
  a[data-action-icon]::before { background:LinkText; }
}
