/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

:root {
  --background: #f7f8f5;
  --surface: #ffffff;
  --surface-muted: #eef3ea;
  --border: #dce2d7;
  --text: #18201a;
  --muted: #667064;
  --primary: #1d6b4f;
  --primary-dark: #14513b;
  --danger: #b42318;
  --warning: #9a5b00;
  --done: #2f6d3d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.app-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.app-header {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.86);
  margin-bottom: 28px;
}

.app-header .app-shell {
  padding-top: 22px;
  padding-bottom: 22px;
}

.app-header h1,
.page-header h1 {
  margin: 0;
  line-height: 1.15;
}

.app-header h1 {
  font-size: 1.65rem;
}

.app-header h1 a {
  color: inherit;
}

.app-header p,
.page-header p,
.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
}

.page-header {
  margin-bottom: 22px;
}

.home-hero {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(280px, 0.78fr) minmax(420px, 1.22fr);
  margin-bottom: 22px;
}

.hero-copy {
  align-self: center;
  padding: 18px 0;
}

.eyebrow {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.hero-copy h1 {
  font-size: clamp(2.35rem, 5vw, 4.45rem);
  line-height: 1.05;
  margin: 0;
}

.hero-copy p {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 16px 0 0;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.hero-visual {
  align-self: center;
  margin: 0;
}

.hero-visual img {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(24, 32, 26, 0.12);
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}

.toolbar form {
  margin: 0;
}

.action-toolbar {
  margin-bottom: 10px;
}

.danger-toolbar {
  justify-content: flex-end;
  margin-top: -10px;
}

.public-hero {
  align-items: end;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 18px;
}

.public-hero h1 {
  font-size: clamp(2.25rem, 5vw, 4rem);
  margin: 0 0 12px;
}

.public-hero p {
  color: var(--muted);
  font-size: 1.12rem;
  margin: 0;
  max-width: 760px;
}

.public-status {
  justify-self: end;
}

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

.button {
  appearance: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 700;
  line-height: 1;
  padding: 12px 14px;
  text-decoration: none;
}

.button:hover {
  text-decoration: none;
}

.button-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.button-primary:hover {
  background: var(--primary-dark);
}

.button-danger {
  background: var(--danger);
  border-color: var(--danger);
  color: #ffffff;
}

.notice {
  background: #e8f5ed;
  border: 1px solid #bee4ca;
  border-radius: 8px;
  color: #185c2d;
  margin: 0 0 18px;
  padding: 10px 12px;
}

.idea-list {
  display: grid;
  gap: 16px;
}

.workflow-strip {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 28px;
}

.workflow-strip article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-height: 132px;
  padding: 16px;
}

.workflow-strip span {
  align-items: center;
  background: var(--surface-muted);
  border-radius: 999px;
  color: var(--primary-dark);
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 800;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.workflow-strip h2 {
  font-size: 1.08rem;
  margin: 16px 0 4px;
}

.workflow-strip p {
  color: var(--muted);
  margin: 0;
}

.ideas-section {
  margin-top: 8px;
}

.ideas-section .section-heading {
  margin-bottom: 14px;
}

.swot-grid,
.strategy-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
}

.swot-card,
.strategy-grid article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
}

.swot-card h2,
.strategy-grid h3 {
  margin: 0;
}

.swot-card p,
.strategy-grid p {
  color: var(--muted);
  margin: 4px 0 12px;
}

.swot-card ul,
.strategy-grid ul {
  margin: 0;
  padding-left: 18px;
}

.status-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.status-filter a {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 7px 10px;
}

.status-filter a:hover,
.status-filter a.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  text-decoration: none;
}

.idea-card,
.content-section,
.section-panel,
.empty-state {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.idea-card {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.idea-card h2 {
  font-size: 1.35rem;
  margin: 0 0 6px;
}

.idea-card p {
  margin: 0;
}

.meta-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  margin: 0;
}

.meta-grid div {
  background: var(--surface-muted);
  border-radius: 8px;
  padding: 10px;
}

.meta-grid dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.meta-grid dd {
  margin: 2px 0 0;
}

.link-row {
  display: flex;
  gap: 14px;
}

.content-section {
  margin-bottom: 18px;
  padding: 18px;
}

.quality-dashboard {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
  margin-bottom: 18px;
}

.quality-score-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
}

.quality-score-card p:last-child {
  color: var(--muted);
  margin-bottom: 0;
}

.score-ring {
  align-items: baseline;
  display: flex;
  gap: 6px;
  margin: 16px 0 10px;
}

.score-ring strong {
  color: var(--primary);
  font-size: 3.2rem;
  line-height: 1;
}

.score-ring span {
  color: var(--muted);
  font-weight: 800;
}

.compact-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.compact-list li {
  border-top: 1px solid var(--border);
  display: grid;
  gap: 3px;
  padding-top: 10px;
}

.compact-list span {
  color: var(--muted);
}

