html.theme-dark{
  --home-lead-color:#93c5fd;
}

.home-page{
  display:grid;
  gap:28px;
  margin-block:16px 40px;
}

.home-intro{
  display:grid;
  gap:8px;
  max-width:720px;
  margin:0 auto;
}

.home-intro [data-home-field="body_html"],
.home-intro [data-home-field="body_html"] *{
  font-size:inherit !important;
  line-height:inherit !important;
  font-family:inherit !important;
  color:inherit !important;
}

.home-intro h1{
  margin:0;
  font-size:2.4rem;
  line-height:1.2;
}

.home-intro [data-home-field="lead"]{
  margin:0;
  font-weight:600;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:var(--home-lead-color, #1d4ed8);
}

#homePage:not(.is-editing) .home-intro [data-home-field]:empty{
  display:none;
}

#homePage:not(.is-editing) .home-intro.is-empty{
  display:none;
}

.home-intro [data-home-field="body_html"]{
  display:grid;
  gap:8px;
  line-height:1.4;
}

html.theme-dark .home-intro{
  color:#e2e8f0;
}

html.theme-dark .home-intro [data-home-field="body_html"],
html.theme-dark .home-intro [data-home-field="body_html"] *{
  background-color:transparent !important;
  color:inherit !important;
}

html.theme-dark .home-intro [data-home-field="body_html"] a{
  color:#bfdbfe !important;
}

.home-intro [data-home-field] figure,
.home-intro [data-home-field] .rt-embed{
  margin:0;
}

.home-intro [data-home-field="body_html"] p{
  margin:0;
}

.home-intro [data-home-field="body_html"] p + p{
  margin-top:0;
}

.home-sections{
  display:grid;
  gap:24px;
  margin-top:12px;
}

.home-blocks{
  display:grid;
  gap:24px;
  max-width:960px;
  margin:0 auto;
  width:100%;
}

.home-block{
  padding:24px;
  border-radius:20px;
  border:1px solid rgba(148,163,184,.35);
  background:rgba(248,250,252,.96);
  position:relative;
  box-shadow:0 10px 28px -32px rgba(15,23,42,.24);
  transition:border .2s ease, box-shadow .2s ease;
}

html.theme-dark .home-block{
  background:rgba(15,23,42,.78);
  border-color:rgba(148,163,184,.25);
  box-shadow:0 12px 40px -32px rgba(15,23,42,.6);
}

.home-block__content{
  display:grid;
  gap:12px;
  line-height:1.6;
}

.home-block__content,
.home-block__content *{
  font-size:inherit !important;
  line-height:inherit !important;
  font-family:inherit !important;
  color:inherit !important;
}

.home-block__content h3{
  margin:0;
  font-size:1.35rem;
  font-weight:700;
}

.home-block__content p,
.home-block__content ul,
.home-block__content ol{
  margin:0;
}

.home-block__content blockquote{
  margin:0;
  padding:0 0 0 1rem;
  border-left:3px solid rgba(59,130,246,.6);
  font-style:italic;
  color:#1f2937;
}

html.theme-dark .home-block__content blockquote{
  color:#e2e8f0;
  border-left-color:rgba(96,165,250,.75);
}

.home-block__content pre{
  margin:0;
  padding:12px 16px;
  border-radius:14px;
  background:rgba(15,23,42,.08);
  font-family:Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  overflow-x:auto;
}

html.theme-dark .home-block__content pre{
  background:rgba(15,23,42,.6);
  color:#e2e8f0;
}

.home-block__content code{
  font-family:Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}

.home-block__content figure{
  margin:0;
  display:grid;
  gap:8px;
}

.home-blocks__empty{
  padding:24px;
  border-radius:18px;
  border:1px dashed rgba(148,163,184,.4);
  background:rgba(15,23,42,.02);
  text-align:center;
  color:#475569;
  font-weight:500;
}

html.theme-dark .home-blocks__empty{
  background:rgba(15,23,42,.6);
  border-color:rgba(148,163,184,.35);
  color:#cbd5f5;
}

.home-block__content figure img,
.home-block__content figure video{
  width:100%;
  height:auto;
  border-radius:16px;
}

.home-block__content figure figcaption{
  font-size:.85rem;
  color:#475569;
}

html.theme-dark .home-block__content figure figcaption{
  color:#cbd5f5;
}

.home-block__content .rt-embed{
  width:100%;
  position:relative;
  padding-top:56.25%;
  border-radius:16px;
  overflow:hidden;
  background:rgba(15,23,42,.08);
}

.home-block__content .rt-embed iframe,
.home-block__content .rt-embed video{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  border:0;
}

.home-block__controls{
  position:absolute;
  top:10px;
  right:10px;
  display:none;
  gap:6px;
}

.home-block__controls button{
  border:none;
  background:rgba(15,23,42,.1);
  color:#0f172a;
  width:30px;
  height:30px;
  border-radius:10px;
  cursor:pointer;
  transition:background .2s ease;
}

.home-block__controls button:hover{
  background:rgba(59,130,246,.22);
}

html.theme-dark .home-block__controls button{
  background:rgba(148,163,184,.25);
  color:#e2e8f0;
}

html.theme-dark .home-block__controls button:hover{
  background:rgba(59,130,246,.35);
}

/* Inline editing */
#homeInlineToolbar{
  position:fixed;
  left:16px;
  top:calc(var(--header-h, 72px) + 16px);
  z-index:2200;
  display:flex;
  flex-direction:column;
  gap:12px;
}

