* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --bg: #f5f0e8;
  --bg-2: #f0f7f5;
  --bg-3: #f9eadb;
  --panel: #ffffff;
  --panel-2: #f7f3ed;
  --ink: #1b1c1f;
  --muted: rgba(27, 28, 31, 0.65);
  --accent: #ef6c2f;
  --accent-2: #0f8a8a;
  --accent-3: #f2c14f;
  --stroke: rgba(27, 28, 31, 0.12);
  --shadow: 0 18px 45px rgba(30, 32, 34, 0.12);
  --radius: 20px;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --font-display: "Sora", "Segoe UI", sans-serif;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: linear-gradient(140deg, var(--bg), var(--bg-2) 45%, var(--bg-3));
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  margin-top: 0;
}

.form h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

body.panel {
  background: linear-gradient(140deg, #f4f2ee, #eef4f2 55%, #fbf2e7);
}

.backdrop {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 5% 15%, rgba(239, 108, 47, 0.16), transparent 35%),
    radial-gradient(circle at 90% 10%, rgba(15, 138, 138, 0.18), transparent 45%),
    radial-gradient(circle at 70% 90%, rgba(242, 193, 79, 0.2), transparent 45%);
  pointer-events: none;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.page {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 240, 232, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(27, 28, 31, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav a {
  font-weight: 600;
  color: var(--muted);
}

.site-nav .nav-cta {
  color: var(--accent);
  font-weight: 700;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
}

.nav-toggle span + span {
  margin-top: 4px;
}

.hero {
  padding: 70px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
  align-items: center;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.3rem);
  margin: 8px 0 12px;
}

.lead {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 24px;
}

.hero-card {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  border: 1px solid rgba(27, 28, 31, 0.08);
}

.hero-card-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pill-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  background: var(--panel-2);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.metric {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--accent-2);
  margin: 0;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.section {
  padding: 48px 0;
}

.section.slim {
  padding: 32px 0 60px;
}

.section.alt {
  background: rgba(255, 255, 255, 0.6);
  border-top: 1px solid rgba(27, 28, 31, 0.06);
  border-bottom: 1px solid rgba(27, 28, 31, 0.06);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 28px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.section-head h2 {
  font-family: var(--font-display);
  margin: 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-2);
  margin: 0 0 8px;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid.cards {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid.list {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--panel);
  padding: 22px;
  border-radius: 18px;
  border: 1px solid rgba(27, 28, 31, 0.08);
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 6px;
}

.news-card h3 {
  font-size: 1.02rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.badge {
  background: var(--accent-3);
  color: #3b2a00;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.meta {
  font-size: 0.9rem;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.clamp {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  background: rgba(15, 138, 138, 0.12);
  color: #0a4f4f;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}

.btn {
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 12px 22px rgba(239, 108, 47, 0.25);
  justify-content: center;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.btn:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(27, 28, 31, 0.16);
  box-shadow: none;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn.ghost:hover,
.btn.ghost:focus-visible {
  background: rgba(27, 28, 31, 0.06);
  border-color: rgba(27, 28, 31, 0.28);
}

.btn.ghost.danger {
  color: #b23b2d;
  border-color: rgba(178, 59, 45, 0.35);
  background: rgba(178, 59, 45, 0.06);
}

.btn.ghost.danger:hover,
.btn.ghost.danger:focus-visible {
  background: rgba(178, 59, 45, 0.12);
  border-color: rgba(178, 59, 45, 0.55);
}

.link {
  color: var(--accent-2);
  font-weight: 700;
  transition: color 0.15s ease, transform 0.15s ease, background-color 0.15s ease;
}

.link button,
button.link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.link:hover,
.link:focus-visible,
.link button:hover,
button.link:hover {
  color: #0b6f6f;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link:focus-visible,
button.link:focus-visible {
  outline: 2px solid rgba(15, 138, 138, 0.35);
  outline-offset: 2px;
  border-radius: 6px;
}

.link.danger {
  color: #b23b2d;
}

.link.danger:hover,
.link.danger:focus-visible {
  color: #922a1f;
}

.list-item {
  background: var(--panel);
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(27, 28, 31, 0.08);
}

.steps {
  display: grid;
  gap: 16px;
}

.step {
  background: var(--panel);
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(27, 28, 31, 0.08);
  display: flex;
  gap: 14px;
}

.step-number {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--accent);
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: center;
}

.split-top {
  align-items: start;
}

.cta {
  padding-bottom: 80px;
}

.cta-inner {
  background: var(--panel);
  border-radius: 24px;
  border: 1px solid rgba(27, 28, 31, 0.08);
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-footer {
  background: rgba(255, 255, 255, 0.8);
  border-top: 1px solid rgba(27, 28, 31, 0.08);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.panel-filters {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.panel-filters .filter-bar {
  margin-bottom: 0;
}

.filter-bar.filter-bar-more {
  margin-top: 12px;
}

.filter-more {
  border: 1px dashed rgba(27, 28, 31, 0.16);
  border-radius: 16px;
  padding: 12px 16px 16px;
  background: rgba(255, 255, 255, 0.7);
}

.filter-more summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--accent-2);
  list-style: none;
  display: inline-flex;
  align-items: center;
}

.filter-more summary::-webkit-details-marker {
  display: none;
}

.filter-more summary::after {
  content: "+";
  margin-left: 6px;
  font-weight: 700;
}

.filter-more[open] summary::after {
  content: "-";
}

.filter-actions {
  align-self: end;
}

.filter-actions .btn {
  width: 100%;
  justify-content: center;
}

.filter-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.results-meta {
  margin: 0 0 20px;
}

.form {
  display: grid;
  gap: 16px;
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-form .field {
  min-width: 0;
}

.job-form .field {
  min-width: 0;
}

.form-required {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.form-required .req {
  color: #b23b2d;
  font-weight: 700;
}

.form-grid .form-required {
  grid-column: span 2;
}

.required::after {
  content: "\00a0*";
  color: #b23b2d;
  font-weight: 700;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 0.85rem;
  color: var(--muted);
}

.field .hint {
  min-height: 1em;
}

.req {
  color: #b23b2d;
  font-weight: 700;
}

.field.checkbox .req {
  color: #b23b2d;
}

.field input,
.field select,
.field textarea {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(27, 28, 31, 0.16);
  background: #fff;
  font-family: inherit;
}

.field textarea {
  resize: vertical;
}

.field.checkbox {
  grid-column: span 2;
}

.field.checkbox label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.field.checkbox label span {
  font-size: 0.9rem;
}

.field.span-2 {
  grid-column: span 2;
}

.panel-header {
  background: rgba(245, 240, 232, 0.92);
  border-bottom: 1px solid rgba(27, 28, 31, 0.06);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
}

.panel-inner {
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

.panel-nav {
  display: flex;
  gap: 16px;
  align-items: center;
  font-weight: 600;
  color: var(--muted);
}

.panel-nav a {
  color: inherit;
}

.panel-nav .nav-logout {
  color: #b23b2d;
  font-weight: 700;
}

.panel-user {
  display: flex;
  align-items: center;
  gap: 12px;
}


.panel-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.panel-list {
  display: grid;
  gap: 14px;
}

.load-more {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

.js-enabled .kanban-fallback {
  display: none;
}

.kanban-hint {
  margin: 0 0 18px;
}

.kanban-card {
  cursor: grab;
}

.kanban-card.is-dragging {
  opacity: 0.6;
  cursor: grabbing;
}

.kanban-column-body.is-over {
  border-color: rgba(25, 95, 155, 0.4);
  background: rgba(25, 95, 155, 0.06);
}

.pagination {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pagination-info {
  font-weight: 600;
  color: var(--muted);
}

.pagination .disabled {
  opacity: 0.5;
  pointer-events: none;
}

.panel-item {
  background: var(--panel);
  border-radius: 16px;
  border: 1px solid rgba(27, 28, 31, 0.08);
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.new-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d64545;
  margin-left: 6px;
  box-shadow: 0 0 0 4px rgba(214, 69, 69, 0.16);
}

.panel-item-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.status-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.status-form select {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(27, 28, 31, 0.16);
  background: #fff;
  font-family: inherit;
  font-size: 0.85rem;
}

.status-form .link {
  font-size: 0.85rem;
}

.panel-item.compact {
  padding: 12px;
  border-radius: 12px;
  gap: 12px;
}

.panel-item.compact strong {
  font-size: 0.95rem;
}

.panel-item.compact .muted {
  font-size: 0.85rem;
}

.panel-item.compact .pill {
  padding: 4px 10px;
  font-size: 0.78rem;
}

.inline-form {
  display: inline;
  margin-left: 6px;
}

.inline-form button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.kanban-scroll {
  position: relative;
}

.kanban-scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  background: var(--accent);
  color: #fff;
  border: none;
  box-shadow: 0 10px 22px rgba(239, 108, 47, 0.35);
}

.kanban-scroll-btn.left {
  left: -6px;
}

.kanban-scroll-btn.right {
  right: -6px;
}

.kanban-scroll-btn:hover {
  filter: brightness(1.02);
  transform: translateY(-50%) scale(1.03);
}

.kanban-board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.kanban-board::-webkit-scrollbar {
  height: 0;
}

.kanban-column {
  background: var(--panel);
  border-radius: 16px;
  border: 1px solid rgba(27, 28, 31, 0.08);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

.kanban-column-head {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(27, 28, 31, 0.08);
}

.kanban-column-body {
  padding: 10px 12px;
  display: grid;
  gap: 10px;
  border: 1px dashed transparent;
  border-radius: 12px;
  min-height: 120px;
  flex: 1;
  align-content: start;
}

.kanban-card {
  background: var(--panel-2);
  border-radius: 12px;
  padding: 10px;
  border: 1px solid rgba(27, 28, 31, 0.08);
  display: grid;
  gap: 6px;
}

.kanban-column-head h3 {
  font-size: 0.95rem;
}

.kanban-column-head .pill {
  font-size: 0.8rem;
  padding: 4px 8px;
}

.kanban-card > div {
  display: grid;
  gap: 4px;
}

.kanban-card strong {
  font-size: 0.92rem;
}

.kanban-card p {
  margin: 0;
}

.kanban-card .muted,
.kanban-card .link {
  font-size: 0.82rem;
}


.kanban-move {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.kanban-move select {
  flex: 1 1 140px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(27, 28, 31, 0.16);
  background: #fff;
  font-family: inherit;
}

.detail-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 32px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.detail-card,
.detail-meta {
  background: var(--panel);
  border-radius: 18px;
  border: 1px solid rgba(27, 28, 31, 0.08);
  padding: 22px;
  box-shadow: var(--shadow);
}

.detail-meta {
  display: grid;
  gap: 14px;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
}

.meta-item {
  display: grid;
  gap: 4px;
}

.preline {
  white-space: pre-line;
}

.modal .meta-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
}

.modal .meta-item {
  gap: 2px;
}

.modal .meta-item span {
  font-size: 0.78rem;
  color: var(--muted);
}

.modal .meta-item strong {
  font-size: 0.9rem;
}

@media (max-width: 720px) {
  .meta-grid {
    grid-template-columns: 1fr;
  }
}

.notice {
  margin-top: 28px;
  background: rgba(15, 138, 138, 0.08);
  border-radius: 16px;
  padding: 18px;
}

.notice.notice-compact {
  padding: 10px 12px;
  border-radius: 12px;
  margin-top: 0;
}

.notice.highlight {
  background: rgba(239, 108, 47, 0.12);
  border: 1px solid rgba(239, 108, 47, 0.18);
}

.login-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: center;
}

.login-grid.single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 680px;
  margin: 0 auto;
}

.login-card {
  background: var(--panel);
  padding: 28px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(27, 28, 31, 0.08);
}

.privacy-card {
  padding: 20px;
}

.privacy-card .eyebrow {
  margin-bottom: 6px;
}

.privacy-card h1 {
  margin-bottom: 8px;
}

.privacy-card .notice {
  margin-top: 0;
  padding: 12px;
  border-radius: 12px;
}

.privacy-stack {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.privacy-meta {
  margin-top: 4px;
}

.privacy-meta .meta-item {
  gap: 2px;
}

.privacy-meta span {
  font-size: 0.78rem;
}

.privacy-meta strong {
  font-size: 0.92rem;
}

.privacy-list {
  margin-top: 16px;
  padding: 16px;
  box-shadow: none;
}

.privacy-list .panel-list {
  gap: 12px;
}

.privacy-list .panel-item {
  padding: 12px;
  border-radius: 12px;
  align-items: flex-start;
}

.privacy-list .panel-item-actions {
  align-self: center;
}

.privacy-list .btn.ghost {
  padding: 8px 12px;
  font-size: 0.82rem;
}

.privacy-actions {
  margin-top: 12px;
}

.privacy-actions .btn {
  padding: 10px 16px;
}

.apply-form {
  gap: 12px;
}

.apply-form .field {
  gap: 6px;
}

.apply-form input,
.apply-form select,
.apply-form textarea {
  padding: 10px 12px;
}

.apply-form .field button {
  justify-self: center;
}

.login-info {
  display: grid;
  gap: 16px;
}

.role-grid {
  display: grid;
  gap: 12px;
}

.role-card {
  background: var(--panel);
  border-radius: 14px;
  padding: 14px;
  border: 1px solid rgba(27, 28, 31, 0.08);
}

.flash-stack {
  display: grid;
  gap: 8px;
  margin: 20px 0;
}

.flash {
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid rgba(27, 28, 31, 0.08);
  font-weight: 600;
}

.flash.success {
  border-color: rgba(15, 138, 138, 0.4);
  color: #0a4f4f;
}

.flash.error {
  border-color: rgba(178, 59, 45, 0.4);
  color: #7a1c14;
}

.flash.warning {
  border-color: rgba(242, 193, 79, 0.6);
  color: #594000;
}

.empty {
  background: rgba(255, 255, 255, 0.8);
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(27, 28, 31, 0.08);
}

.error-page {
  text-align: center;
  padding: 60px 0;
}

[data-modal] {
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 30, 0.35);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 40;
  padding: 24px;
}

[data-modal].is-open {
  display: flex;
}

.modal {
  width: min(720px, 92vw);
  max-height: 86vh;
  background: var(--panel);
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(27, 28, 31, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(27, 28, 31, 0.08);
  background: var(--panel-2);
}

.modal-header h3 {
  margin: 0;
}

.modal-content {
  padding: 20px;
  overflow-y: auto;
  display: grid;
  gap: 16px;
}

.tab-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0 8px;
}

.tab-panel[hidden] {
  display: none;
}

.modal-section .detail-card {
  box-shadow: none;
}

body.modal-open {
  overflow: hidden;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--d, 0s);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .hero-grid,
  .split,
  .detail-grid,
  .login-grid {
    grid-template-columns: 1fr;
  }

  .detail-header {
    flex-direction: column;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-head .btn {
    padding: 10px 14px;
    font-size: 0.9rem;
    align-self: flex-start;
    white-space: nowrap;
  }

  .form-grid,
  form.form-grid {
    grid-template-columns: 1fr;
  }

  .field.checkbox,
  .field.span-2 {
    grid-column: span 1;
  }

  .panel-item-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .profile-form {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .profile-form .form-required {
    grid-column: span 1;
  }

  .profile-form .field.span-2,
  .profile-form .field.checkbox {
    grid-column: span 1;
  }

  .profile-form h3 {
    margin: 0 0 6px;
    font-size: 1rem;
  }

  .job-form {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .job-form .form-required {
    grid-column: span 1;
  }

  .job-form .field.span-2,
  .job-form .field.checkbox {
    grid-column: span 1;
  }

  .site-nav {
    position: absolute;
    top: 70px;
    right: 4vw;
    background: var(--panel);
    border-radius: 16px;
    padding: 14px;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.2s ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .panel-nav {
    position: absolute;
    top: 70px;
    right: 4vw;
    background: var(--panel);
    border-radius: 16px;
    padding: 10px 12px;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    width: 180px;
    max-width: 180px;
    min-width: 180px;
  }

  .panel-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .panel-nav {
    width: 100%;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (min-width: 901px) {
  .filter-actions {
    justify-self: start;
  }

  .filter-actions .btn {
    width: auto;
    padding: 12px 22px;
  }
}

@media (max-width: 680px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .field.checkbox,
  .field.span-2 {
    grid-column: span 1;
  }

  .panel-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .panel-item-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .panel-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .panel-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .panel-actions.kanban-actions {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }

  .panel-actions.kanban-actions .btn {
    width: auto;
  }

  .detail-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .detail-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .section-head .btn {
    font-size: 0.85rem;
    padding: 8px 12px;
  }

  [data-modal] {
    padding: 12px 12px 20px;
    align-items: flex-start;
  }

  .modal {
    width: 100%;
    max-height: 82vh;
    border-radius: 16px;
    margin-top: 64px;
  }

  .modal-header {
    padding: 12px 16px;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
  }

  .modal-header h3 {
    font-size: 1rem;
  }

  .modal-header .btn {
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  .modal-content {
    padding: 16px;
  }

  .tab-row {
    gap: 6px;
  }

  .tab-row .btn {
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  .modal .meta-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .modal-section .detail-card {
    padding: 14px;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    transition: none;
  }
}
