/* Visual direction inspired by the supplied Edustage template.
   Shared by the public preview, configurator and local PDF laboratory. */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=Rubik:wght@400;500;600;700&display=swap');

:root {
  --ink: #002347;
  --muted: #65717e;
  --paper: #fff;
  --line: #e5eaf0;
  --accent: #fdc632;
  --green: #002347;
}
body { font-family: 'Roboto', Arial, sans-serif; color: var(--ink); line-height: 1.7; }
h1,h2,h3,.brand,.button { font-family: 'Rubik', Arial, sans-serif; }
h1,h2,h3 { font-weight: 500; letter-spacing: -.7px; }
h1 em { font-family: inherit; color: var(--ink); font-style: normal; }
h2 { line-height: 1.25; }
.wrap { width: min(1140px, calc(100% - 64px)); }
.preview-banner { background: var(--ink); color: #fff; font-size: 11px; padding: 5px 16px; letter-spacing: .5px; }
.header { min-height: 94px; border: 0; padding-top: 20px; padding-bottom: 20px; }
.brand { font-size: 29px; font-weight: 600; letter-spacing: -1px; }
.brand span { font-weight: 400; }
.brand i { color: #c08a00; }
.header nav { gap: 30px; font-size: 14px; font-weight: 500; }
.header nav a:hover,.text-link:hover { color: #956c00; }
.button { background: var(--accent); border-color: var(--accent); color: var(--ink); border-radius: 0; min-height: 50px; padding: 15px 27px; gap: 22px; font-weight: 500; transition: background .18s, color .18s; }
.button:hover { background: var(--ink); border-color: var(--ink); color: var(--accent); }
.button.secondary { background: var(--ink); border-color: var(--ink); color: #fff; }
.button.secondary:hover { color: var(--accent); }
.button:disabled { background: #e8ecf1; color: #687582; border-color: #e8ecf1; }
.eyebrow { letter-spacing: 1.7px; font-size: 11px; font-weight: 700; margin-bottom: 17px; }
.lead { color: var(--muted); font-size: 17px; line-height: 1.8; }
.quiet { color: var(--muted); line-height: 1.65; }
/* The supplied photograph has space above the students for the heading. */
.hero-banner { min-height: 710px; background: #eeeaed url('images/students-banner.jpg') center bottom / cover no-repeat; text-align: center; }
.hero-content { padding-top: 53px; padding-bottom: 330px; }
.hero-content h1 { font-size: clamp(36px, 4vw, 55px); line-height: 1.15; margin-bottom: 18px; letter-spacing: -1.2px; }
.hero-content .lead { max-width: 640px; margin: 0 auto 26px; color: #344c64; font-size: 16px; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }
.values { border: 0; background: var(--ink); color: #fff; }
.values .wrap { padding-top: 19px; padding-bottom: 19px; font-size: 13px; }
.values span:before { color: var(--accent); content: '✓'; }
.section { padding-top: 95px; padding-bottom: 95px; }
.section-heading { display: block; text-align: center; margin: 0 auto 45px; max-width: 730px; }
.section-heading h2 { font-size: 36px; }
.section-heading>p { max-width: 600px; margin: 20px auto 0; }
.steps { gap: 28px; }
.steps article { background: #f6f8fb; border: 0; padding: 32px 28px; transition: box-shadow .2s; }
.steps article:hover { box-shadow: 0 10px 30px #00234712; }
.steps h3 { font-size: 21px; margin-bottom: 14px; }
.steps p { margin-bottom: 0; }
.number { font-family: 'Rubik', Arial, sans-serif; font-size: 26px; font-weight: 500; color: var(--ink); border-bottom: 3px solid var(--accent); display: inline-block; margin-bottom: 25px; padding-bottom: 5px; }
.cover-section { background: #f6f8fb; padding: 85px 0; }
.cover-grid { gap: 60px; }
.cover-grid h2 { font-size: 40px; }
.material { border-radius: 0; height: 310px; padding: 26px 18px; }
.material span { font-size: 9px; }
.material b { font-family: 'Rubik',Arial,sans-serif; font-size: 19px; }
.text-link { color: var(--ink); text-decoration-color: #c08a00; }
.faq { gap: 65px; }
.faq h2 { font-size: 36px; }
summary { font-weight: 500; font-size: 16px; }
details { padding: 23px 0; }
details[open] summary { color: #6e5100; }
.closing { width: 100%; border-radius: 0; background: var(--ink); color: #fff; padding: 65px 24px; margin-bottom: 0; }
.closing .eyebrow { color: var(--accent); }
.closing h2 { font-family: 'Rubik',Arial,sans-serif; font-size: 40px; letter-spacing: -.6px; }
.closing .button:hover { border-color: var(--accent); }
.footer { border: 0; padding-top: 38px; padding-bottom: 38px; }
/* Keep every existing interaction and field identifier in the tools. */
.config-main { padding-top: 55px; background: #fff; }
.config-main>h1 { font-size: 44px; }
.config-main>.lead { max-width: 760px; }
.config-layout { gap: 30px; }
.progress { padding: 20px 24px; background: #f6f8fb; border: 0; }
.progress .current { border-bottom: 2px solid var(--accent); padding-bottom: 5px; }
.panel { border-radius: 0; padding: 32px; border-color: var(--line); }
.panel h2 { font-size: 28px; }
.panel>.eyebrow { color: var(--ink); }
.dropzone { border-radius: 0; background: #f6f8fb; border-color: #a3b3c5; }
.dropzone.dragover { background: #fff6d9; border-color: #916800; }
.notice { border-left-color: var(--accent); background: #fff8e4; color: #4b5360; line-height: 1.7; }
.summary { border-radius: 0; background: #f6f8fb; border-top: 4px solid var(--accent); }
.summary dl div { border-color: #dce3eb; }
.fields input,.fields textarea { background: #fff; border-radius: 0; border-color: #cbd4df; }
.fields label,legend { font-weight: 500; }
.file-actions button { border-radius: 0; background: #f6f8fb; color: var(--ink); }
.file-actions button:hover:enabled { background: var(--accent); }
.text-button { border: 1px solid #a8b6c5; background: transparent; color: var(--ink); padding: 10px 15px; margin-top: 20px; font-size: 13px; }
.text-button:disabled { opacity: .5; cursor: default; }
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible,.dropzone:focus-within { outline-color: #967000; }
@media(min-width:1600px) { .hero-banner { min-height: 780px; } .hero-content { padding-top: 70px; } }
@media(max-width:1000px) { .header nav { gap: 18px; } .hero-banner { min-height: 660px; } .hero-content { padding-bottom: 290px; } .cover-grid { gap: 30px; } .material { height: 280px; padding: 20px 13px; } .config-layout { gap: 20px; } .panel { padding: 24px; } }
@media(max-width:720px) {
  .wrap { width: calc(100% - 36px); }
  .header { min-height: 80px; gap: 14px; }
  .header nav { gap: 12px; font-size: 12px; }
  .header>a:not(.brand):not(.button) { font-size: 12px; }
  .hero-banner { min-height: 620px; background-size: auto 620px; }
  .hero-content { padding-top: 38px; padding-bottom: 270px; }
  .hero-content .eyebrow { font-size: 9px; letter-spacing: 1px; }
  .hero-content h1 { font-size: 35px; }
  .hero-content .lead { font-size: 14px; }
  .hero-actions { gap: 10px; }
  .hero-actions .button { font-size: 12px; padding: 12px 15px; min-height: 45px; gap: 12px; }
  .values .wrap { gap: 10px; font-size: 11px; }
  .section { padding-top: 55px; padding-bottom: 55px; }
  .section-heading h2,.faq h2 { font-size: 30px; }
  .steps { gap: 16px; }
  .steps article { padding: 25px; }
  .cover-section { padding: 50px 0; }
  .cover-grid h2 { font-size: 33px; }
  .material { height: 225px; padding: 17px 10px; }
  .material b { font-size: 15px; }
  .material span { font-size: 7px; }
  .faq { gap: 20px; }
  .closing { width: 100%; padding: 48px 20px; }
  .closing h2 { font-size: 31px; }
  .config-main>h1 { font-size: 34px; }
  .progress { gap: 15px; padding: 16px; }
  .panel { padding: 22px; }
  .panel h2 { font-size: 26px; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { transition: none !important; } }
[hidden] { display: none !important; }
.fields select { font: inherit; width: 100%; padding: 12px; border: 1px solid #cbd4df; background: #fff; color: var(--ink); }
.flow-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 28px; }
.flow-actions .text-button { margin-top: 0; }
.check-label { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.check-label input { width: 18px; height: 18px; accent-color: var(--ink); }
.panel-divider { border: 0; border-top: 1px solid var(--line); margin: 30px 0; }
.review-list { font-size: 14px; }
.review-list>div { display: grid; grid-template-columns: 1fr 1.5fr; gap: 15px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.review-list dt { color: var(--muted); }
.review-list dd { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
#cover-sample { margin: 25px 0; }
#cover-image { object-fit: contain; max-width: 100%; border: 1px solid var(--line); background: #fff; }
#cover-caption { font-size: 13px; color: var(--muted); margin-top: 8px; }
#finish-sample,#logo-sample { margin: 22px 0; }
#finish-image,#logo-image { object-fit: contain; max-width: 100%; border: 1px solid var(--line); background: #fff; }
#finish-caption,#logo-caption { font-size: 13px; color: var(--muted); margin-top: 8px; }
#preview-logo { width: 4.7em; height: 4.7em; padding: 0; background: transparent; margin: 0 auto; flex-shrink: 0; }
.preview-book { position: relative; display: block; width: 250px; aspect-ratio: 210 / 297; min-height: 0; padding: 0; gap: 0; }
.preview-content { position: absolute; inset: 7% 9% 7% 11%; display: flex; flex-direction: column; justify-content: space-between; gap: .9em; font: 8.5px/1.3 Georgia,serif; overflow-wrap: anywhere; }
.preview-content p { margin: 0; }
.preview-heading { display: flex; flex-direction: column; align-items: center; gap: .55em; }
#preview-university { font-size: 1em; font-weight: 700; }
#preview-degree-course { font-size: .95em; }
.preview-book .preview-content small { font-size: .85em; letter-spacing: 0; }
.preview-title-block { padding: 1.1em 0; }
.preview-book .preview-content h2 { margin: 0; font-size: 1.5em; line-height: 1.28; font-weight: 400; }
.preview-supervisors { text-align: left; font-size: .9em; }
.preview-supervisors p+p { margin-top: .5em; }
.preview-supervisors b { font-weight: 400; }
.preview-student { display: flex; flex-direction: column; gap: .35em; text-align: left; align-self: flex-end; max-width: 80%; }
#preview-author { font-size: 1em; }
#preview-student-number { font-size: .9em; }
#preview-academic-year { font-size: .9em; text-align: center; }
.preview-book.without-print>* { visibility: hidden; }
.preview-book.has-texture { background-size: auto, 180px 180px; background-position: center; background-repeat: no-repeat, repeat; cursor: zoom-in; }
.preview-book[aria-disabled="true"] { cursor: default; }
.preview-book:focus-visible,.texture-button:focus-visible { outline: 3px solid #967000; outline-offset: 5px; }
.texture-button { display: inline-flex; flex-direction: column; padding: 0; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: zoom-in; max-width: 100%; text-align: left; }
.texture-button #cover-image { border: 0; }
.texture-button>span { padding: 9px 12px; font-size: 12px; }
.texture-button:disabled { cursor: default; opacity: .65; }
#texture-dialog { width: min(900px,calc(100% - 32px)); max-height: calc(100dvh - 40px); padding: 22px; border: 0; color: var(--ink); background: #fff; box-shadow: 0 20px 70px #0005; }
#texture-dialog::backdrop { background: #0b1a2cbb; }
.texture-dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 16px; }
.texture-dialog-head h2 { margin: 0; font-size: 22px; }
#texture-close { border: 1px solid var(--line); background: #f6f8fb; color: var(--ink); font-size: 28px; line-height: 1; padding: 6px 12px; }
#texture-original { display: block; max-width: 100%; width: auto; height: auto; max-height: 65dvh; object-fit: contain; margin: 0 auto; }
#texture-dialog p { font-size: 13px; }
body.texture-open { overflow: hidden; }
#retry-analysis { margin-top: 0; font-size: 12px; }
.estimate-panel { margin: 28px 0; border-top: 2px solid var(--accent); padding-top: 15px; }
.estimate-panel>p { font-size: 13px; color: var(--muted); }
#estimate-details>div:last-child { font-weight: 600; border-top: 1px solid var(--ink); }
#summary-price { white-space: nowrap; font-size: 16px; }
