@charset "UTF-8";
:root {
  --bg:#f3f8ff;
  --surface:#fff;
  --ink:#282d50;
  --muted:#64708e;
  --accent:#605de9;
  --accent-dark:#4844c5;
  --teal:#099f92;
  --line:#dce3f0;
  --soft:#eef1fc;
  --shadow:0 12px 40px #454bb30b;
  --radius:18px;
  font-family:Inter,Arial,Helvetica,sans-serif;
  color:var(--ink);
  background:var(--bg);
  font-synthesis:none
}
* {
  box-sizing:border-box
}
html {
  scroll-behavior:smooth;
  scroll-padding-top:110px
}
body {
  margin:0;
  font-size:16px;
  line-height:1.65
}
a {
  color:var(--accent-dark);
  text-underline-offset:4px
}
button,input,textarea,select {
  font:inherit
}
button,a,input,textarea,select {
  -webkit-tap-highlight-color:transparent
}
button {
  cursor:pointer
}
button:disabled {
  cursor:wait;
  opacity:.65
}
button:focus-visible,a:focus-visible,summary:focus-visible {
  outline:3px solid #9693ff;
  outline-offset:4px
}
input:focus,textarea:focus,select:focus {
  outline:2px solid #9996ff;
  outline-offset:1px;
  border-color:var(--accent)
}
button svg,a svg {
  width:18px;
  height:18px;
  flex-shrink:0
}
svg {
  vertical-align:middle
}
.icon {
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round
}
h1,h2,h3,p {
  margin-top:0
}
h1,h2,h3 {
  line-height:1.2;
  letter-spacing:-.025em
}
h2 {
  font-size:clamp(28px,3vw,38px)
}
h3 {
  font-size:21px
}
p {
  color:var(--muted)
}
.container {
  width:min(1120px,calc(100% - 48px));
  margin-inline:auto
}
.skip-link {
  position:absolute;
  top:-80px;
  left:20px;
  z-index:100;
  background:var(--ink);
  color:#fff;
  padding:12px 18px;
  border-radius:10px
}
.skip-link:focus {
  top:12px
}
.site-header {
  position:relative;
  z-index:20;
  padding-top:18px
}
.nav-shell {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  min-height:68px;
  padding:12px 20px;
  background:#ffffffd9;
  border:1px solid #fff;
  border-radius:18px;
  box-shadow:0 3px 15px #30365a03
}
.brand {
  display:inline-flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  font-weight:750;
  color:var(--ink);
  font-size:17px;
  letter-spacing:-.035em;
  white-space:nowrap
}
.brand-mark {
  display:grid;
  place-items:center;
  width:36px;
  height:36px;
  background:linear-gradient(135deg,#6d67ef,#12b8a3);
  color:#fff;
  font-size:21px;
  border-radius:12px;
  box-shadow:0 3px 8px #6060ea15
}
.nav-links {
  display:flex;
  align-items:center;
  gap:28px
}
.nav-links a {
  text-decoration:none;
  color:var(--muted);
  font-size:14px;
  font-weight:600
}
.nav-links a:hover,.nav-links a[aria-current=page] {
  color:var(--accent)
}
.pill {
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:5px 12px;
  background:#e6faf5;
  color:#087a71;
  border:1px solid #c3eee6;
  border-radius:99px;
  font-size:12px;
  font-weight:700;
  letter-spacing:.02em
}
.pill svg {
  width:14px;
  height:14px
}
.menu-button {
  display:none;
  border:1px solid var(--line);
  background:#fff;
  border-radius:10px;
  padding:9px;
  color:var(--ink)
}
.hero {
  position:relative;
  text-align:center;
  padding:42px 0 32px
}
.hero:before {
  content:"";
  position:absolute;
  z-index:-1;
  inset:-160px -10vw -200px;
  pointer-events:none;
  background:radial-gradient(ellipse at 9% 18%,#7065e31a,transparent 31%),radial-gradient(ellipse at 93% 10%,#12c7b11a,transparent 28%),radial-gradient(ellipse at 50% 88%,#7864ef0d,transparent 37%)
}
.eyebrow {
  display:inline-flex;
  align-items:center;
  gap:7px;
  background:#ffffffc9;
  border:1px solid #fff;
  border-radius:99px;
  padding:5px 12px;
  color:var(--muted);
  font-size:12px;
  font-weight:600
}
.eyebrow svg {
  width:15px;
  height:15px;
  color:#12ad9d
}
.hero h1 {
  font-size:clamp(38px,5vw,60px);
  line-height:1.06;
  letter-spacing:-.045em;
  margin:18px 0 22px;
  font-weight:800
}
.hero h1 span {
  display:block
}
.hero .intro {
  max-width:660px;
  margin:0 auto 12px;
  font-size:17px;
  line-height:1.65
}
.hero .subintro {
  max-width:670px;
  margin:0 auto;
  font-size:14px
}
.tool-grid {
  display:grid;
  grid-template-columns:1.05fr 1fr;
  gap:20px;
  align-items:stretch;
  scroll-margin-top:24px
}
.card {
  padding:26px;
  background:#ffffffdc;
  border:1px solid #fff;
  border-radius:var(--radius);
  box-shadow:var(--shadow)
}
.card-title {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  margin-bottom:10px
}
.step {
  font-size:11px;
  color:var(--accent);
  font-weight:800;
  letter-spacing:.13em;
  text-transform:uppercase;
  margin:0 0 8px
}
.card h2 {
  font-size:21px;
  letter-spacing:-.025em;
  margin:0 0 10px
}
.card .description {
  font-size:14px;
  line-height:1.7;
  margin-bottom:20px
}
.live-badge {
  font-size:11px;
  padding:3px 9px;
  background:#e1f8f0;
  color:#078778;
  border-radius:99px;
  white-space:nowrap
}
.live-badge:before {
  content:"";
  display:inline-block;
  width:5px;
  height:5px;
  border-radius:50%;
  background:#14b694;
  margin-right:5px
}
.style-row {
  display:flex;
  gap:12px;
  align-items:center;
  margin-bottom:15px
}
.small-label {
  font-size:11px;
  font-weight:700;
  color:var(--muted);
  letter-spacing:.045em
}
.segmented {
  display:flex;
  background:#edf1fa;
  padding:3px;
  border-radius:10px;
  gap:3px
}
.segmented button {
  flex:1;
  border:0;
  border-radius:8px;
  background:transparent;
  color:#5c6681;
  font-size:13px;
  font-weight:600;
  padding:8px 15px;
  transition:background .18s,color .18s,box-shadow .18s
}
.segmented button[aria-pressed=true] {
  color:#fff;
  background:var(--accent);
  box-shadow:0 2px 6px #5754cc22
}
.source-tabs {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:6px;
  margin-bottom:16px
}
.source-tabs button {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:42px;
  border:1px solid #d3ddef;
  background:#f6f9ff;
  border-radius:8px;
  color:#515c7d;
  font-size:12px;
  white-space:nowrap;
  box-shadow:0 2px 1px #252d5110;
  transition:background .18s,transform .18s
}
.source-tabs button svg {
  width:16px;
  height:16px
}
.source-tabs button[aria-pressed=true] {
  background:var(--accent);
  color:#fff;
  border-color:var(--accent)
}
.mode-tabs {
  margin-bottom:18px
}
.mode-tabs button[aria-pressed=true] {
  background:#fff;
  color:var(--ink);
  box-shadow:0 1px 4px #31375312
}
.field {
  display:flex;
  flex-direction:column;
  gap:6px
}
.field label {
  font-size:12px;
  color:#465170;
  font-weight:700
}
.field input,.field textarea,.field select {
  min-width:0;
  width:100%;
  border:1px solid #cfd9ed;
  border-radius:8px;
  background:#fff;
  min-height:40px;
  padding:8px 11px;
  font-size:14px;
  color:var(--ink);
  box-shadow:0 2px 2px #25345c06
}
.field input::placeholder,.field textarea::placeholder {
  color:#8691a8
}
.field textarea {
  resize:vertical;
  min-height:110px;
  line-height:1.55
}
.field-help {
  font-size:12px;
  line-height:1.6;
  color:var(--muted);
  margin:7px 0 0
}
.field-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:13px 12px
}
.full {
  grid-column:1/-1
}
.lookup-row {
  display:flex;
  gap:8px
}
.lookup-row input {
  flex:1
}
.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:40px;
  padding:9px 14px;
  border:1px solid #d3dcef;
  border-radius:8px;
  background:#f7f9ff;
  color:#4c5775;
  font-size:13px;
  font-weight:600;
  text-decoration:none;
  box-shadow:0 2px 1px #27345408;
  transition:background .16s,border-color .16s,transform .16s
}
.btn:hover {
  background:#edf0fa;
  border-color:#b7bce5
}
.btn.primary {
  background:var(--accent);
  border-color:var(--accent);
  color:#fff
}
.btn.primary:hover {
  background:var(--accent-dark)
}
.btn:active {
  transform:translateY(1px)
}
.btn.small {
  min-height:34px;
  font-size:12px;
  padding:6px 10px
}
.btn.icon-btn {
  padding:8px;
  min-width:36px;
  min-height:36px
}
.text-btn {
  border:0;
  background:transparent;
  color:var(--accent-dark);
  padding:6px 0;
  font-size:13px;
  font-weight:600
}
.note {
  font-size:14px;
  margin:16px 0 0;
  line-height:1.7
}
.form-actions {
  display:flex;
  align-items:center;
  gap:12px;
  margin-top:16px
}
.notice {
  font-size:13px;
  margin:10px 0 0;
  padding:10px 12px;
  background:#edf5ff;
  color:#46597e;
  border-radius:8px;
  border:1px solid #d8e4f9
}
.notice.error {
  background:#fff0f0;
  color:#a33939;
  border-color:#f1cfcf
}
.checkbox-label {
  display:flex;
  gap:8px;
  align-items:center;
  color:var(--muted);
  font-size:12px;
  margin:10px 0
}
.checkbox-label input {
  accent-color:var(--accent)
}
[hidden] {
  display:none!important
}
.citation-library {
  margin-top:23px;
  border-top:1px solid var(--line);
  padding-top:17px
}
.library-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px
}
.library-heading h3 {
  font-size:14px;
  letter-spacing:0;
  margin:0
}
.citation-count {
  display:inline-grid;
  place-items:center;
  background:var(--soft);
  color:var(--accent);
  min-width:23px;
  height:23px;
  font-size:12px;
  border-radius:7px;
  margin-left:5px
}
.citation-item {
  padding:13px 0;
  border-bottom:1px solid var(--line)
}
.citation-item:last-child {
  border-bottom:0
}
.citation-text {
  font-family:Georgia,'Times New Roman',serif;
  color:var(--ink);
  font-size:14px;
  line-height:1.65;
  overflow-wrap:anywhere;
  margin:0 0 8px
}
.citation-actions {
  display:flex;
  gap:12px;
  align-items:center
}
.citation-actions button {
  padding:2px 0;
  border:0;
  background:transparent;
  color:var(--accent-dark);
  font-size:12px;
  font-weight:600
}
.citation-actions .remove {
  margin-left:auto;
  color:#8c5262
}
.intext {
  font-size:12px;
  color:var(--muted)
}
.empty-citations {
  font-size:12px;
  margin:10px 0 0
}
.paper-card {
  margin-top:20px
}
.preview-head {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px
}
.preview-head h2 {
  font-size:18px;
  margin-bottom:0
}
.preview-head .step {
  margin-bottom:4px
}
.preview-tools {
  display:flex;
  gap:6px
}
.paper-stage {
  margin:24px 0 18px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:22px;
  overflow:hidden
}
.paper-page {
  position:relative;
  width:816px;
  min-height:1056px;
  flex-shrink:0;
  background:#fff;
  color:#151515;
  border:1px solid #dae1ee;
  border-radius:4px;
  padding:96px;
  box-shadow:0 12px 35px #23335712;
  font:16px/2 'Times New Roman',Times,serif;
  box-sizing:border-box
}
.paper-page * {
  color:inherit
}
.paper-page .running-header {
  position:absolute;
  right:96px;
  top:42px;
  font:16px/2 'Times New Roman',Times,serif
}
.paper-page .assignment-heading {
  line-height:2
}
.paper-page .paper-title {
  text-align:center;
  margin:16px 0;
  font-size:16px;
  line-height:2;
  font-weight:400;
  letter-spacing:0
}
.paper-page .essay-paragraph {
  margin:0;
  white-space:pre-wrap;
  text-indent:48px;
  overflow-wrap:anywhere;
  line-height:2
}
.paper-page .block-quote {
  margin:0 0 0 48px;
  white-space:pre-wrap;
  line-height:2;
  overflow-wrap:anywhere
}
.paper-page .works-title {
  text-align:center;
  font-size:16px;
  font-weight:400;
  margin:0 0 16px;
  line-height:2;
  letter-spacing:0
}
.paper-page .reference {
  margin:0;
  padding-left:48px;
  text-indent:-48px;
  line-height:2;
  overflow-wrap:anywhere
}
.paper-page .placeholder {
  color:#798196
}
.paper-stage .paper-page {
  zoom:var(--paper-scale,1)
}
.preview-bottom {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px
}
.preview-bottom p {
  font-size:12px;
  margin:0
}
.export-actions {
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  justify-content:flex-end
}
.preview-meta {
  font-size:12px;
  color:var(--muted);
  display:flex;
  gap:12px;
  align-items:center;
  margin-top:10px
}
.preview-meta button {
  margin-left:auto
}
.toast {
  position:fixed;
  z-index:100;
  bottom:22px;
  left:50%;
  transform:translate(-50%,16px);
  background:var(--ink);
  color:#fff;
  border-radius:12px;
  padding:12px 20px;
  box-shadow:0 10px 35px #17254e30;
  font-size:14px;
  opacity:0;
  pointer-events:none;
  transition:opacity .2s,transform .2s;
  max-width:calc(100% - 36px);
  text-align:center
}
.toast.visible {
  opacity:1;
  transform:translate(-50%,0)
}
.guide-section {
  margin-top:54px;
  padding:64px 0;
  background:#eff4fd;
  border-top:1px solid #e0e8f5
}
.guide-intro {
  max-width:830px;
  margin-bottom:30px
}
.guide-intro h2 {
  margin-bottom:14px
}
.guide-intro p {
  font-size:16px;
  line-height:1.8;
  margin:0
}
.guide-layout {
  display:grid;
  grid-template-columns:230px minmax(0,1fr);
  gap:50px;
  align-items:start
}
.contents {
  position:sticky;
  top:30px;
  border-left:2px solid #dce2f0;
  padding-left:18px
}
.contents .step {
  color:#6d7590;
  margin-bottom:15px
}
.contents a {
  display:block;
  font-size:13px;
  line-height:1.6;
  padding:7px 0;
  color:#62708e;
  text-decoration:none
}
.contents a:hover {
  color:var(--accent)
}
.guide-content h2 {
  font-size:29px;
  margin:45px 0 17px;
  line-height:1.3
}
.guide-content h2:first-child {
  margin-top:0
}
.guide-content h3 {
  font-size:19px;
  line-height:1.4;
  margin:28px 0 12px
}
.guide-content p,.guide-content li {
  font-size:15px;
  line-height:1.85;
  color:#616d8a;
  margin-bottom:14px
}
.guide-content ul {
  padding-left:23px;
  margin:12px 0 20px
}
.guide-content li {
  padding-left:3px;
  margin-bottom:7px
}
.guide-content a {
  font-size:inherit
}
.example {
  padding:18px 22px;
  border-left:3px solid var(--accent);
  background:#ffffffac;
  border-radius:0 12px 12px 0;
  margin:18px 0
}
.example p:last-child {
  margin-bottom:0
}
.faq-section {
  padding:64px 0
}
.faq-header {
  max-width:600px;
  margin-bottom:28px
}
.faq-header h2 {
  margin:0 0 12px
}
.faq-list {
  display:grid;
  gap:10px
}
.faq-list details {
  border:1px solid #d0daf0;
  background:#ffffffb8;
  border-radius:16px;
  overflow:hidden;
  transition:border-color .2s,box-shadow .2s
}
.faq-list details[open] {
  background:#fff;
  box-shadow:0 4px 12px #30355308;
  border-color:#c2c2f7
}
.faq-list summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:20px 24px;
  list-style:none;
  font-size:15px;
  font-weight:600;
  cursor:pointer;
  line-height:1.5
}
.faq-list summary::-webkit-details-marker {
  display:none
}
.faq-list summary:after {
  content:"+";
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  border-radius:50%;
  background:#eeedfe;
  color:var(--accent);
  font-size:21px;
  font-weight:400;
  flex-shrink:0
}
.faq-list details[open] summary:after {
  content:"−";
  background:var(--accent);
  color:#fff
}
.faq-list details p {
  padding:0 24px 20px;
  margin:0;
  font-size:15px;
  line-height:1.8
}
.independence {
  font-size:13px;
  margin:22px 0 0
}
.blog-section {
  padding:55px 0 70px;
  border-top:1px solid #e0e8f5
}
.section-head {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:26px
}
.section-head h2 {
  margin:6px 0 0
}
.section-head a {
  white-space:nowrap
}
.blog-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px
}
.blog-card {
  display:flex;
  flex-direction:column;
  padding:26px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  text-decoration:none;
  color:var(--ink);
  transition:transform .2s,border-color .2s,box-shadow .2s
}
.blog-card:hover {
  transform:translateY(-4px);
  border-color:#b6b3f5;
  box-shadow:0 10px 30px #5055a80d
}
.blog-card .category {
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--accent);
  margin-bottom:20px
}
.blog-card h3 {
  font-size:21px;
  line-height:1.3;
  margin-bottom:12px
}
.blog-card p {
  font-size:14px;
  line-height:1.7;
  flex:1
}
.blog-card .read-meta {
  display:flex;
  justify-content:space-between;
  border-top:1px solid var(--line);
  padding-top:16px;
  font-size:12px;
  color:var(--muted)
}
.site-footer {
  background:#222743;
  color:#fff;
  padding:55px 0 22px;
  position:relative;
  overflow:hidden
}
.footer-grid {
  display:grid;
  grid-template-columns:2fr 1fr 1fr;
  gap:64px
}
.site-footer .brand {
  color:#fff;
  font-size:20px
}
.footer-brand p {
  max-width:350px;
  font-size:14px;
  line-height:1.8;
  color:#c0c8e0;
  margin:18px 0 20px
}
.footer-heading {
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.1em;
  color:#b6bfdc;
  margin:6px 0 18px;
  font-weight:700
}
.footer-links {
  display:flex;
  flex-direction:column;
  gap:10px
}
.footer-links a {
  color:#e2e7f7;
  font-size:14px;
  text-decoration:none
}
.footer-links a:hover {
  color:#a8a3ff
}
.footer-bottom {
  display:flex;
  justify-content:space-between;
  gap:20px;
  border-top:1px solid #ffffff18;
  padding-top:22px;
  margin-top:40px;
  color:#b6bfd8;
  font-size:12px
}
.footer-bottom p {
  font-size:12px;
  color:inherit;
  margin:0;
  max-width:600px
}
.footer-bottom a {
  color:inherit
}
.footer-tag {
  display:inline-block;
  border:1px solid #ffffff25;
  padding:5px 10px;
  border-radius:6px;
  font-size:11px;
  color:#c4cde9
}
.dialog {
  width:min(520px,calc(100% - 36px));
  border:1px solid var(--line);
  border-radius:18px;
  padding:28px;
  box-shadow:0 30px 90px #202c5930;
  color:var(--ink);
  background:#fff
}
.dialog::backdrop {
  background:#17224b66;
  backdrop-filter:blur(3px)
}
.dialog h2 {
  font-size:24px;
  margin-bottom:12px
}
.dialog p,.dialog li {
  font-size:14px;
  color:var(--muted);
  line-height:1.8
}
.dialog ol {
  padding-left:22px
}
.dialog-close {
  float:right;
  border:0;
  background:var(--soft);
  width:30px;
  height:30px;
  border-radius:8px;
  color:var(--ink)
}
.dialog-actions {
  display:flex;
  gap:10px;
  margin-top:22px
}
.article-shell {
  max-width:850px;
  margin:48px auto 70px
}
.breadcrumbs {
  font-size:13px;
  color:var(--muted);
  margin-bottom:24px
}
.breadcrumbs a {
  color:inherit
}
.article-header h1 {
  font-size:clamp(34px,5vw,48px);
  margin:16px 0 22px;
  line-height:1.15
}
.article-header .lede {
  font-size:18px
}
.article-meta {
  font-size:13px;
  color:var(--muted);
  padding-bottom:25px;
  border-bottom:1px solid var(--line);
  margin-bottom:30px
}
.article-body h2 {
  font-size:27px;
  margin:35px 0 14px
}
.article-body h3 {
  font-size:20px;
  margin:25px 0 12px
}
.article-body p,.article-body li {
  color:var(--muted);
  line-height:1.9
}
.article-body .example {
  background:#fff
}
.article-cta {
  margin:40px 0 0;
  padding:25px;
  background:#e9eafe;
  border:1px solid #d9d7fa;
  border-radius:16px
}
.article-cta h3 {
  margin-bottom:12px
}
.blog-hero {
  padding:60px 0 30px
}
.blog-hero h1 {
  font-size:clamp(36px,5vw,54px);
  margin:14px 0
}
.blog-hero p {
  max-width:650px
}
.blogs-main {
  padding-bottom:80px
}
.noscript {
  padding:16px;
  background:#fff4da;
  border:1px solid #e8d8a9;
  border-radius:10px;
  margin:20px 0;
  color:#765c19
}
@keyframes entrance {
  from {
    opacity:.8;
    transform:translateY(8px)
  }
  to {
    opacity:1;
    transform:translateY(0)
  }
}
.hero h1 {
  animation:entrance .45s ease-out
}
.card {
  animation:entrance .45s ease-out
}
.reading-progress {
  height:3px;
  background:var(--accent);
  position:fixed;
  top:0;
  left:0;
  width:0;
  z-index:50;
  transform-origin:left
}
.hero:before {
  inset:-160px 0 -200px
}
.style-row .segmented button {
  flex:none;
  white-space:nowrap
}
.style-row .segmented {
  border-radius:99px
}
.style-row .segmented button {
  border-radius:99px;
  padding:6px 14px
}
.paper-page .paper-title {
  margin:0
}
.paper-page .works-title {
  margin:0
}
@media(min-width:1400px) {
  .container {
    width:min(1190px,calc(100% - 64px))
  }
  .card {
    padding:28px
  }
  .hero {
    padding-top:46px
  }
}
@media(max-width:1000px) {
  .nav-links {
    gap:18px
  }
  .tool-grid {
    gap:16px
  }
  .card {
    padding:22px
  }
  .source-tabs {
    grid-template-columns:1fr 1fr
  }
  .source-tabs button {
    font-size:13px
  }
  .guide-layout {
    grid-template-columns:190px minmax(0,1fr);
    gap:30px
  }
  .paper-page {
    zoom:var(--paper-scale,.8)
  }
  .footer-grid {
    gap:32px
  }
}
@media(max-width:760px) {
  .container {
    width:calc(100% - 32px)
  }
  .nav-shell {
    padding:12px 14px;
    min-height:62px;
    border-radius:14px;
    flex-wrap:wrap;
    gap:12px
  }
  .brand {
    font-size:15px
  }
  .brand-mark {
    width:32px;
    height:32px;
    border-radius:10px;
    font-size:19px
  }
  .menu-button {
    display:block
  }
  .nav-shell>.pill {
    display:none
  }
  .nav-links {
    display:none;
    width:100%;
    padding:8px 0 3px;
    border-top:1px solid var(--line);
    gap:0;
    justify-content:space-between
  }
  .nav-links.open {
    display:flex
  }
  .nav-links a {
    font-size:13px;
    padding:5px
  }
  .hero {
    padding:32px 0 25px
  }
  .hero h1 {
    font-size:43px;
    margin:16px 0 18px
  }
  .hero .intro {
    font-size:15px
  }
  .hero .subintro {
    font-size:13px
  }
  .tool-grid {
    grid-template-columns:1fr
  }
  .card {
    padding:22px;
    border-radius:15px
  }
  .source-tabs {
    grid-template-columns:repeat(4,1fr)
  }
  .source-tabs button {
    font-size:11px;
    gap:4px
  }
  .source-tabs button svg {
    width:14px;
    height:14px
  }
  .preview-head h2 {
    font-size:17px
  }
  .preview-tools {
    gap:4px
  }
  .preview-tools .btn {
    min-width:32px;
    min-height:32px;
    padding:6px
  }
  .paper-card {
    padding:18px
  }
  .paper-stage {
    margin:20px 0 16px;
    gap:16px
  }
  .preview-bottom {
    align-items:flex-start;
    flex-direction:column;
    gap:12px
  }
  .export-actions {
    justify-content:flex-start;
    width:100%;
    gap:6px
  }
  .export-actions .btn {
    font-size:11px;
    padding:6px 9px
  }
  .preview-meta {
    font-size:11px;
    flex-wrap:wrap
  }
  .guide-section {
    margin-top:36px;
    padding:42px 0
  }
  .guide-intro p {
    font-size:15px
  }
  .guide-layout {
    grid-template-columns:1fr;
    gap:30px
  }
  .contents {
    position:static;
    border:1px solid var(--line);
    background:#ffffff80;
    padding:18px;
    border-radius:12px
  }
  .contents a {
    font-size:13px;
    padding:5px 0
  }
  .guide-content h2 {
    font-size:26px;
    margin-top:35px
  }
  .guide-content h3 {
    font-size:19px
  }
  .guide-content p,.guide-content li {
    font-size:15px
  }
  .faq-section {
    padding:42px 0
  }
  .faq-list summary {
    padding:17px 18px;
    font-size:14px
  }
  .faq-list details p {
    padding:0 18px 18px;
    font-size:14px
  }
  .blog-grid {
    grid-template-columns:1fr
  }
  .blog-card {
    padding:23px
  }
  .blog-card .category {
    margin-bottom:14px
  }
  .blog-section {
    padding:40px 0 45px
  }
  .section-head {
    align-items:flex-start;
    flex-direction:column;
    gap:12px
  }
  .footer-grid {
    grid-template-columns:1fr 1fr;
    gap:30px
  }
  .footer-brand {
    grid-column:1/-1
  }
  .site-footer {
    padding-top:40px
  }
  .footer-bottom {
    flex-direction:column;
    gap:12px
  }
  .article-shell {
    margin-top:30px
  }
  .article-header .lede {
    font-size:16px
  }
  .article-body h2 {
    font-size:25px
  }
  .blog-hero {
    padding-top:35px
  }
}
@media(max-width:370px) {
  .hero h1 {
    font-size:37px
  }
  .card {
    padding:18px
  }
  .source-tabs {
    grid-template-columns:1fr 1fr
  }
  .field-grid {
    grid-template-columns:1fr
  }
  .full {
    grid-column:auto
  }
  .lookup-row {
    flex-wrap:wrap
  }
  .lookup-row .btn {
    width:100%
  }
  .brand {
    font-size:14px
  }
}
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto
  }
  *,*:before,*:after {
    animation:none!important;
    transition:none!important
  }
}
@page {
  size:letter;
  margin:0
}
@media print {
  html,body {
    background:#fff;
    margin:0;
    padding:0
  }
  .site-header,.hero,.tool-grid,.guide-section,.faq-section,.blog-section,.site-footer,.preview-head,.preview-bottom,.preview-meta,.toast,dialog,.skip-link,.noscript {
    display:none!important
  }
  main>.container {
    width:auto;
    margin:0
  }
  .paper-card {
    margin:0;
    padding:0;
    border:0;
    box-shadow:none;
    background:#fff
  }
  .paper-stage {
    display:block;
    margin:0;
    overflow:visible
  }
  .paper-stage .paper-page {
    zoom:1!important;
    width:8.5in;
    min-height:11in;
    height:11in;
    padding:1in;
    box-shadow:none;
    border:0;
    border-radius:0;
    break-after:page;
    page-break-after:always
  }
  .paper-page:last-child {
    break-after:auto;
    page-break-after:auto
  }
  .paper-page .running-header {
    top:.5in;
    right:1in
  }
  .paper-page .placeholder {
    color:#151515
  }
}
/* ── Premium academic redesign: dark header, book-themed accents ── */
:root {
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',system-ui,Arial,sans-serif;
  --bg:#f0f2f9;
  --ink:#1c2035;
  --muted:#5a6478;
  --accent:#6c63ff;
  --accent-dark:#5046d6;
  --teal:#2cb8a9;
  --line:#d8dded;
  --soft:#eceffe;
  --shadow:0 4px 12px rgba(37,42,70,0.04),0 24px 60px rgba(68,77,122,0.08);
  --radius:22px;
  --gold:#e8a748;
  --rose:#ff6b8a
}
body {
  min-height:100vh;
  background:
    radial-gradient(ellipse at 0% 0%,rgba(108,99,255,0.08) 0,transparent 45%),
    radial-gradient(ellipse at 100% 10%,rgba(44,184,169,0.06) 0,transparent 40%),
    radial-gradient(ellipse at 50% 50%,rgba(108,99,255,0.03) 0,transparent 50%),
    radial-gradient(ellipse at 80% 90%,rgba(44,184,169,0.04) 0,transparent 40%),
    linear-gradient(165deg,#f2f4fb 0%,#eef1f9 25%,#f0f0f8 50%,#eef2f8 75%,#edf0f7 100%);
  background-attachment:fixed;
  -webkit-font-smoothing:antialiased
}
.hero:before {
  display:none
}
.hero h1 {
  font-weight:750;
  letter-spacing:-.055em;
  background:linear-gradient(135deg,#1c2035 30%,#6c63ff 80%,#2cb8a9 100%);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text
}
.hero .intro {
  line-height:1.7;
  font-size:17px;
  color:#5a6478
}
.hero .eyebrow {
  font-size:12px;
  background:linear-gradient(135deg,rgba(108,99,255,0.1),rgba(44,184,169,0.06));
  border:1px solid rgba(108,99,255,0.15);
  color:#6c63ff;
  padding:7px 16px;
  font-weight:600
}
.hero .eyebrow svg {
  color:#2cb8a9
}
.brand {
  font-weight:650;
  letter-spacing:-.035em
}
.brand-mark {
  background:linear-gradient(135deg,#6c63ff,#2cb8a9);
  box-shadow:0 3px 14px rgba(108,99,255,0.2)
}
/* nav-shell is now styled in site.css for full-width dark header */
.nav-links {
  gap:8px
}
.nav-links a {
  font-size:14px;
  font-weight:500;
  line-height:1.25;
  padding:11px 15px;
  border-radius:99px;
  transition:color .18s,background .18s,box-shadow .18s
}
.nav-links a:hover,.nav-links a:focus-visible,.nav-links a[aria-current=page] {
  background:rgba(108,99,255,0.06);
  color:var(--accent);
  box-shadow:none
}
.menu-button {
  min-width:44px;
  min-height:44px;
  border-radius:13px;
  color:var(--ink);
  background:#f5f7fb;
  border-color:#e0e5ef
}
.card {
  background:rgba(255,255,255,0.82);
  border:1px solid rgba(255,255,255,0.9);
  box-shadow:var(--shadow);
  min-width:0;
  backdrop-filter:blur(12px)
}
.tool-grid {
  grid-template-columns:minmax(0,1.05fr) minmax(0,1fr)
}
.card h2 {
  font-size:22px;
  font-weight:650;
  letter-spacing:-.035em
}
.card .description {
  font-size:14px;
  line-height:1.75
}
.step {
  letter-spacing:.12em;
  font-weight:700;
  color:#6c63ff
}
.field label {
  font-size:13px;
  font-weight:550;
  color:#4f5870
}
.field input,.field select,.field textarea {
  font-family:inherit;
  font-size:14px;
  min-height:44px;
  border-radius:11px;
  border:1px solid #d7deeb;
  box-shadow:0 1px 3px #1f274106;
  background:#fffffff2;
  transition:border-color .18s,box-shadow .18s,background .18s
}
.field input:hover,.field textarea:hover {
  border-color:#b6c2e1
}
.field input:focus,.field textarea:focus,.field select:focus {
  outline:none;
  border-color:#727bf1;
  box-shadow:0 0 0 4px #717aea1b;
  background:#fff
}
.field textarea#source-author {
  min-height:70px
}
.field-help {
  font-size:12px
}
.segmented {
  background:#eaf0f8;
  border-radius:12px;
  padding:4px
}
.segmented button {
  min-height:40px;
  font-weight:550;
  border-radius:9px;
  transition:background .2s,color .2s,box-shadow .2s
}
.style-row .segmented button {
  min-height:32px;
  padding:6px 15px
}
.segmented button:hover {
  background:#dce3f8;
  color:#3c438f
}
.segmented button[aria-pressed=true] {
  background:linear-gradient(135deg,#6c63ff,#5046d6);
  color:#fff;
  box-shadow:0 3px 12px rgba(108,99,255,0.3)
}
.mode-tabs button[aria-pressed=true] {
  background:#fff;
  color:var(--ink);
  box-shadow:0 2px 8px rgba(48,59,89,0.1)
}
.mode-tabs button:not([aria-pressed=true]):hover {
  background:#dfe7f6;
  color:#414a77
}
.source-tabs button {
  min-height:44px;
  border-radius:11px;
  background:#f5f8ff;
  box-shadow:none;
  border-color:#d7e0f1;
  font-weight:550;
  transition:color .18s,background .18s,border-color .18s,box-shadow .18s
}
.source-tabs button:hover {
  color:#6c63ff;
  border-color:#b0b8f0;
  background:#eef1ff;
  box-shadow:0 4px 14px rgba(108,99,255,0.08)
}
.source-tabs button[aria-pressed=true] {
  background:linear-gradient(135deg,#6c63ff,#5046d6);
  border-color:#6c63ff;
  color:#fff;
  box-shadow:0 4px 14px rgba(108,99,255,0.25)
}
.source-tabs button[aria-pressed=true]:hover {
  background:linear-gradient(135deg,#5b52f0,#4840c8)
}
.btn {
  font-family:inherit;
  min-height:44px;
  border-radius:11px;
  background:#f5f7fe;
  border-color:#d5ddf0;
  font-weight:550;
  box-shadow:0 1px 3px rgba(35,42,69,0.04);
  transition:background .18s,color .18s,border-color .18s,box-shadow .18s,transform .18s
}
.btn:hover {
  background:#eaeeff;
  color:#6c63ff;
  border-color:#b5c1f2;
  box-shadow:0 4px 14px rgba(108,99,255,0.1)
}
.btn.primary {
  background:linear-gradient(135deg,#6c63ff,#5046d6);
  color:#fff;
  border-color:#6c63ff;
  box-shadow:0 4px 16px rgba(108,99,255,0.3)
}
.btn.primary:hover {
  background:linear-gradient(135deg,#5b52f0,#4840c8);
  border-color:#5046d6;
  color:#fff;
  box-shadow:0 6px 20px rgba(108,99,255,0.35)
}
.btn:active {
  transform:scale(.98)
}
.btn.small {
  min-height:40px;
  border-radius:10px;
  font-size:12px;
  padding:8px 12px
}
.btn.icon-btn {
  width:40px;
  min-width:40px;
  min-height:40px;
  padding:10px
}
.text-btn {
  border-radius:7px;
  padding:6px 7px;
  transition:background .18s,color .18s
}
.text-btn:hover {
  background:#e9edff;
  color:#3f46c2
}
.note {
  font-size:14px;
  line-height:1.8
}
.preview-tools {
  gap:7px
}
.preview-meta {
  font-size:12px
}
.citation-actions button {
  min-height:32px;
  border-radius:6px;
  padding:4px 5px;
  transition:background .18s
}
.citation-actions button:hover {
  background:#eef0ff
}
.citation-actions .remove:hover {
  background:#ffeded;
  color:#ad323f
}
.citation-actions {
  flex-wrap:wrap
}
.intext {
  min-width:0;
  overflow-wrap:anywhere
}
.guide-section {
  background:transparent;
  border-top:none;
  position:relative
}
/* guide-section ::before and ::after are handled in site.css */
.centered-guide {
  display:block;
  max-width:900px;
  margin-inline:auto
}
.guide-layout.centered-guide {
  width:100%
}
.guide-section>.container {
  max-width:900px
}
/* guide-intro is styled in site.css for premium card look */
/* guide-content h2, h3, p, li, a styles are now in site.css for premium card layout */
.faq-section>.container {
  max-width:850px
}
.faq-header h2 {
  background:linear-gradient(135deg,#1c2035 40%,#6c63ff);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text
}
.faq-list details {
  background:rgba(255,255,255,0.65);
  border-color:#d8dfee;
  border-radius:18px;
  box-shadow:0 2px 6px rgba(36,44,64,0.03);
  backdrop-filter:blur(8px)
}
.faq-list details:hover {
  border-color:rgba(108,99,255,0.25);
  background:rgba(255,255,255,0.85);
  box-shadow:0 4px 16px rgba(108,99,255,0.06)
}
.faq-list details[open] {
  background:rgba(255,255,255,0.92);
  border-color:rgba(108,99,255,0.3);
  box-shadow:0 6px 24px rgba(108,99,255,0.08)
}
.faq-list summary {
  min-height:68px;
  font-size:15px;
  font-weight:550;
  padding:20px 24px
}
.faq-list summary:after {
  background:rgba(108,99,255,0.1);
  color:#6c63ff
}
.faq-list details[open] summary:after {
  background:linear-gradient(135deg,#6c63ff,#5046d6);
  color:#fff
}
.faq-list details p {
  font-size:15px;
  line-height:1.85
}
/* Footer styled in site.css for light theme */
.site-footer {
  background:#f6f7fb;
  border-top:0
}
.footer-links a {
  padding:5px 0;
  border-radius:0;
  transition:color .22s
}
.footer-links a:hover {
  color:var(--accent)
}
.footer-bottom a:hover {
  color:var(--accent)
}
.dialog {
  border-radius:22px;
  font-family:inherit
}
.dialog-close {
  min-width:36px;
  min-height:36px;
  font-size:22px
}
.dialog-close:hover {
  background:#e2e7ff
}
.pill {
  font-weight:600;
  background:rgba(44,184,169,0.15);
  border-color:rgba(44,184,169,0.25);
  color:#2cb8a9
}
.article-header h1,.blog-hero h1 {
  font-weight:700;
  letter-spacing:-.04em;
  background:linear-gradient(135deg,#1c2035 40%,#6c63ff);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text
}
.article-header .lede {
  font-size:18px
}
.blog-card {
  border-radius:20px;
  background:#ffffffce
}
.blog-card:hover {
  border-color:#b6c2ed;
  background:#fff;
  box-shadow:0 12px 30px #4e5ca017
}
.blog-card h3 {
  font-weight:650
}
.article-body p,.article-body li {
  font-size:16px
}
.paper-page.apa-page .paper-title,.paper-page.apa-page .works-title {
  font-weight:bold
}
.paper-page .apa-title-block {
  padding-top:96px;
  text-align:center
}
.paper-page .apa-title-block .paper-title {
  margin-bottom:32px
}
.paper-page .apa-title-block p {
  margin:0;
  line-height:2
}
.paper-page .apa-title-block .paper-title {
  font-family:'Times New Roman',Times,serif;
  font-size:16px
}
.apa-guide .guide-intro {
  margin-bottom:36px
}
@media(max-width:1000px) {
  .nav-links a {
    padding-inline:11px
  }
}
@media(max-width:760px) {
  .tool-grid {
    grid-template-columns:minmax(0,1fr)
  }
  .nav-shell {
    border-radius:0
  }
  .nav-links {
    border-top-color:#e5e9f2
  }
  .nav-links.open {
    justify-content:space-around;
    padding-top:10px
  }
  .nav-links a {
    padding:9px 10px;
    color:var(--muted)
  }
  .hero h1 {
    font-size:43px
  }
  .field label {
    font-size:13px
  }
  .guide-section,.faq-section {
    padding:42px 0
  }
  .guide-content h2 {
    font-size:27px
  }
  .guide-content h3 {
    font-size:20px
  }
  .guide-content p,.guide-content li {
    font-size:16px
  }
  .preview-tools {
    gap:4px
  }
  .preview-tools .btn {
    width:36px;
    min-width:36px;
    min-height:36px;
    padding:8px
  }
  .export-actions .btn {
    font-size:12px;
    padding:8px 11px
  }
  .guide-section>.container,.faq-section>.container {
    width:calc(100% - 36px)
  }
  .centered-guide {
    width:100%
  }
  .footer-grid {
    gap:25px
  }
  .hero .intro {
    font-size:16px
  }
}
@media(max-width:520px) {
  .source-tabs {
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:8px
  }
  .source-tabs button {
    font-size:13px
  }
  .source-tabs button svg {
    width:16px;
    height:16px
  }
  .export-actions {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:7px
  }
  .export-actions .btn {
    white-space:nowrap;
    padding-inline:5px
  }
  .preview-head {
    gap:7px
  }
  .nav-links a {
    font-size:12px;
    padding:9px 7px
  }
  .citation-actions .intext {
    order:4;
    flex-basis:100%
  }
  .citation-actions .remove {
    margin-left:auto
  }
}
@media(prefers-contrast:more) {
  :root {
    --muted:#424a60;
    --line:#a0abc3
  }
  .card,.nav-shell,.field input,.faq-list details {
    background:#fff;
    border-color:#a0abc3
  }
  .guide-content p,.guide-content li {
    color:#424a60
  }
}
@media(prefers-reduced-transparency:reduce) {
  .nav-shell,.card,.faq-list details,.blog-card {
    background:#fff
  }
}
@media print {
  body {
    background:#fff
  }
  .apa-guide {
    display:none!important
  }
  .paper-page .apa-title-block {
    padding-top:1in
  }
}
.paper-page .empty-works {
  margin-top:48px;
  padding-top:32px;
  border-top:1px dashed #d8dce5
}
.paper-page .empty-works p {
  font-size:16px;
  font-style:italic;
  margin:8px 0 0
}
.field label {
  font-size:14px
}
@media(max-width:760px) {
  .field input,.field textarea,.field select {
    font-size:16px
  }
}
/* Footer grid layout for the dark full-width footer */
.footer-grid {
  grid-template-columns:minmax(240px,1.6fr) repeat(3,minmax(0,1fr));
  gap:40px
}
.article-body a {
  overflow-wrap:anywhere
}
@media(max-width:900px) {
  .footer-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
}
@media(max-width:520px) {
  .footer-grid {
    grid-template-columns:minmax(0,1fr)
  }
  .article-header h1 {
    overflow-wrap:anywhere
  }
}

/* ── Compact hero for tool-first layout ── */
/* hero-compact styles moved to site.css for unified control */

/* ── Contact page premium styling ── */
.contact-cards {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:18px;
  margin-top:28px
}
.contact-card {
  padding:24px;
  background:rgba(255,255,255,0.75);
  border:1px solid rgba(108,99,255,0.08);
  border-radius:16px;
  box-shadow:0 2px 8px rgba(37,42,70,0.03);
  backdrop-filter:blur(8px);
  transition:border-color .25s,box-shadow .25s,transform .25s
}
.contact-card:hover {
  border-color:rgba(108,99,255,0.2);
  box-shadow:0 8px 28px rgba(108,99,255,0.06);
  transform:translateY(-2px)
}
.contact-card h3 {
  display:flex;
  align-items:center;
  gap:10px;
  font-size:18px;
  font-weight:600;
  margin-bottom:10px;
  color:var(--ink)
}
.contact-card h3 .card-icon {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  border-radius:10px;
  background:linear-gradient(135deg,rgba(108,99,255,0.1),rgba(44,184,169,0.06));
  flex-shrink:0
}
.contact-card h3 .card-icon svg {
  width:18px;
  height:18px;
  color:#6c63ff
}
.contact-card p {
  font-size:14px;
  line-height:1.75;
  margin:0
}

/* ── Scroll padding for fixed header ── */
html {
  scroll-padding-top:82px
}
