@font-face { font-family: "Open Sans"; src: url("../../marca/opensans.ttf") format("truetype"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: Roboto; src: url("../../marca/roboto.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #103532;
  --green: #006550;
  --muted: #47615b;
  --paper: #f6f9f8;
  --mint: #e7f6ee;
  --line: #c9ddd3;
  color: var(--ink);
  background: var(--paper);
  font: 17px/1.5 Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
body, h1, h2, p, dl, dd, ul { margin: 0; }
[hidden] { display: none !important; }
.wrap { width: min(1040px, calc(100% - 48px)); margin-inline: auto; }
.masthead { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.masthead img { display: block; max-width: 42%; height: auto; }
.masthead p { color: var(--muted); font-size: 14px; font-weight: 600; text-align: right; }
.layout { margin-block: clamp(28px, 7vw, 100px); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; gap: 24px; }
.access, .scope { padding: clamp(22px, 4vw, 44px); border: 1px solid var(--line); border-radius: 18px; }
.access { background: #fff; min-height: 498px; }
.scope { background: var(--mint); }
.scenarios { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); margin-bottom: 29px; }

button, input { font: inherit; }
button { cursor: pointer; min-height: 44px; border: 1px solid transparent; border-radius: 8px; padding: 8px 13px; font-weight: 700; transition: background-color 180ms ease, color 180ms ease, transform 180ms ease, border-color 180ms ease; }
button:active { transform: translateY(1px); }
button:disabled { cursor: wait; opacity: .7; }
button:focus-visible, input:focus-visible, h1:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.scenarios button { background: transparent; color: var(--muted); font-size: 15px; }
.scenarios button:hover { color: var(--green); background: var(--mint); }
.scenarios button[aria-pressed="true"] { background: var(--green); color: #fff; }
.screen { animation: reveal 210ms ease-out both; }
@keyframes reveal { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

h1 { font: 770 clamp(34px, 5.5vw, 54px)/1.06 "Open Sans", Arial, sans-serif; letter-spacing: -.045em; margin-bottom: 14px; }
h2 { font: 760 25px/1.2 "Open Sans", Arial, sans-serif; letter-spacing: -.025em; margin-bottom: 8px; }
.screen > p, .scope > p { color: var(--muted); max-width: 42ch; }
.screen strong { color: var(--ink); }
form { display: grid; gap: 8px; margin-top: 25px; }
label { font-weight: 700; font-size: 15px; }
input { width: 100%; min-height: 48px; padding: 10px 14px; color: var(--ink); background: #fff; border: 1px solid #a9c5b8; border-radius: 8px; }
.primary, .secondary { display: inline-flex; gap: 12px; justify-content: space-between; align-items: center; min-height: 48px; margin-top: 18px; text-align: left; }
.primary { color: #fff; background: var(--ink); }
.primary:hover { background: var(--green); }
.secondary { color: var(--green); background: #fff; border-color: var(--line); }
.secondary:hover { background: var(--mint); border-color: var(--green); }
.primary span, .secondary span { font-size: 21px; line-height: 1; }
.access-link { border-radius: 8px; padding: 8px 13px; font-weight: 700; text-decoration: none; transition: background-color 180ms ease; }
.access-link:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.access-error { margin-top: 16px; color: #962e38; font-size: 15px; }
.screen .caption { font-size: 14px; margin-top: 12px; }
.notice, .details, .project { margin-top: 23px; border-radius: 10px; background: var(--paper); padding: 14px 16px; border: 1px solid var(--line); }
.details > div { display: grid; grid-template-columns: minmax(7em, .7fr) minmax(0, 1fr); gap: 8px; font-size: 15px; }
.details > div + div { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; }
.details dt, .project p { color: var(--muted); }
.details dd { font-weight: 700; overflow-wrap: anywhere; }
.status { display: inline-block; padding: 4px 9px; font-size: 14px; color: var(--green); background: var(--mint); border-radius: 5px; font-weight: 700; }
.project p { font-size: 14px; margin-bottom: 4px; }

.space { display: flex; align-items: center; gap: 10px; margin-bottom: 27px; }
.avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #cdebdc; color: var(--green); font-weight: 750; }
.permissions { list-style: none; margin-top: 20px; padding: 0; display: grid; gap: 12px; }
.permissions li { display: flex; gap: 10px; align-items: baseline; }
.permissions li::before { content: ""; position: relative; flex: 0 0 10px; height: 6px; top: -2px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.scope .scope-note { border-top: 1px solid #b9d8ca; margin-top: 23px; padding-top: 16px; font-size: 15px; }

@media (max-width: 760px) {
  .wrap { width: min(520px, calc(100% - 32px)); }
  .masthead { min-height: 70px; }
  .layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .access { min-height: auto; }
  .scenarios { margin-bottom: 23px; }
  .space { margin-bottom: 18px; }
}
