/* elitesoft — /arcadiasoft/ (inc/views-arcadiasoft.php). The four families as large pictures
 * on white plates (the maker's screenshots are drawn on white), then the base editions and the
 * add-on modules of ArCADia BIM in hairline cells, like the maker's own modules page. */

.ac-head { padding-bottom: clamp(24px, 4vw, 48px); }
.ac-maker { margin: 0 0 12px; font: 600 var(--t-sm)/1.3 var(--sans); color: var(--tungsten); }
.ac-head .ac-lede { max-width: 62ch; }
@media (prefers-reduced-motion: no-preference) { html:has(.ac-head) { scroll-behavior: smooth; } }

/* ---------- the four families ---------- */
.ac-fam { padding-top: 0; }
.ac-fam__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 28px); }
@media (max-width: 760px) { .ac-fam__grid { grid-template-columns: minmax(0, 1fr); } }
.ac-card { position: relative; display: grid; grid-template-rows: auto 1fr; min-width: 0; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; transition: border-color .2s ease; }
@media (hover: hover) and (pointer: fine) { .ac-card:hover { border-color: var(--tungsten-line); } }
.ac-card__art { display: block; aspect-ratio: 16 / 9; background: #fff; overflow: hidden; }
.ac-card__art img, .ac-card__art svg { display: block; width: 100%; height: 100%; object-fit: contain; padding: clamp(10px, 1.6vw, 20px); transition: transform .5s cubic-bezier(.23, 1, .32, 1); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) { .ac-card:hover .ac-card__art img { transform: scale(1.03); } }
.ac-card__body { display: grid; gap: 10px; align-content: start; padding: clamp(18px, 2vw, 28px); border-top: 1px solid var(--line-2); }
.ac-card__name { margin: 0; font: 600 clamp(24px, 2.4vw, 34px)/1.1 var(--display); letter-spacing: -0.025em; }
.ac-card__name a { color: var(--ink); text-decoration: none; }
/* the whole card answers the title link */
.ac-card__name a::after { content: ''; position: absolute; inset: 0; }
.ac-card__name a:focus-visible { outline: none; }
.ac-card:has(.ac-card__name a:focus-visible) { outline: 2px solid var(--tungsten); outline-offset: 3px; }
.ac-card__text { margin: 0; color: var(--ink-soft); font-size: var(--t-sm); line-height: 1.55; max-width: 58ch; }
.ac-card__foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-top: 6px; }
.ac-card__price { margin: 0; font-size: var(--t-sm); color: var(--muted); }
.ac-card__price .price__now { color: var(--ink); font: 600 20px/1.2 var(--display); }
.ac-card__more { position: relative; z-index: 1; color: var(--tungsten); font-size: var(--t-sm); font-weight: 600; text-underline-offset: 3px; }

/* ---------- base editions and modules ---------- */
.ac-h2 { font: 600 clamp(26px, 3vw, 40px)/1.12 var(--display); letter-spacing: -0.025em; margin: 0 0 10px; }
.ac-h2--add { margin-top: clamp(48px, 6vw, 80px); }
.ac-note { margin: 0 0 clamp(20px, 3vw, 32px); color: var(--muted); max-width: 70ch; }

.ac-base { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-2); border-left: 1px solid var(--line-2); }
@media (max-width: 860px) { .ac-base { grid-template-columns: minmax(0, 1fr); } }
.ac-base__item { display: grid; gap: 8px; align-content: start; padding: 22px clamp(18px, 2vw, 26px) 24px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); background: var(--sheet); }
.ac-base__name { margin: 0; font: 600 clamp(19px, 1.6vw, 23px)/1.2 var(--display); }
.ac-base__name a { color: var(--ink); text-decoration: none; }
.ac-base__name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ac-base__text { margin: 0; color: var(--ink-soft); font-size: var(--t-sm); line-height: 1.55; }
.ac-base__price { margin: 4px 0 0; color: var(--muted); font-size: var(--t-xs); }
.ac-base__price b { color: var(--ink); font: 600 17px/1.2 var(--display); font-variant-numeric: tabular-nums; }


/* «Νέα έκδοση»: over the top-left corner of the picture, like the maker's NEW VERSION mark */
.ac-new { position: absolute; z-index: 2; top: 12px; left: 12px; padding: 5px 10px 6px; border-radius: var(--r-xs); background: var(--tungsten); color: var(--tungsten-ink); font: 700 var(--t-xs)/1 var(--sans); letter-spacing: .01em; pointer-events: none; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.ac-base__item { position: relative; padding-top: 52px; }
.ac-base__item .ac-new { top: 18px; left: clamp(18px, 2vw, 26px); }


/* the maker's free tools, after the webshop menu */
.ac-free { padding-top: 0; }
.ac-free__h { margin: 0 0 10px; font: 600 var(--t-base)/1.3 var(--sans); color: var(--draft); }
.ac-free__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.ac-free__list a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
