/* AR Akron Services — dish costing calculator */
.dc { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 26px; align-items: start; }
.dc-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.dc-card + .dc-card { margin-top: 22px; }
.dc-card h2 { font-size: 1.5rem; margin-bottom: 6px; }
.dc-hint { color: var(--muted); font-size: .93rem; margin-bottom: 20px; }
.dc-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.dc-grid-4 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.dc-f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dc-f > span { font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; line-height: 1.25; }
.dc-row .dc-f > span { min-height: 2.5em; display: flex; align-items: flex-end; }
.dc input, .dc select {
  width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 12px; font: inherit; font-size: .98rem; min-width: 0;
}
.dc select { appearance: none; -webkit-appearance: none; padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a24a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center; background-size: 16px; }
.dc input:focus, .dc select:focus { outline: none; border-color: var(--gold); }
.dc-rows { display: flex; flex-direction: column; gap: 10px; }
.dc-row { display: grid; grid-template-columns: minmax(120px, 2fr) 1fr .9fr .9fr .9fr .8fr 1fr 34px; gap: 10px; align-items: end;
  padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.dc-row:not(:first-child) .dc-f > span { display: none; }
.dc-f-cost output { display: block; padding: 11px 0; font-variant-numeric: tabular-nums; color: var(--gold-soft); font-weight: 600; text-align: right; white-space: nowrap; }
.dc-del { width: 34px; height: 44px; border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 10px; font-size: 1.2rem; cursor: pointer; }
.dc-del:hover { border-color: #ff9a8f; color: #ff9a8f; }
.dc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.dc .btn { cursor: pointer; font: inherit; font-weight: 600; }
.dc .btn-sm { padding: 10px 16px; font-size: .9rem; }
.dc-link { background: none; border: 0; color: var(--gold-soft); font: inherit; font-size: .9rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 10px 4px; }

.dc-res { position: sticky; top: 96px; }
.dc-res .dc-card { padding: 26px; }
.dc-big { margin: 4px 0 2px; font-family: var(--serif); font-size: 2.6rem; line-height: 1.1; color: var(--gold-soft); font-variant-numeric: tabular-nums; }
.dc-sub { color: var(--muted); font-size: .9rem; }
.dc-kv { list-style: none; margin: 18px 0 0; padding: 0; }
.dc-kv li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: .96rem; }
.dc-kv li span { color: var(--muted); }
.dc-kv li b { font-weight: 600; font-variant-numeric: tabular-nums; }
.dc-label { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.dc-status { display: flex; align-items: center; gap: 10px; margin-top: 20px; }
.dc-badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .82rem; font-weight: 600; border: 1px solid transparent; }
.dc-badge:empty { display: none; }
.dc-good { color: #86d69a; border-color: rgba(134, 214, 154, .45); background: rgba(134, 214, 154, .08); }
.dc-warn { color: #f0c46a; border-color: rgba(240, 196, 106, .45); background: rgba(240, 196, 106, .08); }
.dc-over { color: #ff9a8f; border-color: rgba(255, 154, 143, .45); background: rgba(255, 154, 143, .08); }
.dc-verdict { color: var(--muted); font-size: .92rem; margin-top: 10px; }
.dc-res .btn { width: 100%; justify-content: center; margin-top: 12px; }
.dc-res .btn:disabled { opacity: .45; cursor: not-allowed; }
.dc-upsell { margin-top: 22px; border-color: rgba(201, 162, 74, .4); background: linear-gradient(180deg, rgba(201, 162, 74, .08), transparent 70%), var(--surface); }
.dc-upsell h3 { font-size: 1.3rem; margin: 8px 0 8px; }
.dc-upsell p { color: var(--muted); font-size: .94rem; }
.dc-upsell ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); font-size: .92rem; }
.dc-upsell a.link { display: inline-block; margin-top: 14px; color: var(--gold-soft); font-weight: 600; text-decoration: none; }
.dc-upsell a.link:hover { text-decoration: underline; text-underline-offset: 4px; }

.dc-guide { max-width: 760px; }
.dc-guide h2 { font-size: 1.6rem; margin: 44px 0 12px; color: var(--gold-soft); }
.dc-guide h2:first-child { margin-top: 0; }
.dc-guide p, .dc-guide li { color: var(--muted); }
.dc-guide p + p { margin-top: 12px; }
.dc-guide a { color: var(--gold-soft); }
.dc-guide .formula { margin: 16px 0; padding: 16px 20px; border-left: 3px solid var(--gold); background: var(--surface); border-radius: 0 10px 10px 0; color: var(--text); }

.dc-sheet { display: none; }

@media (max-width: 1040px) {
  .dc { grid-template-columns: 1fr; }
  .dc-res { position: static; }
}
@media (max-width: 760px) {
  .dc-card { padding: 20px; }
  .dc-grid, .dc-grid-4 { grid-template-columns: 1fr 1fr; }
  .dc-grid .dc-f:first-child { grid-column: 1 / -1; }
  .dc-row { grid-template-columns: 1fr 1fr 1fr; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; position: relative; }
  .dc-row .dc-f > span { display: flex !important; }
  .dc-row .dc-f-name { grid-column: 1 / -1; padding-right: 44px; }
  .dc-row .dc-f > span { min-height: 2.5em; }
  .dc-row .dc-f-cost output { padding: 11px 0; }
  .dc-del { position: absolute; top: 12px; right: 12px; height: 34px; }
  .dc-big { font-size: 2.2rem; }
}

/* mobile: live summary bar while editing ingredients */
.dc-mini { display: none; }
@media (max-width: 1040px) {
  .dc-mini { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; justify-content: space-between; align-items: center; gap: 12px;
    padding: 12px 16px; background: rgba(20, 20, 22, .96); border: 1px solid rgba(201, 162, 74, .5); border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.5);
    text-decoration: none; color: var(--text); font-size: .9rem; transition: opacity .2s, transform .2s; }
  .dc-mini.off { opacity: 0; transform: translateY(20px); pointer-events: none; }
  .dc-mini b { color: var(--gold-soft); font-variant-numeric: tabular-nums; }
  .dc-mini span { color: var(--muted); }
}

@media print {
  .dc-mini { display: none !important; }
  @page { size: A4; margin: 16mm; }
  body { background: #fff !important; color: #111 !important; }
  body > *:not(main), main > *:not(.dc-print) { display: none !important; }
  .dc-print, .dc-sheet { display: block !important; }
  .dc-print .wrap { padding: 0; max-width: none; }
  .dc-sheet { font-family: var(--sans); color: #111; font-size: 11pt; line-height: 1.45; }
  .dc-sheet .ps-head { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 2px solid #c9a24a; padding-bottom: 10px; margin-bottom: 16px; }
  .dc-sheet .ps-brand { font-family: var(--serif); font-size: 13pt; color: #8a6a1f; margin: 0; }
  .dc-sheet .ps-brand span { font-family: var(--sans); font-size: 8pt; letter-spacing: .2em; text-transform: uppercase; }
  .dc-sheet .ps-kicker { font-size: 8pt; letter-spacing: .2em; text-transform: uppercase; color: #666; margin: 10px 0 2px; }
  .dc-sheet h2 { font-size: 20pt; color: #111; margin: 0; }
  .dc-sheet .ps-date { text-align: right; color: #555; font-size: 9.5pt; margin: 0; }
  .dc-sheet table { width: 100%; border-collapse: collapse; }
  .dc-sheet th, .dc-sheet td { text-align: left; padding: 6px 8px; border-bottom: 1px solid #ddd; }
  .dc-sheet thead th { font-size: 8.5pt; text-transform: uppercase; letter-spacing: .06em; color: #555; border-bottom: 1.5px solid #999; }
  .dc-sheet .r { text-align: right; }
  .dc-sheet .ps-kv { width: 60%; margin: 18px 0 0 auto; }
  .dc-sheet .ps-kv th { font-weight: 400; color: #333; }
  .dc-sheet .ps-foot { margin-top: 28px; padding-top: 10px; border-top: 1px solid #ddd; font-size: 8.5pt; color: #777; }
}