#homeInlineToolbar .home-inline-toolbar__content{
  display:none;
}

#homeInlineToolbar.is-expanded{
  left:50%;
  transform:translateX(-50%);
  flex-direction:row;
  align-items:center;
}

#homeInlineToolbar.is-expanded .home-inline-toolbar__content{
  display:flex;
  align-items:center;
  gap:12px;
  padding:8px 14px;
  border-radius:999px;
  background:rgba(15,23,42,.85);
  color:#fff;
  box-shadow:0 12px 30px rgba(15,23,42,.3);
  border:1px solid rgba(148,163,184,.35);
  backdrop-filter:blur(10px);
}

html.theme-light #homeInlineToolbar.is-expanded .home-inline-toolbar__content{
  background:rgba(248,250,252,.92);
  color:#0f172a;
  border-color:rgba(148,163,184,.4);
}

.home-inline-toolbar__launcher{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  border-radius:50%;
  border:1px solid rgba(148,163,184,.35);
  background:rgba(15,23,42,.85);
  color:#fff;
  cursor:pointer;
}

html.theme-light .home-inline-toolbar__launcher{
  background:rgba(248,250,252,.92);
  color:#0f172a;
  border-color:rgba(148,163,184,.4);
}

.home-inline-toolbar__toggle,
.home-inline-toolbar__add{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border:none;
  background:transparent;
  color:inherit;
  font-weight:600;
  cursor:pointer;
  padding:6px 14px;
  border-radius:999px;
}

.home-inline-toolbar__save{
  display:inline-flex;
  align-items:center;
  gap:6px;
  border:none;
  background:#22c55e;
  color:#022c22;
  font-weight:700;
  cursor:pointer;
  padding:6px 16px;
  border-radius:999px;
  box-shadow:0 10px 24px -8px rgba(34,197,94,.55);
}

.home-inline-toolbar__save:disabled{
  opacity:.6;
  cursor:not-allowed;
  box-shadow:none;
}

.home-inline-toolbar__status{
  min-width:90px;
  font-size:.85rem;
  font-weight:600;
}

.home-inline-toolbar__status.is-error{
  color:#ef4444;
}

.home-inline-toolbar__status.is-ok{
  color:#22c55e;
}

.home-inline-toolbar__collapse{
  border:none;
  background:transparent;
  color:inherit;
  font-size:1.35rem;
  line-height:1;
  padding:6px;
  cursor:pointer;
}

.home-inline-toolbar__icon{
  width:20px;
  height:20px;
}

.home-editable{
  outline:2px dashed transparent;
  transition:outline-color .2s ease, background .2s ease;
}

#homePage.is-editing .home-editable{
  outline-color:rgba(59,130,246,.6);
  background:rgba(148,163,184,.12);
}

#homePage.is-editing .home-block{
  cursor:text;
}

#homePage.is-editing .home-block__controls{
  display:flex;
}

#homePage:not(.is-editing) .home-field-removed{
  display:none !important;
}

#homePage.is-editing .home-field-removed{
  border:1px dashed rgba(249,115,22,.9);
  background:rgba(251,191,36,.1);
  color:#ea580c;
  padding:12px;
  min-height:40px;
}

#homePage.is-editing .home-field-removed::before{
  content:attr(data-placeholder);
  display:block;
  font-size:.85rem;
  font-weight:600;
  margin-bottom:4px;
}

.home-rt-toolbar{
  position:fixed;
  z-index:2400;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  column-gap:6px;
  row-gap:6px;
  padding:10px 16px;
  border-radius:18px;
  background:rgba(15,23,42,.92);
  color:#f8fafc;
  box-shadow:0 12px 32px rgba(15,23,42,.35);
  border:1px solid rgba(148,163,184,.35);
  backdrop-filter:blur(10px);
  pointer-events:auto;
  width:min(1000px, 96vw);
  max-height:calc(34px * 2 + 18px);
}

.home-rt-toolbar[hidden]{
  display:none !important;
}

.home-rt-toolbar button{
  border:none;
  background:transparent;
  color:inherit;
  font-size:.9rem;
  font-weight:600;
  padding:6px 10px;
  border-radius:10px;
  cursor:pointer;
  transition:background .2s ease, color .2s ease;
  white-space:nowrap;
}

.home-rt-toolbar button:hover{
  background:rgba(248,250,252,.15);
}

.home-rt-toolbar .is-danger{
  color:#fca5a5;
}

.home-rt-toolbar button.is-danger:hover{
  background:rgba(248,113,113,.2);
  color:#fee2e2;
}

.home-rt-toolbar .rt-sep{
  width:1px;
  height:26px;
  background:rgba(148,163,184,.45);
  align-self:center;
}

html.theme-light .home-rt-toolbar{
  background:rgba(248,250,252,.95);
  color:#0f172a;
  border-color:rgba(148,163,184,.4);
  box-shadow:0 12px 28px rgba(148,163,184,.25);
}

html.theme-light .home-rt-toolbar button:hover{
  background:rgba(226,232,240,.65);
}

@media (max-width:900px){
  .home-rt-toolbar{
    max-width:94vw;
  }
}

@media (max-width:720px){
  .home-rt-toolbar{
    flex-wrap:nowrap;
    overflow-x:auto;
    padding:8px 12px;
    border-radius:14px;
    gap:0;
    width:94vw;
  }
  .home-rt-toolbar button{
    font-size:.85rem;
    padding:4px 8px;
  }
  .home-block{
    padding:20px;
  }
}

main.container{
  padding-block:18px 28px;
}
