/* Advant Suite – base styles. Themes can override the custom properties. */
:root {
	--as-accent: #b51f19;
	--as-accent-dark: #8f150f;
	--as-ink: #1d1a1b;
	--as-muted: #5f5b5c;
	--as-line: #e3dfdf;
	--as-soft: #f6f4f4;
	--as-card: #ffffff;
	--as-ok: #1f7a4d;
	--as-radius: 10px;
}

.as-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.as-muted { color: var(--as-muted); }
.as-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .04em; }
.as-req { color: var(--as-accent); }
.as-help { font-size: .875rem; color: var(--as-muted); margin: .35rem 0 0; }
.as-back { margin: 0 0 1rem; }
.as-back a { color: var(--as-muted); text-decoration: none; font-weight: 500; }
.as-back a:hover { color: var(--as-accent); }

/* Buttons */
.as-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.4rem; border-radius: 999px; border: 2px solid transparent; font: inherit; font-weight: 600; font-size: .95rem; line-height: 1.2; cursor: pointer; text-decoration: none; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.as-btn:hover { transform: translateY(-1px); }
.as-btn--primary { background: var(--as-accent); color: #fff; }
.as-btn--primary:hover { background: var(--as-accent-dark); color: #fff; }
.as-btn--dark { background: var(--as-ink); color: #fff; }
.as-btn--dark:hover { background: #000; color: #fff; }
.as-btn--ghost { background: transparent; color: var(--as-ink); border-color: var(--as-line); }
.as-btn--ghost:hover { border-color: var(--as-ink); color: var(--as-ink); }
.as-link { color: var(--as-ink); font-weight: 600; margin-left: .75rem; }
.as-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1.25rem; }

/* Cards */
.as-card { background: var(--as-card); border: 1px solid var(--as-line); border-radius: var(--as-radius); padding: clamp(1.25rem, 3vw, 2.25rem); box-shadow: 0 10px 30px -20px rgba(29,26,27,.25); }
.as-card--narrow { max-width: 560px; }
.as-card__head { margin-bottom: 1.5rem; }
.as-card__head h2, .as-card__head h3 { margin: .25rem 0 .5rem; }
.as-card--success { text-align: center; border-color: #cfe7da; }
.as-icon-ok { width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; background: #e7f4ec; color: var(--as-ok); font-size: 1.6rem; font-weight: 700; }
.as-pill { display: inline-block; padding: .25rem .75rem; border-radius: 999px; background: rgba(181,31,25,.1); color: var(--as-accent); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.as-pill--dark { background: var(--as-ink); color: #fff; }

/* Notices */
.as-notice { padding: 1rem 1.25rem; border-radius: var(--as-radius); margin: 0 0 1.25rem; border-left: 4px solid; background: var(--as-soft); }
.as-notice ul { margin: 0; padding-left: 1.1rem; }
.as-notice--error { border-color: var(--as-accent); background: #fdf1f0; }
.as-notice--success { border-color: var(--as-ok); background: #eef7f2; }
.as-notice--info { border-color: var(--as-ink); }

/* Forms */
.as-form fieldset { border: 0; padding: 0; margin: 0 0 1.75rem; }
.as-form legend { font-weight: 700; font-size: 1.05rem; margin-bottom: 1rem; padding: 0; }
.as-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 1.25rem; }
.as-grid[hidden] { display: none; }
.as-field { margin-bottom: 1.1rem; display: flex; flex-direction: column; }
.as-field label { font-weight: 600; font-size: .9rem; margin-bottom: .4rem; }
.as-form input[type="text"], .as-form input[type="email"], .as-form input[type="tel"], .as-form input[type="url"], .as-form input[type="password"], .as-form input:not([type]), .as-form select, .as-form textarea {
	width: 100%; box-sizing: border-box; padding: .75rem .9rem; border: 1px solid #cfc9c9; border-radius: 8px; background: #fff; font: inherit; color: var(--as-ink); transition: border-color .15s, box-shadow .15s;
}
.as-form input:focus, .as-form select:focus, .as-form textarea:focus { outline: none; border-color: var(--as-accent); box-shadow: 0 0 0 3px rgba(181,31,25,.15); }
.as-form input[type="file"] { padding: .6rem; border: 1px dashed #cfc9c9; border-radius: 8px; background: var(--as-soft); width: 100%; box-sizing: border-box; }
.as-check { display: flex; gap: .65rem; align-items: flex-start; margin: .6rem 0; font-size: .92rem; line-height: 1.45; cursor: pointer; }
.as-check input { margin-top: .2rem; width: 18px; height: 18px; accent-color: var(--as-accent); flex: none; }

/* Jobs */
.as-jobs__filters { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-bottom: 1.5rem; }
.as-jobs__filters select { padding: .65rem 2.25rem .65rem .9rem; border: 1px solid var(--as-line); border-radius: 999px; font: inherit; background: #fff; }
.as-jobs__count { margin-left: auto; color: var(--as-muted); font-size: .9rem; }
.as-jobs__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.as-job__link { display: grid; grid-template-columns: 1fr auto auto; gap: 1.5rem; align-items: center; padding: 1.4rem 1.6rem; border: 1px solid var(--as-line); border-radius: var(--as-radius); background: #fff; color: inherit; text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.as-job__link:hover { border-color: var(--as-accent); box-shadow: 0 14px 30px -22px rgba(181,31,25,.6); transform: translateY(-2px); }
.as-job__area { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--as-accent); }
.as-job__title { margin: .3rem 0 .25rem; font-size: 1.2rem; }
.as-job__excerpt { margin: 0; color: var(--as-muted); font-size: .93rem; }
.as-job__meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; }
.as-job__meta li { font-size: .82rem; padding: .3rem .7rem; background: var(--as-soft); border-radius: 999px; white-space: nowrap; }
.as-job__arrow { font-size: 1.4rem; color: var(--as-accent); }
@media (max-width: 720px) { .as-job__link { grid-template-columns: 1fr; gap: .8rem; } .as-job__meta { justify-content: flex-start; } .as-job__arrow { display: none; } }
.as-empty { padding: 2rem; text-align: center; background: var(--as-soft); border-radius: var(--as-radius); color: var(--as-muted); }

/* Case studies */
.as-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; }
.as-chip { padding: .55rem 1.1rem; border-radius: 999px; border: 1px solid var(--as-line); background: #fff; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; color: var(--as-ink); }
.as-chip.is-active, .as-chip:hover { background: var(--as-ink); color: #fff; border-color: var(--as-ink); }
.as-cases__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 1000px) { .as-cases__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .as-cases__grid { grid-template-columns: 1fr; } }
.as-case[hidden] { display: none; }
.as-case__link { display: flex; flex-direction: column; height: 100%; border-radius: var(--as-radius); overflow: hidden; background: #fff; border: 1px solid var(--as-line); color: inherit; text-decoration: none; transition: transform .25s, box-shadow .25s; }
.as-case__link:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(29,26,27,.55); }
.as-case__media { aspect-ratio: 16 / 9; background: var(--as-ink); overflow: hidden; }
.as-case__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; display: block; }
.as-case__link:hover .as-case__media img { transform: scale(1.05); }
.as-case__body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.as-case__cat { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--as-accent); }
.as-case__title { margin: 0; font-size: 1.2rem; line-height: 1.3; }
.as-case__excerpt { margin: 0; color: var(--as-muted); font-size: .93rem; flex: 1; }
.as-tags { list-style: none; padding: 0; margin: .5rem 0 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.as-tags li { font-size: .75rem; padding: .25rem .6rem; border-radius: 4px; background: var(--as-soft); color: var(--as-ink); font-weight: 600; }

/* Whistleblowing */
.as-wb-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.25rem; }
.as-option { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; padding: 1.75rem; border-radius: var(--as-radius); background: #fff; border: 1px solid var(--as-line); box-shadow: 0 16px 36px -30px rgba(29,26,27,.6); }
.as-option h3 { margin: .5rem 0 0; font-size: 1.25rem; }
.as-option p { margin: 0 0 .75rem; color: var(--as-muted); font-size: .95rem; }
.as-option .as-btn { margin-top: auto; }
.as-option .as-link { margin: .75rem 0 0; }
.as-option__icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 12px; background: rgba(181,31,25,.1); color: var(--as-accent); }
.as-option__tag { font-size: .75rem !important; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--as-accent) !important; margin: 0 0 .5rem !important; }
.as-option--light { background: var(--as-soft); }
.as-guarantees { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .75rem; }
.as-guarantees li { position: relative; padding-left: 1.75rem; font-size: .92rem; font-weight: 500; }
.as-guarantees li::before { content: ""; position: absolute; left: 0; top: .25rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--as-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat; }
.as-credentials { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 1.5rem auto; max-width: 640px; }
.as-credentials div { padding: 1.1rem; border-radius: var(--as-radius); background: var(--as-ink); color: #fff; display: flex; flex-direction: column; gap: .4rem; }
.as-credentials span { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; opacity: .7; }
.as-credentials code { font-size: 1.25rem; font-weight: 700; letter-spacing: .08em; background: none; color: #fff; }
.as-card--success .as-actions { justify-content: center; }
.as-report-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1rem; padding-bottom: 1.25rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--as-line); }
.as-report-head h2 { margin: .2rem 0; }
.as-report-head .as-actions { margin: 0; }
.as-status { display: inline-block; padding: .4rem .9rem; border-radius: 999px; font-size: .82rem; font-weight: 700; background: var(--as-soft); }
.as-status--received { background: #fff3d6; color: #7a5a00; }
.as-status--in_review { background: #e4eefc; color: #1d4f91; }
.as-status--need_info { background: #fde7e5; color: var(--as-accent-dark); }
.as-status--closed_founded, .as-status--closed_unfounded, .as-status--closed_inadmissible { background: #e9e7e7; color: #3b3738; }
.as-details { margin-bottom: 1.5rem; border: 1px solid var(--as-line); border-radius: 8px; padding: .9rem 1.1rem; }
.as-details summary { cursor: pointer; font-weight: 600; }
.as-details dt { font-weight: 700; font-size: .85rem; margin-top: .9rem; }
.as-details dd { margin: .25rem 0 0; }
.as-thread { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .8rem; }
.as-msg { padding: 1rem 1.15rem; border-radius: 10px; background: var(--as-soft); max-width: 85%; }
.as-msg--reporter { margin-left: auto; background: #fff; border: 1px solid var(--as-line); }
.as-msg--manager { background: #fdf1f0; border-left: 3px solid var(--as-accent); }
.as-msg--system { background: transparent; border: 1px dashed var(--as-line); max-width: 100%; font-size: .92rem; }
.as-msg__meta { font-size: .8rem; color: var(--as-muted); margin-bottom: .35rem; }
.as-table { width: 100%; border-collapse: collapse; }
.as-table th, .as-table td { text-align: left; padding: .85rem .6rem; border-bottom: 1px solid var(--as-line); }
.as-table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--as-muted); }

@media print {
	body * { visibility: hidden; }
	.as-card--success, .as-card--success * { visibility: visible; }
	.as-card--success { position: absolute; left: 0; top: 0; width: 100%; box-shadow: none; }
	.as-card--success .as-actions, .as-card--success .as-btn { display: none; }
}
