/* Public directory and admin. Logical properties only. */
body.pub { display: flex; flex-direction: column; min-block-size: 100dvh; background: var(--bg); }

.pubhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; min-block-size: 56px; padding: 8px 24px; border-block-end: 1px solid var(--line); }
.pubhead__nav { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 16px; color: var(--tx-2); font-size: 14px; }
.pubhead__nav a:hover, .pubhead__nav a.is-active { color: var(--tx); }
.pubmain { flex: 1; display: flex; flex-direction: column; min-inline-size: 0; }
.pubfoot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 24px; border-block-start: 1px solid var(--line); color: var(--tx-2); font-size: 13px; }
.pubfoot__nav { display: flex; flex-wrap: wrap; gap: 16px; }
.pubfoot__nav a:hover { color: var(--tx); }

.hero { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; padding: 88px 24px 56px; }
.hero__title { max-inline-size: 22ch; font-size: 48px; line-height: 56px; font-weight: 500; letter-spacing: var(--track-head); }
.hero__lead { max-inline-size: 56ch; font-size: 18px; line-height: 28px; color: var(--tx-2); }

.pubwrap { inline-size: 100%; max-inline-size: 980px; margin-inline: auto; padding: 32px 24px 64px; display: flex; flex-direction: column; gap: 32px; }
.pubwrap--narrow { max-inline-size: 680px; gap: 20px; }
.pubwrap--admin { gap: 16px; }
.pubwrap--profile { max-inline-size: 1080px; }
.sectitle { font-size: 14px; line-height: var(--lh-14); font-weight: 500; color: var(--tx-2); margin-block-end: 8px; }
.lead--flat { margin-block-start: 0; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.link { color: var(--tx); text-decoration: underline; text-decoration-color: var(--tx-3); text-underline-offset: 3px; overflow-wrap: anywhere; }
.link:hover { color: #fff; text-decoration-color: #fff; }
.linkbtn { color: var(--tx-2); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:hover { color: var(--tx); }
.btn--secondary { background: var(--s4); color: var(--tx); }
.btn--secondary:hover { background: var(--s5); color: var(--tx); }
.btn--danger { background: #3a1519; color: #ffb3b9; }
.btn--danger:hover { background: #4d1c21; color: #ffd4d7; }
.btn--block { inline-size: 100%; }
.btn--fit { align-self: flex-start; }

.catlist { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--s2); }
.catlist li + li { border-block-start: 1px solid var(--line); }
.catrow { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.catrow:hover { background: var(--s3); }
.catrow__name { flex: 1; min-inline-size: 0; font-weight: 500; overflow-wrap: anywhere; }
.catrow__count { flex: none; color: var(--tx-2); font-size: 13px; }

.bizlist { display: flex; flex-direction: column; gap: 12px; }
.biz { display: flex; flex-direction: column; gap: 6px; padding: 16px; background: var(--s2); border: 1px solid var(--line); border-radius: var(--r-lg); min-inline-size: 0; }
.biz__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.biz__name { min-inline-size: 0; font-size: 18px; line-height: 26px; font-weight: 500; letter-spacing: var(--track-head); overflow-wrap: anywhere; }
.biz__name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.biz__score { flex: none; color: var(--tx-2); font-size: 13px; }
.biz__domain { color: var(--tx-3); font-size: 13px; line-height: var(--lh-13); overflow-wrap: anywhere; inline-size: fit-content; max-inline-size: 100%; }
.biz__desc { color: var(--tx-2); overflow-wrap: anywhere; }
.biz__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; margin-block-start: 4px; }

.stamp { display: inline-flex; align-items: center; gap: 6px; color: var(--warn); font-size: 13px; line-height: var(--lh-13); }
.stamp--ok { color: var(--good); }

.profile { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 40px; align-items: start; }
.profile__main { display: flex; flex-direction: column; gap: 16px; min-inline-size: 0; }
.profile__side { position: sticky; inset-block-start: 16px; display: flex; flex-direction: column; gap: 8px; padding: 16px; background: var(--s2); border: 1px solid var(--line); border-radius: var(--r-lg); }
.chips--start { justify-content: flex-start; margin-block-start: 0; }
.chip--static { cursor: default; overflow-wrap: anywhere; }
.fact { display: flex; flex-direction: column; gap: 4px; padding-block-start: 16px; border-block-start: 1px solid var(--line); min-inline-size: 0; overflow-wrap: anywhere; }
.fact__lead { font-size: 18px; line-height: 30px; }
.factlist { display: flex; flex-direction: column; gap: 10px; }
.factlist li { display: flex; flex-direction: column; gap: 2px; }
.factlist .link { align-self: flex-start; max-inline-size: 100%; }
.prov { color: var(--tx-3); font-size: 12px; line-height: var(--lh-12); }
.qa { display: flex; flex-direction: column; gap: 2px; }
.qa + .qa { margin-block-start: 12px; }
.qa__q { font-size: 14px; line-height: var(--lh-14); font-weight: 500; }

.form { display: flex; flex-direction: column; gap: 14px; }
.form--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: end; }
.form--grid .btn { grid-column: 1 / -1; justify-self: start; }
.form--grid .checkrow { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: var(--lh-13); color: var(--tx-2); min-inline-size: 0; }
.input { inline-size: 100%; min-block-size: 36px; padding: 7px 10px; background: var(--s3); border: 1px solid var(--line-2); border-radius: var(--r); color: var(--tx); font: inherit; font-size: 14px; line-height: var(--lh-14); }
.input:focus { outline: 2px solid #fff; outline-offset: 0; }
textarea.input { resize: vertical; }
.hp { position: absolute; inset-inline-start: -9999px; }
.notice { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--r); font-size: 14px; }
.notice--bad { background: #2d1417; color: var(--bad); }
.notice--ok { background: #0f2a1f; color: var(--good); }
.narrowcard { inline-size: 100%; max-inline-size: 380px; margin-inline: auto; margin-block-start: 48px; display: flex; flex-direction: column; gap: 16px; }

.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--s2); }
.table { inline-size: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: start; color: var(--tx-2); font-weight: 500; font-size: 13px; }
.table th, .table td { padding: 10px 14px; border-block-end: 1px solid var(--line); }
.table td:first-child { overflow-wrap: anywhere; min-inline-size: 180px; }
.table tbody tr:last-child td { border-block-end: 0; }
.adminlist { display: flex; flex-direction: column; margin-block-end: 16px; }
.adminlist li { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-block: 10px; border-block-end: 1px solid var(--line); }
.adminlist__text { min-inline-size: 0; overflow-wrap: anywhere; }
.checks-grid { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.checkrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.card--danger { border-color: #4d1c21; }
.card > .form { margin-block-start: 8px; }

.findings { display: flex; flex-direction: column; gap: 14px; }
.finding { display: flex; gap: 10px; min-inline-size: 0; }
.card__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-block-end: 12px; }
.card__row .card__title { margin-block-end: 0; }
.card--warn { border-color: #4a360f; }
.card--warn .adminlist { margin-block-end: 0; }
.card--warn .adminlist li:last-child { border-block-end: 0; }
.stat { font-size: 15px; line-height: var(--lh-15); margin-block-end: 6px; }
.rowbtns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.rowbtns--space { margin-block-start: 12px; }
.ownerfacts { display: flex; flex-direction: column; gap: 12px; }
.ownerfact { display: flex; flex-direction: column; gap: 6px; }
.ownerfact__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ownerfact__head .sectitle { margin-block-end: 0; }
.ownerfact__text { overflow-wrap: anywhere; }
.editbox summary { cursor: pointer; inline-size: fit-content; }
.editbox .form { margin-block-start: 10px; }
.invite-url { padding: 8px 10px; background: var(--s3); border-radius: var(--r); font-size: 13px; overflow-wrap: anywhere; margin-block: 8px; }
.fitstart { inline-size: fit-content; margin-block-end: 10px; }

@media (max-width: 860px) {
  .profile { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .profile__side { position: static; }
  .grid3 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 767px) {
  .hero { padding: 48px 16px 24px; }
  .hero__title { font-size: 32px; line-height: 40px; }
  .hero__lead { font-size: 16px; line-height: 26px; }
  .pubhead { padding-inline: 16px; }
  .pubwrap { padding: 20px 16px 40px; }
  .form--grid { grid-template-columns: minmax(0, 1fr); }
  .biz__head { flex-direction: column; gap: 2px; }
  .pubhead__nav { justify-content: flex-start; gap: 12px; }
  .table th, .table td { padding: 10px 8px; }
  .table td:first-child { min-inline-size: 120px; }
}
