/* Shared styles for client access guides (/guides/*-access). */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --eggshell: #fbead2;
  --red: #de3831;
  --ink: #171312;
  --muted: #62564f;
  --off-white: #fffaf2;
  --line: #e5ddd4;
}
body {
  background: var(--eggshell);
  font-family: "Libre Franklin", sans-serif;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
}
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

.guide-header {
  padding: 40px 24px 20px;
  text-align: center;
}
.guide-header a {
  display: inline-flex;
  align-items: center;
}
.guide-header img {
  height: 40px;
  width: auto;
}

.guide-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 24px 100px;
}

.breadcrumb {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb .sep {
  color: var(--muted);
  opacity: 0.5;
  margin: 0 8px;
}
.breadcrumb .current { color: var(--ink); }

.access-list {
  display: grid;
  gap: 14px;
  margin: 36px 0 40px;
}
.access-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 24px;
  color: var(--ink);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.access-card:hover {
  border-color: var(--red);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(23, 19, 18, 0.10);
  text-decoration: none;
}
.access-card:active { transform: translateY(0); }

.access-card .bg {
  position: absolute;
  right: -38px;
  top: 50%;
  width: 210px;
  height: 210px;
  object-fit: contain;
  opacity: 0.16;
  pointer-events: none;
  transform: translateY(-50%) rotate(-8deg);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.access-card:hover .bg {
  opacity: 0.26;
  transform: translateY(-50%) rotate(-8deg) scale(1.07);
}

.access-card .body {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
}
.access-card h3 {
  margin: 0 0 3px;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.access-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}
.access-card .time {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
}
.access-card .go {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  font-size: 22px;
  font-weight: 900;
  color: var(--muted);
  transition: color 0.15s ease, transform 0.15s ease;
}
.access-card:hover .go {
  color: var(--red);
  transform: translateX(3px);
}

@media (max-width: 520px) {
  .access-card { gap: 14px; padding: 20px 18px; }
  .access-card .bg { width: 150px; height: 150px; right: -30px; }
  .access-card .go { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .access-card,
  .access-card .bg,
  .access-card .go { transition: none; }
  .access-card:hover { transform: none; }
  .access-card:hover .bg { transform: translateY(-50%) rotate(-8deg); }
  .access-card:hover .go { transform: none; }
}

h1 {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 12px;
}
h1 em {
  font-style: normal;
  color: var(--red);
}

.subtitle {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 48px;
  font-weight: 400;
}

h2 {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.01em;
  margin-top: 48px;
  margin-bottom: 16px;
  color: var(--ink);
}

h3 {
  font-size: 17px;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 8px;
}

p { margin-bottom: 16px; }

.method-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}

.step-list {
  list-style: none;
  counter-reset: steps;
  margin: 20px 0 32px;
  padding: 0;
}
.step-list li {
  counter-increment: steps;
  position: relative;
  padding-left: 48px;
  margin-bottom: 20px;
  min-height: 36px;
  display: flex;
  align-items: flex-start;
}
.step-list li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-path {
  display: inline;
  font-family: "Libre Franklin", monospace;
  font-size: 14px;
  font-weight: 600;
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 8px;
  white-space: nowrap;
}

.email-highlight {
  font-weight: 700;
  color: var(--red);
}

.id-block {
  display: block;
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px 18px;
  margin: 12px 0 4px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--red);
}

.person {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px 22px;
  margin: 24px 0 16px;
}
.person img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 28%;
  flex-shrink: 0;
}
.person .name {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.person .role {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}
.person .addr {
  font-size: 16px;
  font-weight: 700;
  color: var(--red);
  word-break: break-word;
}

@media (max-width: 430px) {
  .person {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

.info-box {
  background: var(--off-white);
  border-left: 3px solid var(--red);
  border-radius: 0 6px 6px 0;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 15px;
}
.info-box strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--red);
}
.info-box p:last-child { margin-bottom: 0; }

.permissions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 16px 0 24px;
}
.perm-item {
  background: var(--off-white);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
}
.perm-item .check {
  color: var(--red);
  font-weight: 700;
  margin-right: 6px;
}

.asset-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14px;
}
.asset-table th,
.asset-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.asset-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}
.asset-table td:first-child { font-weight: 700; }

@media (max-width: 500px) {
  .permissions-grid { grid-template-columns: 1fr; }
  .asset-table th:nth-child(3),
  .asset-table td:nth-child(3) { display: none; }
}

.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 48px 0;
}

.footer-note {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  padding: 40px 24px;
}
