/* Shared base for the modern, minimal and corporate themes. --primary and --accent come from company settings. */
:root { --primary: #1d4e89; --accent: #d99a1e; --ink: #1b2330; --muted: #5f6b7a; --line: #e3e7ee; --soft: #f5f7fa; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; line-height: 1.65; font-size: 17px; -webkit-font-smoothing: antialiased;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif; }
img { max-width: 100%; display: block; }
a { color: var(--primary); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .55em; }
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* Buttons */
.btn { display: inline-block; padding: 12px 24px; border-radius: 10px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: .97rem; font-family: inherit; transition: filter .15s ease, transform .15s ease; }
.btn:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-small { padding: 7px 14px; font-size: .86rem; }

/* Mobile menu button */
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; border-radius: 2px; }

/* Company details */
.info-list { margin: 0; border-top: 1px solid var(--line); }
.info-list > div { display: grid; grid-template-columns: 210px 1fr; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.info-list dt { color: var(--muted); font-weight: 600; font-size: .94rem; }
.info-list dd { margin: 0; font-weight: 600; }
.subsection-title { font-size: 1.12rem; margin: 30px 0 10px; }
.partners-table, .docs-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.partners-table th, .docs-table th { text-align: left; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; padding: 8px 12px 8px 0; border-bottom: 2px solid var(--line); }
.partners-table td, .docs-table td { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.partners-table td:first-child { font-weight: 600; }
.docs-actions { white-space: nowrap; text-align: right; }
.docs-actions a { margin-left: 14px; font-weight: 700; }

/* Balance sheet cards */
.year-group { margin-bottom: 36px; }
.year-title { font-size: 1.3rem; color: var(--primary); }
.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.doc-item { display: flex; align-items: center; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.doc-icon { width: 50px; height: 58px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: .78rem; color: #fff; background: #c8382d; flex: none; }
.doc-thumb { width: 50px; height: 58px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); flex: none; }
.doc-meta { flex: 1; min-width: 0; display: grid; }
.doc-meta small { color: var(--muted); }
.doc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.empty-state { padding: 36px; text-align: center; color: var(--muted); border: 2px dashed var(--line); border-radius: 12px; }

/* Contact */
.contact-lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.contact-lines li { display: grid; gap: 2px; }
.contact-lines span { font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; }
.form { display: grid; gap: 16px; }
.form-row { display: grid; gap: 6px; }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { font-weight: 600; font-size: .92rem; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form textarea { width: 100%; padding: 12px 14px; border: 1px solid #cdd5e0; border-radius: 10px; font: inherit; background: #fff; color: inherit; }
.form input:focus, .form textarea:focus { outline: 3px solid color-mix(in srgb, var(--primary) 25%, transparent); border-color: var(--primary); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; color: var(--muted); }
.check input { margin-top: 5px; }
.field-error { color: #b42318; font-weight: 600; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 16px; font-weight: 600; }
.alert-success { background: #e7f6ec; color: #11633a; border: 1px solid #b9e3c8; }
.alert-error { background: #fdecea; color: #a12a1f; border: 1px solid #f5c2bd; }

@media (max-width: 720px) {
    body { font-size: 16px; }
    .container { padding: 0 16px; }
    .form-2 { grid-template-columns: 1fr; }
    .info-list > div { grid-template-columns: 1fr; gap: 2px; }
    .partners-table thead, .docs-table thead { display: none; }
    .partners-table, .partners-table tbody, .partners-table tr, .partners-table td,
    .docs-table, .docs-table tbody, .docs-table tr, .docs-table td { display: block; width: 100%; }
    .partners-table tr, .docs-table tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
    .partners-table td, .docs-table td { border: 0; padding: 2px 0; text-align: left; }
    .partners-table td:not(:first-child)::before, .docs-table td[data-label]:not(:first-child)::before { content: attr(data-label) ": "; color: var(--muted); font-size: .85rem; }
    .docs-actions a { margin: 0 14px 0 0; }
    .doc-item { flex-wrap: wrap; }
    .doc-actions { width: 100%; }
}