.inline-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.inline-actions form {
  margin: 0;
}

.criteria-grid,
.reviewer-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 16px;
}

.criteria-grid article,
.reviewer-grid article {
  background: var(--surface-muted);
  border-radius: 8px;
  padding: 12px;
}

.criteria-grid article div {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.criteria-grid span {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 8px;
  white-space: nowrap;
}

.criteria-grid p,
.reviewer-grid p {
  color: var(--muted);
  margin: 8px 0 0;
}

.reviewer-grid h3 {
  font-size: 1rem;
  margin: 0 0 8px;
}

.reviewer-grid ul {
  margin: 0;
  padding-left: 18px;
}

.summary-list {
  display: grid;
  gap: 0;
  margin: 14px 0 0;
}

.summary-list div {
  border-top: 1px solid var(--border);
  display: grid;
  gap: 10px;
  grid-template-columns: 140px minmax(0, 1fr);
  padding: 10px 0;
}

.summary-list dt {
  color: var(--muted);
  font-weight: 800;
}

.summary-list dd {
  margin: 0;
}

.content-section h2,
.section-heading h2,
.section-panel h3 {
  margin: 0 0 8px;
}

.section-board {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 16px;
}

.section-panel {
  padding: 16px;
}

.section-panel p {
  color: var(--muted);
  margin: 0 0 12px;
}

.task-list {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.task-list li {
  align-items: center;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding-top: 8px;
}

.task-title {
  min-width: 0;
}

.task-status-form {
  margin: 0;
}

.task-status-select,
.task-status-submit {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 7px 8px;
}

.task-status-submit {
  margin-left: 6px;
}

.status-pill {
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  padding: 6px 8px;
  white-space: nowrap;
}

.status-todo {
  background: #edf0f2;
  color: #46515a;
}

.status-doing {
  background: #fff4df;
  color: var(--warning);
}

.status-done {
  background: #e8f5ed;
  color: var(--done);
}

.status-hold {
  background: #f4efe6;
  color: #7a5b2e;
}

.status-idea {
  background: #eaf3f0;
  color: var(--primary-dark);
}

.empty-state {
  margin-top: 16px;
  padding: 16px;
}

.empty-state p {
  margin: 0;
}

.muted-copy {
  color: var(--muted);
  margin-top: 0;
}

.prompt-box {
  background: #f3f6f1;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 12px 0 0;
  overflow-x: auto;
  padding: 14px;
  white-space: pre-wrap;
}

.form-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 22px;
}

.question-grid {
  display: grid;
  gap: 14px;
  margin: 16px 0 22px;
}

.question-card {
  background: var(--surface-muted);
  border-radius: 8px;
  padding: 14px;
}

.question-card label {
  color: var(--text);
}

.starter-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: grid;
  gap: 18px;
  margin-bottom: 22px;
  padding: 18px;
}

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

.field-hero textarea {
  font-size: 1.12rem;
  min-height: 120px;
}

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

.field label {
  font-weight: 700;
}

.field input,
.field textarea,
.field select {
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  padding: 10px 12px;
  width: 100%;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.form-actions {
  display: flex;
}

.error-box {
  background: #fff0f0;
  border: 1px solid #ffc7c7;
  border-radius: 8px;
  color: #842029;
  padding: 12px;
}

@media (max-width: 640px) {
  .app-shell {
    padding-left: 14px;
    padding-right: 14px;
  }

  .home-hero,
  .workflow-strip,
  .starter-grid,
  .quality-dashboard,
  .public-hero,
  .public-grid,
  .swot-grid,
  .strategy-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-top: 0;
  }

  .hero-actions {
    display: grid;
  }

  .hero-visual img {
    max-height: 320px;
  }

  .button {
    justify-content: center;
    width: 100%;
  }

  .toolbar form {
    width: 100%;
  }

  .public-status {
    justify-self: start;
  }

  .task-list li {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .task-status-form {
    grid-column: 2;
  }

  .summary-list div {
    grid-template-columns: 1fr;
  }
}

/* Metallic policy research lab theme */
:root {
  --background: #101418;
  --surface: rgba(249, 250, 248, 0.92);
  --surface-muted: rgba(229, 232, 226, 0.82);
  --border: rgba(194, 198, 190, 0.78);
  --text: #151b20;
  --muted: #5c6468;
  --primary: #315f77;
  --primary-dark: #223f52;
  --warning: #9a6400;
  --done: #246f50;
  --chrome-shadow: rgba(6, 14, 18, 0.26);
  --lab-glow: rgba(112, 157, 178, 0.34);
}

body {
  background:
    linear-gradient(180deg, rgba(9, 14, 18, 0.22), rgba(9, 14, 18, 0.68) 58%, rgba(9, 14, 18, 0.88)),
    linear-gradient(90deg, rgba(30, 62, 78, 0.34), rgba(255, 255, 255, 0.08) 42%, rgba(53, 58, 51, 0.24)),
    url(/assets/policy-research-lab-background-67d79463d7b1bd585f3e33d6432d9bc9823ea93796e72433f9f9543939b7bfc0.png) center top / cover fixed,
    var(--background);
  min-height: 100vh;
}

body::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, transparent 0 48%, rgba(255, 255, 255, 0.08) 49% 51%, transparent 52% 100%);
  background-size: 72px 72px, 72px 72px, 240px 240px;
  content: "";
  inset: 0;
  opacity: 0.16;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

