/* NFC business card pages. Brand: design/BRAND.md — Navy #0A1F2C, Cyan #2BA0D6, Slate #5A6B78, Paper #FFFFFF. */
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("/nfc/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url("/nfc/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("/nfc/fonts/ibm-plex-sans-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url("/nfc/fonts/ibm-plex-sans-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root { --navy: #0A1F2C; --cyan: #2BA0D6; --cyan-ink: #17729C; --slate: #5A6B78; --paper: #FFFFFF; --line: #D8E0E6; --mist: #F3F7FA; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--navy); font: 400 16px/1.5 "IBM Plex Sans", Inter, system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

html[lang="hr"] [data-l="en"], html[lang="en"] [data-l="hr"] { display: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.page { max-width: 440px; margin: 0 auto; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
  padding: max(18px, env(safe-area-inset-top)) 22px max(18px, env(safe-area-inset-bottom)); }
.page.wide { max-width: 760px; }
.page.narrow { max-width: 420px; }
main { flex: 1; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0 28px; }
.logo { display: block; height: 30px; width: auto; }
.brand { display: inline-flex; }
.lang { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-decoration: none; color: var(--slate);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; min-height: 32px; display: inline-flex; align-items: center; }

/* Why this page exists: it came with a card Nino handed over. */
.kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; color: var(--slate); font-size: 14px; }
.kicker::before { content: ""; flex: none; width: 22px; height: 14px; border: 1.5px solid var(--cyan); border-radius: 3px;
  background: linear-gradient(var(--cyan), var(--cyan)) 4px 4px / 7px 1.5px no-repeat, linear-gradient(var(--line), var(--line)) 4px 8px / 11px 1.5px no-repeat; }

/* Where we met: a quiet sentence near the bottom, not a tag. */
.event { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 28px; padding: 14px 16px; border-radius: 14px; background: var(--mist); }
.event .door { width: 22px; height: 22px; color: var(--cyan); flex: none; margin-top: 1px; }
.event-line { margin: 0; font-size: 15px; }
.event-line strong { font-weight: 600; }
.event-text { margin: 4px 0 0; color: var(--slate); font-size: 14px; }

.greeting { font-size: clamp(34px, 10vw, 44px); line-height: 1.06; letter-spacing: -.02em; font-weight: 600; margin: 0 0 22px; overflow-wrap: anywhere; }

/* The public note sits inside the brand bracket: a cyan [ on the left edge. */
.note { position: relative; margin: 0 0 30px; padding: 2px 0 2px 20px; }
.note::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 9px; border: 2.5px solid var(--cyan); border-right: 0; border-radius: 2px 0 0 2px; }
.note figcaption { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); margin-bottom: 6px; }
.note blockquote { margin: 0; font-size: 18px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }

.person { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; }
.crystal { width: 58px; height: 58px; flex: none; }
.person-name { margin: 0; font-weight: 600; font-size: 18px; }
.person-role { margin: 0; color: var(--slate); font-size: 14px; }

.actions { display: grid; gap: 10px; margin: 0 0 26px; }
.action { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 12px; min-height: 56px; padding: 12px 18px;
  border: 1px solid var(--line); border-radius: 14px; text-decoration: none; font-weight: 600; background: var(--paper); transition: border-color .15s, background .15s; }
.action:hover { border-color: var(--cyan); }
.action:active { background: var(--mist); }
.action .detail { font-weight: 400; font-size: 14px; color: var(--slate); }
.action .ext { color: var(--cyan-ink); font-weight: 400; margin-left: 4px; text-decoration: none; display: inline-block; }
/* Website rows: label left, the address right, underlined like a link. The whole row stays one link. */
.action .url { margin-left: auto; font-weight: 400; font-size: 15px; color: var(--cyan-ink); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.action.primary { background: var(--navy); border-color: var(--navy); color: var(--paper); }
.action.primary .detail { color: #C9D6DF; }
.action.primary:active { background: #12303F; }

.about { color: var(--slate); font-size: 15px; margin: 0 0 28px; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--slate); }
.activate { color: var(--slate); text-underline-offset: 3px; padding: 8px 0 8px 8px; }

.owner-bar { background: var(--navy); color: var(--paper); font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 10px 22px; }
.owner-bar p { margin: 0; flex: 1 1 100%; color: #C9D6DF; }
.owner-bar a { color: var(--paper); font-weight: 600; text-underline-offset: 3px; }

/* ---- Owner pages ---- */
body.owner h1 { font-size: 28px; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 10px; }
body.owner h2 { font-size: 18px; margin: 30px 0 10px; }
.owner-nav { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.owner-nav a, .link { color: var(--navy); font-weight: 600; text-underline-offset: 3px; }
.link { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; }
.muted { color: var(--slate); }
.small { font-size: 13px; }
.mono { font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }
.error { border: 1px solid #E3A4A4; background: #FDF3F3; color: #7A1F1F; border-radius: 10px; padding: 10px 14px; }
.notice { border: 1px solid rgba(43, 160, 214, .4); background: rgba(43, 160, 214, .07); border-radius: 10px; padding: 10px 14px; }
.form { display: grid; gap: 16px; margin-top: 18px; }
.form fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 16px; margin: 0; display: grid; gap: 14px; }
.form fieldset.private { background: var(--mist); border-style: dashed; }
.form legend { font-weight: 600; font-size: 14px; padding: 0 6px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.form label .req, .form label .opt { font-weight: 400; color: var(--slate); font-size: 13px; }
.form label.check { display: flex; align-items: center; gap: 10px; }
.form input:not([type="checkbox"]), .form textarea, .form select { width: 100%; font-family: inherit; font-size: 16px; line-height: 1.4; font-weight: 400; color: var(--navy); background: var(--paper);
  border: 1px solid #B8C5CE; border-radius: 10px; padding: 11px 12px; }
.form textarea { resize: vertical; }
.form input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--navy); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 18px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--paper); color: var(--navy); font-family: inherit; font-size: 15px; line-height: 1.2; font-weight: 600; text-decoration: none; cursor: pointer; }
.button.primary { background: var(--navy); border-color: var(--navy); color: var(--paper); }
.button[disabled] { opacity: .5; cursor: not-allowed; }
form.inline { display: inline; }
.tabs { display: flex; gap: 8px; margin: 12px 0; }
.tabs a { flex: 1; text-align: center; padding: 10px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 14px; }
.tabs a.on { background: var(--navy); color: var(--paper); border-color: var(--navy); }
.row-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 8px 0 0; font-size: 14px; }
.row-links a { font-weight: 600; text-underline-offset: 3px; }
.card-list, .plain { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.card-row { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.card-row p { margin: 6px 0 0; }
.card-row.retired, .card-row.ended { background: var(--mist); }
.row-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.row-title { text-decoration: none; overflow-wrap: anywhere; }
.pill { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 2px 10px; border: 1px solid var(--line); color: var(--slate); white-space: nowrap; }
.pill.on { border-color: rgba(43, 160, 214, .5); color: var(--cyan-ink); background: rgba(43, 160, 214, .07); }
.pill.off { background: var(--mist); }
.private-note { background: var(--mist); border-radius: 8px; padding: 8px 10px; white-space: pre-line; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; white-space: nowrap; }
tr.bot td { color: var(--slate); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
