/* The three areas (Alb, 2026-11-13). Built on the Qartë tokens (qarte.css): white cards, black ink, one colour per area. */
.ar-page { max-width: 1120px; margin: 0 auto; padding: 8px clamp(16px, 4vw, 40px) 64px; }
.ar-energji { --ac: #c98a00; --ac-l: #fff4d6; }
.ar-kanalizimi { --ac: #1f6fb2; --ac-l: #e5f0fa; }
.ar-mbeturinat { --ac: #0a8f5b; --ac-l: #e6f6ee; }

.ar-head { margin: 18px 0 22px; }
.ar-head h1 { margin: 4px 0 10px; }
.ar-eyebrow { font: 600 13px var(--sans); color: var(--ink-2); }
.ar-lede { font-size: 17px; line-height: 1.5; color: var(--ink); max-width: 62ch; margin: 0; }
.ar-head-row { display: flex; gap: 18px; align-items: flex-start; }
.ar-big { width: 56px; height: 56px; flex: none; padding: 12px; border-radius: 18px; background: var(--ac-l); color: var(--ac); }
.ar-back { display: inline-block; margin-top: 14px; font: 600 14px var(--sans); color: var(--ink); text-decoration: none; }
.ar-back:hover { text-decoration: underline; }

/* home: three choices */
.ar-choose { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ar-choice { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px 24px 22px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; border: 2px solid transparent; transition: transform .2s var(--ease), border-color .2s; }
.ar-choice:hover, .ar-choice:focus-visible { transform: translateY(-3px); border-color: var(--ac); outline: none; }
.ar-choice svg { width: 52px; height: 52px; padding: 11px; border-radius: 16px; background: var(--ac-l); color: var(--ac); }
.ar-num { position: absolute; top: 20px; right: 22px; font: 700 15px var(--round); color: var(--ac); }
.ar-choice h2 { margin: 6px 0 0; font-size: 26px; letter-spacing: -.03em; }
.ar-choice p { margin: 0; font-size: 15px; line-height: 1.45; }
.ar-choice ul { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ar-choice li { font: 600 12.5px var(--sans); padding: 5px 10px; border-radius: 99px; background: var(--paper-2); }
.ar-go { margin-top: auto; padding-top: 10px; font: 700 15px var(--sans); color: var(--ac); }
.ar-foot { margin-top: 26px; font-size: 14px; }
.ar-foot a { color: var(--ink); font-weight: 600; }

/* sub-page tabs */
.ar-subs { position: sticky; top: 64px; z-index: 5; display: flex; gap: 6px; overflow-x: auto; padding: 6px; margin: 0 -6px 20px; background: rgba(245,245,247,.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: 99px; scrollbar-width: none; }
.ar-subs::-webkit-scrollbar { display: none; }
.ar-subs a { flex: none; padding: 10px 16px; border-radius: 99px; font: 600 14px var(--sans); color: var(--ink); text-decoration: none; white-space: nowrap; }
.ar-subs a:hover { background: #fff; }
.ar-subs a[aria-current="page"] { background: var(--ink); color: #fff; }

/* content */
.ar-body { display: grid; gap: 18px; }
.ar-card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 24px clamp(16px, 3vw, 28px); }
.ar-card h3 { margin: 0 0 14px; font-size: 21px; }
.ar-card p { line-height: 1.55; }
.ar-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.ar-card .ar-stats { margin-top: 14px; }
.ar-stat { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); }
.ar-card .ar-stat { background: var(--paper); box-shadow: none; }
.ar-stat > span { font: 600 13px var(--sans); color: var(--ink); }
.ar-stat .ar-n { font: 700 26px/1.15 var(--round); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ar-stat small { font-size: 12.5px; color: var(--ink); }
.ar-n { font-variant-numeric: tabular-nums; }
.ar-tw { overflow-x: auto; margin: 0 -4px; }
.ar-t { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.ar-t th { text-align: left; font: 650 12.5px var(--sans); padding: 8px 10px; border-bottom: 2px solid var(--ink); white-space: nowrap; }
.ar-t td { padding: 11px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; line-height: 1.4; }
.ar-t td:first-child { font-weight: 600; min-width: 150px; }
.ar-t a { color: var(--ink); }
.ar-src { font-size: 13px; line-height: 1.5; margin: 14px 0 0; color: var(--ink); }
.ar-src a { color: var(--ink); }
.ar-est { display: inline-block; font: 600 11.5px var(--sans); padding: 2px 8px; border-radius: 99px; background: #fff4d6; color: #6b4a00; white-space: nowrap; }
.ar-warn { margin: 14px 0 0; padding: 12px 16px; border-radius: 16px; background: #fdecea; color: #7a1b12; font-weight: 600; font-size: 14px; }
.ar-formula { font: 600 15px var(--round); padding: 12px 16px; border-radius: 14px; background: var(--ac-l); overflow-x: auto; }
.ar-steps { margin: 0; padding-left: 22px; display: grid; gap: 10px; line-height: 1.5; }
.ar-steps li::marker { font-weight: 700; color: var(--ac); }
.ar-list { margin: 0; padding-left: 20px; line-height: 1.7; }

/* calculators */
.ar-calc { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 14px; padding: 16px; border-radius: 20px; background: var(--ac-l); }
.ar-f { display: flex; flex-direction: column; gap: 6px; font: 600 13px var(--sans); }
.ar-f input, .ar-f select { font: 600 17px var(--sans); padding: 11px 14px; border-radius: 14px; border: 1px solid var(--rule); background: #fff; color: var(--ink); min-height: 48px; }
.ar-f input:focus, .ar-f select:focus { outline: none; border-color: var(--ac); box-shadow: 0 0 0 4px rgba(0,0,0,.06); }
.ar-out .ar-stats { margin-top: 0; }

.ar-next { display: block; margin-top: 22px; padding: 18px 22px; border-radius: var(--r); background: var(--ink); color: #fff; font: 650 16px var(--sans); text-decoration: none; text-align: right; }
.ar-next:hover { opacity: .9; }

/* companies */
.co-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.co-add, .co-edit, .co-del { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 99px; border: 0; background: var(--ink); color: #fff; font: 650 15px var(--sans); text-decoration: none; cursor: pointer; }
.co-edit { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.co-del { background: #fdecea; color: #7a1b12; }
.co-list { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.co-row { display: flex; align-items: center; gap: 14px; padding: 16px 20px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); }
.co-row:last-child { border-bottom: 0; }
.co-row:hover { background: var(--paper); }
.co-av { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 14px; background: var(--paper-2); font: 700 17px var(--sans); }
.co-name { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.co-name b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-name small, .co-sum small { font-size: 13px; }
.co-sum { display: flex; flex-direction: column; align-items: flex-end; }
.co-sum b { font: 700 19px var(--round); }
.co-empty { text-align: center; }
.co-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.co-wide { grid-column: 1 / -1; }
.co-actions { display: flex; gap: 10px; justify-content: space-between; }
.co-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 18px; background: var(--ink); color: #fff; }
.co-total span { font: 600 14px var(--sans); width: 100%; }
.co-total b { font: 700 44px/1 var(--round); letter-spacing: -.03em; }
.co-areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.co-area { display: flex; flex-direction: column; border-top: 0; }
.co-area h3 { display: flex; align-items: center; gap: 8px; }
.co-area h3::before { content: ""; width: 12px; height: 12px; border-radius: 99px; background: var(--ac); }
.co-big .ar-n { font: 700 32px/1.1 var(--round); letter-spacing: -.03em; }
.co-facts { list-style: none; padding: 0; margin: 14px 0 18px; display: grid; gap: 8px; font-size: 14.5px; line-height: 1.45; }
.co-link { margin-top: auto; font: 700 15px var(--sans); color: var(--ac); text-decoration: none; }
@media (max-width: 900px) { .co-areas { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .ar-choose { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .ar-subs { top: 0; }
  .ar-head-row { flex-direction: column; gap: 10px; }
  .ar-big { width: 48px; height: 48px; padding: 10px; }
  .ar-stat .ar-n { font-size: 22px; }
  .ar-page { padding-bottom: 110px; }
}
@media print { .ar-subs, .ar-next, .ar-back, .ar-calc { display: none; } .ar-card { box-shadow: none; border: 1px solid #ddd; } }

/* Phone fixes (App Dev, 2026-11-14; Fable's check + QA BUG-074). A grid child may not grow past its column: without
   min-width: 0 a card took the width of its table and the page scrolled sideways (.ar-stats 448 px, .ar-card 465 px). */
.ar-body { grid-template-columns: minmax(0, 1fr); }
.ar-body > *, .ar-card, .ar-out, .ar-tw { min-width: 0; max-width: 100%; }
.ar-card { overflow-wrap: break-word; }
@media (max-width: 640px) {
  .ar-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ar-stat { padding: 14px; }
  .ar-stat .ar-n { font-size: 20px; }
  .ar-subs { flex-wrap: wrap; overflow-x: visible; position: static; }
  .ar-subs a { padding: 8px 12px; font-size: 13.5px; }
  .ar-t td:first-child { min-width: 120px; }
}