.app-shell {
  position: relative;
}

.app-header {
  backdrop-filter: blur(18px) saturate(145%);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(213, 218, 216, 0.78)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(112, 157, 178, 0.12));
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.86) inset,
    0 22px 54px rgba(5, 18, 24, 0.22);
}

.app-header h1,
.hero-copy h1,
.page-header h1 {
  text-shadow: 0 1px 0 #ffffff, 0 18px 40px rgba(24, 46, 58, 0.22);
}

.home-hero {
  perspective: 1200px;
}

.hero-copy,
.page-header,
.idea-card,
.content-section,
.section-panel,
.empty-state,
.quality-score-card,
.starter-form,
.swot-card,
.strategy-grid article,
.workflow-strip article {
  backdrop-filter: blur(16px) saturate(140%);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(224, 227, 224, 0.78)),
    linear-gradient(110deg, rgba(255, 255, 255, 0.58), rgba(112, 157, 178, 0.12) 46%, rgba(49, 55, 52, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.76);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 -22px 48px rgba(71, 91, 97, 0.14) inset,
    0 18px 44px var(--chrome-shadow);
}

.hero-copy {
  border-radius: 8px;
  padding: 26px;
  transform: rotateY(-2deg) translateZ(0);
}

.page-header {
  border-radius: 8px;
  padding: 22px;
}

.hero-visual img {
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 28px 62px rgba(6, 14, 18, 0.34),
    0 0 0 6px rgba(255, 255, 255, 0.12);
  transform: rotateY(4deg) rotateX(1deg);
}

.button,
.status-filter a,
.task-status-select,
.task-status-submit,
.field input,
.field textarea,
.field select {
  background:
    linear-gradient(180deg, #ffffff 0%, #e1e5e4 46%, #a8b0b2 47%, #f7f8f5 100%);
  border-color: rgba(132, 140, 143, 0.92);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 -1px 0 rgba(64, 81, 87, 0.2) inset,
    0 10px 20px rgba(5, 18, 24, 0.16);
}

.button {
  align-items: center;
  color: #17272d;
  gap: 8px;
  justify-content: center;
  min-height: 42px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.84);
  transition: box-shadow 160ms ease, transform 160ms ease, filter 160ms ease;
}

.button:hover,
.status-filter a:hover,
.status-filter a.is-active {
  filter: brightness(1.04) saturate(1.08);
  text-decoration: none;
  transform: translateY(-1px);
}

.button:active,
.status-filter a:active {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55) inset,
    0 2px 8px rgba(5, 18, 24, 0.2);
  transform: translateY(1px);
}

.button-primary,
.status-filter a.is-active {
  background:
    linear-gradient(180deg, #c9eff8 0%, #5f92aa 44%, #315f77 45%, #78a8bd 100%);
  border-color: #c1e4ef;
  color: #071d27;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.88) inset,
    0 0 0 1px rgba(193, 228, 239, 0.34),
    0 14px 30px rgba(25, 60, 77, 0.34);
}

.button-primary:hover {
  background:
    linear-gradient(180deg, #e0f8fc 0%, #6da0b8 44%, #386b85 45%, #86b8c8 100%);
}

.button-danger {
  background:
    linear-gradient(180deg, #ffd8d4 0%, #d94438 45%, #9d2118 46%, #ef7168 100%);
  border-color: #ffb0aa;
  color: #ffffff;
  text-shadow: 0 1px 0 rgba(70, 0, 0, 0.42);
}

.workflow-strip span,
.status-pill,
.criteria-grid span {
  background:
    linear-gradient(180deg, #ffffff, #dde2df 48%, #aab2b1 49%, #f6f7f3);
  border: 1px solid rgba(137, 147, 149, 0.72);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset, 0 6px 14px rgba(5, 18, 24, 0.12);
}

.meta-grid div,
.criteria-grid article,
.reviewer-grid article,
.question-card,
.prompt-box {
  background: rgba(232, 235, 231, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.82) inset;
}

.notice {
  backdrop-filter: blur(12px);
  background: rgba(219, 250, 236, 0.88);
  box-shadow: 0 12px 28px rgba(5, 18, 24, 0.18);
}

@media (max-width: 640px) {
  body {
    background-attachment: scroll;
  }

  .hero-copy,
  .hero-visual img {
    transform: none;
  }

  .page-header {
    padding: 16px;
  }
}
