Library
/
style.css


:root{--ink:#0b0b0b;--muted:#666;--line:#dedede;--paper:#fff;--page:#f5f5f3;--shadow:0 24px 70px rgba(0,0,0,.1)}
*{box-sizing:border-box} [hidden]{display:none!important} html{scroll-behavior:smooth} body{margin:0;background:var(--page);color:var(--ink);font-family:"DM Sans",Arial,sans-serif} button,input,textarea,select{font:inherit} button{cursor:pointer}.site-header{height:74px;padding:0 clamp(18px,5vw,70px);display:flex;align-items:center;justify-content:space-between;background:rgba(255,255,255,.94);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50;backdrop-filter:blur(14px)}.brand{border:0;background:none;display:flex;align-items:center;gap:11px;font-weight:700;font-size:1.05rem}.brand-icon{
  width:42px;
  height:42px;
  flex:0 0 42px;
  display:block;
  border-radius:10px;
}

.brand-wordmark{
  width:146px;
  height:auto;
  flex:0 0 auto;
  display:block;
  border-radius:0;
}.site-header nav{display:flex;align-items:center;gap:10px}.link-button,.back{border:0;background:none;font-weight:600}.button{border:1px solid #111;border-radius:0px;min-height:44px;padding:0 18px;font-weight:700}.button-dark{background:#111;color:#fff}.button-light{background:#fff;color:#111;border-color:#ccc}.button-white{background:#fff;color:#111}.button-small{min-height:38px;padding:0 14px}.button-large{min-height:54px;padding:0 24px}.button-full{width:100%}.landing-view{background:#fff}.hero{max-width:1500px;margin:auto;padding:clamp(50px,8vw,110px) clamp(18px,5vw,70px);display:grid;grid-template-columns:.85fr 1.15fr;gap:64px;align-items:center}.eyebrow,.kicker{margin:0 0 10px;font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;font-weight:700}.hero h1{font-size:clamp(3rem,6vw,6.8rem);line-height:.91;letter-spacing:-.065em;margin:0 0 24px;max-width:760px}.hero-lead{font-size:clamp(1rem,1.5vw,1.25rem);line-height:1.7;color:#555;max-width:650px}.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin:30px 0}.hero-meta{display:flex;gap:18px;flex-wrap:wrap;color:#666;font-size:.86rem}.hero-meta span:before{content:"✓";margin-right:6px;color:#111}.example-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px;transform:rotate(1deg)}.example-card{min-height:260px;padding:25px;border:2px solid #111;box-shadow:7px 7px 0 #111;display:flex;flex-direction:column;justify-content:center}.example-card small{font-weight:700;letter-spacing:.12em}.example-card h2{font-size:clamp(1.8rem,3vw,3.4rem);line-height:1;margin:25px 0 8px;overflow-wrap:anywhere}.example-card em{margin-bottom:16px}.example-card p{line-height:1.55;margin:0}.ex-a{background:#fff4c9}.ex-b{background:#151515;color:#fff}.ex-c{background:#d8f4ff}.ex-d{background:#ffdf26}.marquee{background:#111;color:#fff;display:flex;justify-content:center;gap:42px;flex-wrap:wrap;padding:18px 24px;font-weight:700}.landing-section{max-width:1300px;margin:auto;padding:90px 24px}.section-heading h2{font-size:clamp(2.3rem,5vw,4.8rem);line-height:1;letter-spacing:-.05em;max-width:760px}.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:44px}.steps article{border-top:3px solid #111;padding:22px 4px}.steps b{font-size:.8rem}.steps h3{font-size:1.5rem;margin:28px 0 8px}.steps p{color:#666;line-height:1.6}.cta{background:#111;color:#fff;padding:70px clamp(22px,8vw,120px);display:flex;justify-content:space-between;align-items:center;gap:30px}.cta h2{font-size:clamp(2.5rem,6vw,6rem);margin:0;letter-spacing:-.055em}.cta p{color:#cfcfcf}.eyebrow-light{color:#fff}.app-view{padding:28px clamp(12px,3vw,42px) 60px}.app-bar{max-width:1600px;margin:0 auto 22px;display:flex;justify-content:space-between;align-items:end;gap:20px}.app-bar h1{margin:5px 0 0;font-size:clamp(1.7rem,3vw,2.5rem)}.back{padding:0;color:#666}.app-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.app-actions span{color:#777;font-size:.85rem}.creator-shell{max-width:1600px;margin:auto;display:grid;grid-template-columns:minmax(350px,520px) minmax(520px,1fr);gap:24px;align-items:start}.editor-column{display:flex;flex-direction:column;gap:16px}.panel,.preview-panel{background:#fff;border:1px solid var(--line);border-radius:0px;box-shadow:0 10px 34px rgba(0,0,0,.05)}.panel{padding:22px}.panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:20px}.panel h2,.preview-panel h2{margin:0;font-size:1.25rem}.subcopy,.generator-note{margin:5px 0 0;color:#777;font-size:.85rem}.round-button{width:38px;height:38px;border-radius:50%;border:1px solid #ccc;background:#fff;font-size:1.15rem}.prompt{width:100%;text-align:left;border:1px solid #111;background:#f7f7f5;border-radius:12px;padding:18px;margin-bottom:10px;font-weight:600;line-height:1.5}label{display:block;font-size:.82rem;font-weight:700;margin:15px 0 7px}label span{font-weight:500;color:#888}input,textarea,select{width:100%;border:1px solid #cfcfcf;border-radius:0px;background:#fff;padding:11px 12px;color:#111}textarea{min-height:92px;resize:vertical;line-height:1.5}input:focus,textarea:focus,select:focus{outline:2px solid #111;outline-offset:1px}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:12px}.segmented{display:grid;grid-template-columns:1fr 1fr;background:#eee;padding:4px;border-radius:11px}.segmented button,.caption-tabs button{border:0;background:transparent;padding:10px;border-radius:8px;font-weight:700}.segmented button.active,.caption-tabs button.active{background:#111;color:#fff}.type-groups details{border:1px solid #ddd;border-radius:10px;margin:9px 0}.type-groups summary{padding:11px 12px;font-weight:700;cursor:pointer}.tags{padding:0 10px 10px;display:flex;gap:7px;flex-wrap:wrap}.tags button{border:1px solid #ccc;background:#fff;border-radius:1px;padding:7px 10px;font-size:.79rem}.tags button.active{background:#111;color:#fff;border-color:#111}.switch{margin:0}.switch input{display:none}.switch span{display:block;width:48px;height:28px;border-radius:20px;background:#ccc;position:relative}.switch span:after{content:"";width:22px;height:22px;border-radius:50%;background:#fff;position:absolute;left:3px;top:3px;transition:.2s}.switch input:checked+span{background:#111}.switch input:checked+span:after{transform:translateX(20px)}.format-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.format-grid button{border:1px solid #ccc;background:#fff;border-radius:12px;padding:14px 8px;display:flex;flex-direction:column;align-items:center;gap:5px}.format-grid button.active{border:2px solid #111}.format-grid small{color:#777}.shape{display:block;border:2px solid #111;width:22px}.shape.story{height:40px}.shape.portrait{height:31px}.shape.square{height:23px}.preset-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.preset{border:1px solid #ccc;background:#fff;border-radius:12px;padding:8px;text-align:left}.preset.active{border:2px solid #111}.preset>strong,.preset>small{display:block;padding:0 4px}.preset>strong{margin-top:8px}.preset>small{color:#777;font-size:.72rem}.preset-art{height:118px;border-radius:8px;padding:12px;display:flex;flex-direction:column;justify-content:center;overflow:hidden}.preset-art b{font-size:1.15rem;line-height:1}.preset-art em{font-size:.65rem;margin:6px 0}.preset-art i,.preset-art u{height:4px;background:currentColor;opacity:.35;margin-top:5px;text-decoration:none}.preset-art u{width:65%}.preset-art.dictionary{background:#fdfbf7;color:#222;border-left:5px solid #b45309;font-family:Georgia,serif}.preset-art.social{background:#0f172a;color:#fff;border-left:7px solid #0ea5e9;font-family:Arial,sans-serif}.preset-art.editorial{background:#fff7ed;color:#7f1d1d;border-bottom:8px solid #ea580c;font-family:Georgia,serif}.preset-art.minimal{background:#fff;color:#111;border:1px solid #ddd;font-family:Arial,sans-serif}.preset-art.loud{background:#ffdf26;color:#000;border:5px solid #000;box-shadow:4px 4px 0 #fff;font-family:Impact,Arial,sans-serif}.preset-art.classified{background:#f4ecd8;color:#33271e;border:2px dashed #33271e;font-family:"Roboto Mono",monospace}.preset-art.neon{background:#1e1b4b;color:#f43f5e;border:2px solid #f43f5e;box-shadow:inset 0 0 14px rgba(244,63,94,.35)}.preset-art.literary{background:#fff1f2;color:#3f3f46;border:1px solid #be123c;font-family:"Playfair Display",serif}.customise{margin-top:16px;border-top:1px solid #ddd;padding-top:12px}.customise summary{font-weight:700;cursor:pointer}.colour-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.colour-grid label{border:1px solid #ddd;border-radius:10px;padding:10px}.colour-grid input{height:38px;padding:0;border:0;margin-top:6px}.username{display:flex;align-items:center;border:1px solid #ccc;border-radius:10px;padding-left:11px}.username input{border:0}.caption-tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}.caption-tabs button{background:#eee;padding:8px 11px}.caption-box{border:1px solid #111;border-radius:14px;overflow:hidden;background:#fafafa}.caption-top{display:flex;justify-content:space-between;padding:10px 13px;border-bottom:1px solid #ddd;font-size:.78rem;font-weight:700}.caption-top span:last-child{color:#777}.caption-box textarea{border:0;border-radius:0;min-height:180px;background:#fff;padding:16px;outline:0}.preview-column{position:sticky;top:94px}.preview-panel{padding:18px}.preview-head{display:flex;justify-content:space-between;align-items:center}.zoom{display:flex;border:1px solid #ccc;border-radius:0px;overflow:hidden}.zoom button{border:0;background:#fff;padding:8px 12px}.zoom button+button{border-left:1px solid #ddd}.preview-canvas{height:calc(100vh - 260px);min-height:610px;margin:16px 0;background-color:#ececea;background-image:radial-gradient(#bbb 1px,transparent 1px);background-size:20px 20px;border-radius:0px;display:grid;place-items:center;overflow:hidden}.card-stage{position:relative}.word-card{--c-bg:#fdfbf7;--c-text:#222;--c-accent:#b45309;width:450px;height:800px;padding:58px 44px;background:var(--c-bg);color:var(--c-text);box-shadow:0 20px 50px rgba(0,0,0,.25);position:absolute;left:0;top:0;transform:scale(var(--preview-scale,1));transform-origin:top left;display:flex;flex-direction:column;justify-content:center;overflow:hidden}.card-top{display:flex;justify-content:space-between;align-items:center;font-size:.74rem;letter-spacing:.16em;text-transform:uppercase;opacity:.65;margin-bottom:34px}.card-top span:first-child{padding:5px 8px;border:1px solid currentColor;border-radius:0px}.word-block{overflow:visible;margin-bottom:24px}.word-block h2{white-space:nowrap;margin:0;padding:0 0 .14em;overflow:visible;font-size:3.5em;line-height:1.1;font-weight:700;letter-spacing:0}.pronunciation{margin-top:.4rem;font-size:.95rem;opacity:.66}.pos{font-size:1.15rem;color:var(--c-accent);font-style:italic;margin-top:7px}.definition{font-size:1.2em;line-height:1.6;text-align:justify;hyphens:none;overflow-wrap:normal;word-break:normal;margin:0 0 34px}.examples-block>span{display:block;font-size:.78rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;padding-bottom:7px;border-bottom:1px solid currentColor;opacity:.65}.examples-block ul{list-style:none;padding:0;margin:14px 0 0}.examples-block li{position:relative;padding-left:22px;margin:11px 0;line-height:1.5;font-family:Georgia,serif;font-style:italic}.examples-block li:before{content:"“";position:absolute;left:0;top:-5px;font-size:1.55em;color:var(--c-accent);font-weight:700}.meta-block{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:22px;padding-top:14px;border-top:1px solid currentColor}.meta-block span,.meta-block strong{display:block}.meta-block span{font-size:.63rem;text-transform:uppercase;letter-spacing:.1em;opacity:.55}.meta-block strong{font-size:.75rem;margin-top:4px}.watermark{position:absolute;bottom:28px;left:0;width:100%;text-align:center;font-size:.7rem;letter-spacing:.13em;opacity:.45}.layout-standard .word-block h2,.layout-standard .definition,.layout-standard .examples-block li{font-family:Georgia,serif}.layout-modern{border-left:12px solid var(--c-accent);padding-left:32px}.layout-modern .word-block h2{font-family:Arial,sans-serif;font-weight:900}.layout-modern .pos{text-transform:uppercase;letter-spacing:.15em;font-size:.8rem;font-weight:700}.layout-modern .definition{text-align:left;font-family:Arial,sans-serif;font-weight:500}.layout-magazine .word-block h2{font-family:Impact,Arial,sans-serif;text-transform:uppercase;line-height:.9}.layout-magazine .definition{border-left:5px solid var(--c-accent);padding-left:14px;font-family:Georgia,serif;font-size:1.32em}.layout-minimalist{padding:72px 50px}.layout-minimalist .word-block h2{font-family:Arial,sans-serif;font-weight:300}.layout-minimalist .pos{color:var(--c-text);opacity:.45;text-transform:uppercase;letter-spacing:.14em;font-size:.8rem}.layout-minimalist .definition{text-align:left;font-family:Arial,sans-serif;font-weight:300}.layout-typewriter{font-family:"Roboto Mono",monospace}.layout-typewriter .word-block h2{font-family:"Roboto Mono",monospace;border-bottom:2px dashed currentColor;padding-bottom:12px}.layout-typewriter .pos{background:var(--c-accent);color:var(--c-bg);display:inline-block;padding:3px 7px}.layout-typewriter .definition,.layout-typewriter .examples-block li{font-family:"Roboto Mono",monospace;text-align:left}.layout-brutalist{border:10px solid var(--c-text);padding:34px;box-shadow:10px 10px 0 var(--c-accent)}.layout-brutalist .word-block h2{font-family:Impact,Arial,sans-serif;text-transform:uppercase;line-height:.9}.layout-brutalist .pos{color:var(--c-text);border:2px solid currentColor;padding:4px 7px;display:inline-block;text-transform:uppercase;font-family:"Roboto Mono",monospace}.layout-brutalist .definition{font-family:Arial,sans-serif;font-weight:700;text-align:left;border-bottom:4px solid currentColor;padding-bottom:17px}.layout-centered{text-align:center;align-items:center}.layout-centered .word-block h2,.layout-centered .definition,.layout-centered .examples-block li{font-family:Georgia,serif}.layout-centered .definition{text-align:center}.layout-elegant .word-block h2{font-family:"Playfair Display",serif;font-style:italic;font-weight:600;color:var(--c-accent)}.layout-elegant .definition,.layout-elegant .examples-block li{font-family:Georgia,serif;text-align:center}.layout-flashcard{border-radius:25px}.layout-flashcard .word-block{text-align:center;border-bottom:3px solid var(--c-accent);padding-bottom:18px}.layout-flashcard .definition{text-align:center;font-family:Arial,sans-serif}.layout-academic .word-block h2,.layout-academic .definition,.layout-academic .examples-block li{font-family:"Times New Roman",serif}.layout-academic .definition{text-indent:28px}.format-portrait{height:562.5px;padding-top:42px;padding-bottom:42px}.format-square{height:450px;padding:34px 38px;justify-content:flex-start}.format-square .card-top{margin-bottom:18px}.format-square .word-block{margin-bottom:15px}.format-square .definition{font-size:1.05em;line-height:1.45;margin-bottom:18px}.format-square .examples-block li{font-size:.9rem}.format-square .meta-block{display:none!important}.format-square .watermark{bottom:18px}.preview-actions{display:flex;justify-content:flex-end;gap:9px}.mobile-tabs{display:none}dialog{border:0;border-radius:18px;width:min(560px,calc(100% - 24px));padding:0;box-shadow:0 30px 90px rgba(0,0,0,.25)}dialog::backdrop{background:rgba(0,0,0,.5)}.dialog-head{padding:20px;display:flex;justify-content:space-between;border-bottom:1px solid #ddd}.drafts-list{padding:16px;display:grid;gap:10px}.draft-row{border:1px solid #ddd;border-radius:10px;padding:12px;display:flex;justify-content:space-between;gap:10px}.toast{position:fixed;left:50%;bottom:25px;transform:translate(-50%,20px);background:#111;color:#fff;padding:11px 17px;border-radius:0px;opacity:0;pointer-events:none;transition:.2s;z-index:100}.toast.show{opacity:1;transform:translate(-50%,0)}footer{min-height:80px;background:#fff;border-top:1px solid #ddd;padding:20px clamp(18px,5vw,70px);display:flex;justify-content:space-between;align-items:center;color:#666;font-size:.84rem}
@media(max-width:1100px){.hero{grid-template-columns:1fr}.creator-shell{grid-template-columns:1fr}.preview-column{position:relative;top:auto;order:-1}.preview-canvas{height:680px}.preset-grid{grid-template-columns:repeat(4,1fr)}}
@media(max-width:720px){.site-header{height:66px;padding:0 14px}.brand-icon{
  width:36px;
  height:36px;
  flex-basis:36px;
}

.brand-wordmark{
  width:126px;
  height:auto;
}.link-button{display:none}.hero{padding:44px 18px}.hero h1{font-size:3.4rem}.example-grid{grid-template-columns:1fr;transform:none}.example-card{min-height:220px}.steps{grid-template-columns:1fr 1fr}.cta{align-items:flex-start;flex-direction:column}.app-view{padding:16px 10px 40px}.app-bar{align-items:flex-start}.app-actions .button-light,#save-state{display:none}.mobile-tabs{display:grid;grid-template-columns:1fr 1fr;max-width:500px;margin:0 auto 12px;background:#ddd;padding:4px;border-radius:0px}.mobile-tabs button{border:0;background:none;padding:9px;border-radius:0px;font-weight:700}.mobile-tabs button.active{background:#111;color:#fff}.creator-shell{display:block}.preview-column{display:none}.creator-shell.preview-mode .editor-column{display:none}.creator-shell.preview-mode .preview-column{display:block}.preview-canvas{height:600px;min-height:0}.two-col{grid-template-columns:1fr}.preset-grid{grid-template-columns:repeat(2,1fr)}.format-grid{grid-template-columns:1fr 1fr 1fr}.panel{padding:17px}footer{flex-direction:column;text-align:center}.hero-meta{gap:10px}.marquee{gap:20px}.word-card{box-shadow:0 12px 30px rgba(0,0,0,.2)}}

/* Refined language filtering and caption presentation */
.type-groups details[hidden] { display: none !important; }
.type-groups details { overflow: hidden; }
.type-groups summary { background: #fafafa; }
.type-groups details[open] summary { border-bottom: 1px solid #e5e5e5; }
.caption-panel { background: #fff; }
.caption-tabs { padding: 4px; background: #eeeeec; border-radius: 11px; width: fit-content; }
.caption-tabs button { min-width: 82px; }
.caption-box { box-shadow: 4px 4px 0 #111; }
.caption-box textarea {
  display: block;
  width: 100%;
  height: auto;
  min-height: 120px;
  overflow: hidden;
  resize: none;
  border: 0;
  border-radius: 0;
  background: #fff;
  padding: 16px;
  outline: 0;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: .95rem;
  line-height: 1.65;
  color: #222;
}
.caption-top { background: #111; color: #fff; border-bottom: 0; }
.caption-top span:last-child { color: #cfcfcf; }
/* Word and phrase titles use exactly the same sizing logic. */
.word-block h2 { font-size: 3.5em; font-weight: 700; letter-spacing: 0; line-height: 1.1; }


/* August refinement: spacious style chooser and real landing previews */
.preset-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;grid-auto-rows:1fr}
.preset{display:flex;flex-direction:column;min-width:0;min-height:210px;padding:11px;border-radius:14px;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.preset:hover{transform:translateY(-2px);box-shadow:0 8px 22px rgba(0,0,0,.08)}
.preset.active{border:2px solid #111;box-shadow:4px 4px 0 #111;padding:10px}
.preset-art{width:100%;height:142px;flex:none;padding:15px;border-radius:0px}
.preset-art b{font-size:1.3rem;white-space:nowrap;overflow:hidden;text-overflow:clip}
.preset-art em{font-size:.7rem}
.preset>strong{font-size:.93rem;margin-top:11px}
.preset>small{font-size:.74rem;line-height:1.35;margin-top:2px}

.real-example-grid{transform:none;align-items:start;gap:22px}
.landing-card-shell{min-width:0}
.landing-card-label{display:flex;justify-content:space-between;align-items:center;margin:0 2px 9px;font-size:.72rem;font-weight:700;letter-spacing:.09em;text-transform:uppercase}
.landing-card-label button{border:0;background:none;text-decoration:underline;text-underline-offset:3px;font:inherit;letter-spacing:0;text-transform:none;cursor:pointer}
.landing-card-frame{position:relative;width:100%;aspect-ratio:9/16;overflow:hidden;background:#dededb;border:1px solid #111;box-shadow:7px 7px 0 #111}
.landing-real-card.word-card{position:relative;inset:auto;width:100%;height:100%;transform:none!important;box-shadow:none;padding:8.5% 8%;justify-content:center;overflow:hidden}
.landing-real-card .card-top{font-size:clamp(.42rem,.8vw,.62rem);margin-bottom:5.5%;gap:8px}
.landing-real-card .word-block{margin-bottom:4.5%;min-width:0}
.landing-real-card .word-block h2{font-size:clamp(1.35rem,3.15vw,2.8rem);white-space:nowrap;max-width:100%;padding-bottom:.12em}
.landing-real-card .word-block h2.landing-long-word{font-size:clamp(1.05rem,2.45vw,2.12rem)}
.landing-real-card .pronunciation{font-size:clamp(.52rem,1vw,.78rem);margin-top:.2rem}
.landing-real-card .pos{font-size:clamp(.62rem,1.2vw,.9rem);margin-top:4px}
.landing-real-card .definition{font-size:clamp(.68rem,1.25vw,1rem);line-height:1.48;margin-bottom:6%;}
.landing-real-card .examples-block>span{font-size:clamp(.44rem,.75vw,.62rem);padding-bottom:5px}
.landing-real-card .examples-block ul{margin-top:7px}
.landing-real-card .examples-block li{font-size:clamp(.57rem,1vw,.78rem);line-height:1.4;margin:5px 0;padding-left:14px}
.landing-real-card .examples-block li:before{font-size:1.35em;top:-3px}
.landing-real-card .watermark{bottom:3.2%;font-size:clamp(.42rem,.72vw,.58rem)}
.landing-real-card.layout-modern{border-left-width:8px;padding-left:7%}
.landing-real-card.layout-brutalist{border-width:7px;padding:7%;box-shadow:none}
.landing-real-card.layout-brutalist .word-block h2{font-size:clamp(1.35rem,3.25vw,2.85rem)}
.landing-real-card.layout-magazine .definition{border-left-width:3px;padding-left:8px}
.type-groups details[hidden]{display:block!important}
@media(max-width:720px){.preset-grid{grid-template-columns:1fr}.preset{min-height:200px}.preset-art{height:136px}.real-example-grid{grid-template-columns:1fr 1fr}.landing-card-frame{box-shadow:5px 5px 0 #111}}
@media(max-width:480px){.real-example-grid{grid-template-columns:1fr}.landing-card-frame{max-width:360px;margin-inline:auto}.landing-card-label{max-width:360px;margin-left:auto;margin-right:auto}}

/* Compact language selector restored */
.compact-type-groups{margin-top:8px}
.compact-type-groups .tags{padding:0;gap:8px}
.compact-type-groups .tags button{padding:8px 13px;font-size:.82rem}

/* Landing examples: one portrait-height horizontal carousel */
.hero{overflow:hidden}
.real-example-grid{
  display:flex;
  grid-template-columns:none;
  gap:22px;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x mandatory;
  overscroll-behavior-inline:contain;
  padding:4px 12px 18px 4px;
  scrollbar-width:thin;
  scrollbar-color:#111 #e7e7e4;
  transform:none;
  min-width:0;
}
.real-example-grid::-webkit-scrollbar{height:10px}
.real-example-grid::-webkit-scrollbar-track{background:#e7e7e4;border-radius:0px}
.real-example-grid::-webkit-scrollbar-thumb{background:#111;border-radius:0px}
.real-example-grid .landing-card-shell{
  flex:0 0 clamp(235px,24vw,305px);
  scroll-snap-align:start;
  min-width:0;
}
.real-example-grid .landing-card-frame{aspect-ratio:9/16}
@media(max-width:1100px){
  .real-example-grid .landing-card-shell{flex-basis:clamp(230px,38vw,300px)}
}
@media(max-width:720px){
  .real-example-grid{display:flex;grid-template-columns:none;margin-right:-18px;padding-right:28px}
  .real-example-grid .landing-card-shell{flex-basis:min(76vw,300px)}
  .landing-card-frame{max-width:none;margin:0}
  .landing-card-label{max-width:none;margin-left:2px;margin-right:2px}
}
@media(max-width:480px){
  .real-example-grid{display:flex;grid-template-columns:none}
  .real-example-grid .landing-card-shell{flex-basis:min(82vw,290px)}
  .landing-card-frame{max-width:none;margin:0}
  .landing-card-label{max-width:none}
}


/* Language selection and guidance */
.language-label-row{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:2px}
.text-help{border:0;background:none;padding:0;color:#111;font-size:.78rem;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.language-option-set{border:1px solid #d6d6d3;border-radius:0px;padding:14px;background:#fafafa}
.option-set-note{margin:0 0 12px;color:#666;font-size:.8rem;line-height:1.45}
.language-subgroup+.language-subgroup{margin-top:15px;padding-top:15px;border-top:1px solid #ddd}
.language-subgroup>span{display:block;margin-bottom:9px;font-size:.7rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#666}
.help-dialog{width:min(1040px,calc(100% - 24px));max-height:min(88vh,900px)}
.help-content{padding:24px;overflow:auto;max-height:calc(88vh - 92px)}
.help-intro{font-size:1.02rem;line-height:1.7;max-width:820px;margin:0 0 28px;color:#444}
.help-content section+section{margin-top:34px}
.help-content h3{font-size:1.4rem;margin:0 0 15px}
.help-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.help-grid article{border:1px solid #d8d8d5;border-radius:12px;padding:17px;background:#fff}
.help-grid h4{margin:0 0 7px;font-size:1.03rem}
.help-grid p{margin:0 0 11px;line-height:1.55;color:#555}
.help-grid b{display:block;margin-bottom:3px;font-size:.68rem;letter-spacing:.1em;text-transform:uppercase}
.help-grid span{display:block;margin-bottom:10px;color:#444}
.help-grid em{display:block;border-top:1px solid #e3e3e0;padding-top:10px;color:#333;line-height:1.5}
.help-tip{margin-top:24px;padding:18px;border:2px solid #111;background:#f5f5f2}
.help-tip p{margin:5px 0 0;line-height:1.6}
.input-error{border-color:#c62828!important;box-shadow:0 0 0 3px rgba(198,40,40,.12)!important}

/* Landing card showcase */
.landing-showcase{min-width:0;overflow:hidden}
.showcase-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:14px}
.showcase-head h2{font-size:clamp(1.6rem,2.7vw,2.5rem);line-height:1;margin:0;letter-spacing:-.04em}
.carousel-controls{display:flex;gap:6px;flex-shrink:0}
.carousel-controls button{min-width:38px;height:38px;border:1px solid #111;border-radius:8px;background:#fff;font-weight:700}
.carousel-controls #carousel-toggle{padding:0 12px}
.real-example-grid{scroll-behavior:smooth}
.real-example-grid:hover{scrollbar-color:#111 #d7d7d3}

@media(max-width:720px){
  .help-grid{grid-template-columns:1fr}
  .help-content{padding:18px}
  .language-label-row{align-items:flex-start;flex-direction:column;gap:4px}
  .showcase-head{align-items:flex-start;flex-direction:column}
}


/* Exact export-card previews on the landing carousel */
.landing-card-frame{
  position:relative;
  width:100%;
  aspect-ratio:9/16;
  overflow:visible;
  background:transparent;
  border:0;
  box-shadow:none;
}
.landing-real-card.word-card{
  position:absolute;
  left:0;
  top:0;
  width:450px;
  height:800px;
  padding:58px 44px;
  transform:scale(var(--landing-scale, .6))!important;
  transform-origin:top left;
  justify-content:center;
  overflow:hidden;
}
.landing-real-card .card-top{font-size:.74rem;margin-bottom:34px;gap:0}
.landing-real-card .word-block{overflow:visible;margin-bottom:24px;min-width:0}
.landing-real-card .word-block h2{font-size:3.5em;white-space:nowrap;max-width:none;padding:0 0 .14em}
.landing-real-card .pronunciation{margin-top:.4rem;font-size:.95rem}
.landing-real-card .pos{font-size:1.15rem;margin-top:7px}
.landing-real-card .definition{font-size:1.2em;line-height:1.6;margin:0 0 34px}
.landing-real-card .examples-block>span{font-size:.78rem;padding-bottom:7px}
.landing-real-card .examples-block ul{margin:14px 0 0}
.landing-real-card .examples-block li{font-size:1rem;line-height:1.5;margin:11px 0;padding-left:22px}
.landing-real-card .examples-block li:before{font-size:1.55em;top:-5px}
.landing-real-card .watermark{bottom:28px;font-size:.7rem}
.landing-real-card.layout-modern{border-left-width:12px;padding-left:32px}
.landing-real-card.layout-brutalist{border-width:10px;padding:34px;box-shadow:10px 10px 0 var(--c-accent)}
.landing-real-card.layout-magazine .definition{border-left-width:5px;padding-left:14px}
.landing-card-action{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:13px;font-size:.76rem;font-weight:700}
.landing-card-action span{letter-spacing:.09em;text-transform:uppercase;color:#555}
.landing-card-action button{border:0;background:none;padding:0;text-decoration:underline;text-underline-offset:3px;font-weight:700}

/* Responsive polish pass: UI colour, format alignment, caption and help dialog */
html{
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}
body{
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
button,
input,
textarea,
select,
summary{
  color:#111;
  -webkit-text-fill-color:currentColor;
}
button,
select,
input[type="button"],
input[type="submit"]{
  -webkit-appearance:none;
  appearance:none;
}
button,
[role="button"]{
  -webkit-tap-highlight-color:transparent;
}
a,
a:visited,
.link-button,
.back,
.text-help,
.landing-card-action button{
  color:#111;
  -webkit-text-fill-color:#111;
}
.button-dark,
.segmented button.active,
.caption-tabs button.active,
.tags button.active,
.mobile-tabs button.active{
  color:#fff;
  -webkit-text-fill-color:#fff;
}
input::placeholder,
textarea::placeholder{
  color:#8a8a8a;
  -webkit-text-fill-color:#8a8a8a;
  opacity:1;
}

/* Keep each destination option level and evenly justified. */
.format-grid{
  align-items:stretch;
}
.format-grid button{
  min-width:0;
  min-height:116px;
  justify-content:flex-start;
  text-align:center;
}
.format-grid button .shape{
  flex:0 0 auto;
  margin-bottom:3px;
}
.format-grid button strong,
.format-grid button small{
  display:block;
  width:100%;
  text-align:center;
  line-height:1.25;
}
.format-grid button strong{
  margin-top:auto;
}
.format-grid button small{
  min-height:2.5em;
  display:flex;
  align-items:flex-start;
  justify-content:center;
}

/* Make the language guide a contained, polished reading surface. */
.help-dialog{
  width:min(960px,calc(100vw - 40px));
  max-width:960px;
  height:min(84dvh,820px);
  max-height:min(84dvh,820px);
  margin:auto;
  overflow:hidden;
  border:1px solid #cfcfcb;
  border-radius:0px;
  background:#f7f7f5;
}
.help-dialog .dialog-head{
  position:sticky;
  top:0;
  z-index:2;
  align-items:center;
  padding:20px 22px;
  background:rgba(255,255,255,.97);
  backdrop-filter:blur(12px);
}
.help-dialog .dialog-head h2{
  margin:0;
  font-size:clamp(1.35rem,2.2vw,1.85rem);
}
.help-dialog .round-button{
  flex:0 0 auto;
  color:#111;
  -webkit-text-fill-color:#111;
}
.help-dialog .help-content{
  height:calc(100% - 83px);
  max-height:none;
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:24px;
  scrollbar-gutter:stable;
}
.help-dialog .help-grid article{
  min-width:0;
}
.help-dialog .help-grid em,
.help-dialog .help-grid span,
.help-dialog .help-grid p{
  overflow-wrap:anywhere;
}

/* Caption controls stay aligned and readable at every width. */
.caption-panel .panel-head{
  align-items:center;
}
.caption-panel .panel-head>div{
  min-width:0;
}
.caption-panel .panel-head .button{
  flex:0 0 auto;
  white-space:nowrap;
}
.caption-tabs{
  width:100%;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:4px;
}
.caption-tabs button{
  min-width:0;
  width:100%;
  white-space:nowrap;
}
.caption-top{
  align-items:center;
  gap:12px;
}
.caption-top span{
  min-width:0;
}
.caption-top span:last-child{
  text-align:right;
  white-space:nowrap;
}
.caption-box textarea{
  width:100%;
  display:block;
}

@media(max-width:720px){
  .site-header button,
  .app-view button,
  dialog button{
    color:#111;
    -webkit-text-fill-color:#111;
  }
  .site-header .button-dark,
  .app-view .button-dark,
  .app-view .segmented button.active,
  .app-view .caption-tabs button.active,
  .app-view .tags button.active,
  .mobile-tabs button.active{
    color:#fff;
    -webkit-text-fill-color:#fff;
  }
  .format-grid{
    gap:7px;
  }
  .format-grid button{
    min-height:108px;
    padding:12px 5px;
  }
  .format-grid button strong{
    font-size:.86rem;
  }
  .format-grid button small{
    font-size:.68rem;
    min-height:2.5em;
  }
  .help-dialog{
    width:100vw;
    max-width:none;
    height:calc(100dvh - 10px);
    max-height:calc(100dvh - 10px);
    margin:10px 0 0;
    border-width:1px 0 0;
    border-radius:18px 18px 0 0;
  }
  .help-dialog .dialog-head{
    padding:16px 17px;
  }
  .help-dialog .help-content{
    height:calc(100% - 75px);
    padding:16px 14px 28px;
  }
  .help-dialog .help-intro{
    font-size:.95rem;
    margin-bottom:20px;
  }
  .help-dialog .help-content h3{
    font-size:1.18rem;
  }
  .help-dialog .help-grid{
    gap:10px;
  }
  .help-dialog .help-grid article{
    padding:15px;
  }
  .caption-panel .panel-head{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:start;
    gap:10px;
  }
  .caption-panel .panel-head .button{
    min-height:38px;
    padding:0 12px;
  }
  .caption-tabs{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .caption-top{
    padding:10px 12px;
    font-size:.72rem;
  }
  .caption-box textarea{
    min-height:165px;
    padding:14px;
    font-size:16px;
  }
}

@media(max-width:390px){
  .format-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .format-grid button{
    min-height:104px;
  }
  .format-grid button small{
    font-size:.64rem;
  }
  .caption-panel .panel-head{
    grid-template-columns:1fr;
  }
  .caption-panel .panel-head .button{
    width:100%;
  }
}


/* Mobile sticky creator action and native mobile export */
body.app-active #header-primary-action{display:none}
.mobile-export-dialog{
  width:min(620px,calc(100% - 24px));
  max-height:min(90dvh,860px);
  padding:0;
  border:1px solid #d8d8d8;
  border-radius:20px;
  overflow:hidden;
}
.mobile-export-content{
  padding:18px;
  overflow:auto;
  max-height:calc(90dvh - 78px);
}
.mobile-export-content>p{margin:0 0 15px;color:#555;line-height:1.55}
.mobile-export-image-wrap{
  display:grid;
  place-items:center;
  padding:14px;
  background:#ececea;
  border:1px solid #d6d6d4;
  border-radius:14px;
}
.mobile-export-image-wrap img{
  display:block;
  width:auto;
  max-width:100%;
  max-height:52dvh;
  object-fit:contain;
  box-shadow:0 14px 36px rgba(0,0,0,.18);
  -webkit-touch-callout:default;
  user-select:auto;
}
.mobile-export-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}
.mobile-export-content>small{display:block;margin-top:12px;color:#666;line-height:1.5}

@media(max-width:720px){
  body.app-active #header-primary-action{display:inline-flex}
  body.app-active .site-header nav{margin-left:auto}
  body.app-active .site-header nav .link-button{display:none}
  #header-primary-action{min-width:84px;justify-content:center}
  .mobile-export-dialog{
    width:100vw;
    max-width:none;
    height:calc(100dvh - 8px);
    max-height:calc(100dvh - 8px);
    margin:8px 0 0;
    border-width:1px 0 0;
    border-radius:18px 18px 0 0;
  }
  .mobile-export-content{max-height:calc(100dvh - 82px);padding:16px 14px 28px}
  .mobile-export-image-wrap{padding:10px}
  .mobile-export-image-wrap img{max-height:55dvh}
  .mobile-export-actions{grid-template-columns:1fr}
}


/* Reliable one-line title fitting and mobile export refinement */
.word-block{min-width:0;width:100%;overflow:visible}
.word-block h2{display:block;width:100%;max-width:100%;min-width:0;white-space:nowrap;overflow:visible;text-overflow:clip}
.mobile-export-actions .button{min-width:0;white-space:nowrap}
@media(max-width:720px){
  .mobile-export-dialog .dialog-head{position:sticky;top:0;background:#fff;z-index:2}
  .mobile-export-image-wrap{min-height:220px}
  .mobile-export-actions{position:sticky;bottom:0;background:#fff;padding-top:12px;padding-bottom:max(4px,env(safe-area-inset-bottom));z-index:2}
}


/* Mobile control alignment and dependable live title fitting */
.word-block{min-width:0;width:100%;overflow:visible}
.word-block h2{display:block;width:100%;max-width:100%;min-width:0;white-space:nowrap;overflow:visible;text-overflow:clip}
@media(max-width:720px){
  button,.button,.link-button,.back,.round-button,.segmented button,.tags button,.format-grid button,.preset,.caption-tabs button,.zoom button,.carousel-controls button,.mobile-tabs button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    line-height:1.15;
  }
  .format-grid button,.preset{display:flex}
  .prompt{display:flex;align-items:center;justify-content:flex-start}
  .panel-head .button{align-self:flex-start}
}


/* Mobile header cleanup: keep only the contextual primary action. */
@media(max-width:900px){
  .site-header nav .link-button{display:none!important}
  .site-header nav{margin-left:auto}
}


/* Button contrast lock */
body button,
body .button,
body .link-button,
body .back,
body .round-button{
  color:#111;
  -webkit-text-fill-color:#111;
}
body .button-dark,
body button.button-dark,
body #header-primary-action.button-dark,
body .caption-panel .button-dark,
body .mobile-export-actions .button-dark{
  background:#111!important;
  border-color:#111!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
body .button-white,
body button.button-white{
  background:#fff!important;
  color:#111!important;
  -webkit-text-fill-color:#111!important;
}
body .button-light,
body button.button-light{
  background:#fff;
  color:#111!important;
  -webkit-text-fill-color:#111!important;
}
body button:disabled,
body .button:disabled{
  opacity:.5;
}

/* Accurate visual-direction previews
   Button contrast rules must never override the colours inside preview artwork. */
body .preset .preset-art,
body .preset .preset-art *{
  -webkit-text-fill-color:currentColor!important;
}

.preset-art{
  position:relative;
  box-sizing:border-box;
  justify-content:center;
}
.preset-art b,
.preset-art em,
.preset-art i,
.preset-art u{
  position:relative;
  z-index:1;
}
.preset-art b{display:block}
.preset-art em{display:block;font-style:italic}

/* Dictionary: classic cream card, serif title, amber italic part of speech. */
.preset-art.dictionary{
  background:#fdfbf7;
  color:#222;
  border:1px solid rgba(0,0,0,.08);
  font-family:Georgia,"Times New Roman",serif;
  box-shadow:0 8px 18px rgba(0,0,0,.08);
}
.preset-art.dictionary b{font-family:Georgia,"Times New Roman",serif;font-weight:700;color:#222}
.preset-art.dictionary em{color:#b45309}

/* Social: navy card with cyan spine and heavy sans-serif title. */
.preset-art.social{
  background:#0f172a;
  color:#f8fafc;
  border:0;
  border-left:9px solid #0ea5e9;
  font-family:Arial,Helvetica,sans-serif;
}
.preset-art.social b{font-family:Arial,Helvetica,sans-serif;font-weight:900;color:#f8fafc;letter-spacing:-.03em}
.preset-art.social em{color:#0ea5e9;font-style:normal;font-weight:700;letter-spacing:.13em}

/* Editorial: cream and red, heavy condensed headline, orange accent. */
.preset-art.editorial{
  background:#fff7ed;
  color:#7f1d1d;
  border:1px solid rgba(127,29,29,.18);
  border-bottom:8px solid #ea580c;
  font-family:Georgia,"Times New Roman",serif;
}
.preset-art.editorial b{font-family:Impact,"Arial Black",Arial,sans-serif;font-weight:900;color:#7f1d1d;letter-spacing:-.025em;line-height:.9}
.preset-art.editorial em{color:#ea580c;font-family:Arial,Helvetica,sans-serif;font-weight:700}

/* Minimal: restrained monochrome and light sans-serif typography. */
.preset-art.minimal{
  background:#fff;
  color:#111;
  border:1px solid #ddd;
  font-family:Arial,Helvetica,sans-serif;
  box-shadow:none;
}
.preset-art.minimal b{font-family:Arial,Helvetica,sans-serif;font-weight:300;color:#111;letter-spacing:.02em}
.preset-art.minimal em{color:#111;opacity:.48;font-style:normal;text-transform:uppercase;letter-spacing:.13em}
.preset-art.minimal i,.preset-art.minimal u{opacity:.18}

/* Loud: yellow field, black frame, white offset shadow and impact title. */
.preset-art.loud{
  background:#ffdf26;
  color:#000;
  border:6px solid #000;
  box-shadow:6px 6px 0 #fff;
  font-family:Impact,"Arial Black",Arial,sans-serif;
}
.preset-art.loud b{font-family:Impact,"Arial Black",Arial,sans-serif;font-weight:900;color:#000;line-height:.88}
.preset-art.loud em{display:inline-block;width:max-content;color:#000;border:2px solid #000;padding:2px 5px;font-family:"Roboto Mono",monospace;font-style:normal;font-weight:700}

/* Classified: sepia paper, monospaced type, dashed title rule and crimson label. */
.preset-art.classified{
  background:#f4ecd8;
  color:#4a3728;
  border:1px solid rgba(74,55,40,.25);
  font-family:"Roboto Mono","Courier New",monospace;
}
.preset-art.classified b{font-family:"Roboto Mono","Courier New",monospace;font-weight:600;color:#4a3728;border-bottom:2px dashed #4a3728;padding-bottom:6px}
.preset-art.classified em{display:inline-block;width:max-content;background:#a42828;color:#f4ecd8;padding:2px 5px;font-family:"Roboto Mono","Courier New",monospace;font-style:normal;font-weight:600}

/* Neon: dark violet social layout, pale title and hot-pink accent. */
.preset-art.neon{
  background:#1e1b4b;
  color:#e0e7ff;
  border:0;
  border-left:9px solid #f43f5e;
  box-shadow:inset 0 0 18px rgba(244,63,94,.16);
  font-family:Arial,Helvetica,sans-serif;
}
.preset-art.neon b{font-family:Arial,Helvetica,sans-serif;font-weight:900;color:#e0e7ff;letter-spacing:-.03em}
.preset-art.neon em{color:#f43f5e;font-style:normal;font-weight:700;letter-spacing:.13em}

/* Literary: blush paper, crimson italic Playfair title and muted body text. */
.preset-art.literary{
  background:#fff1f2;
  color:#3f3f46;
  border:1px solid rgba(190,18,60,.26);
  font-family:Georgia,"Times New Roman",serif;
  text-align:center;
}
.preset-art.literary b{font-family:"Playfair Display",Georgia,serif;font-style:italic;font-weight:600;color:#be123c}
.preset-art.literary em{color:#3f3f46;opacity:.7;letter-spacing:.08em}

/* Keep preview labels outside the art in the monochrome application UI. */
.preset>strong,.preset>small{
  color:#111!important;
  -webkit-text-fill-color:#111!important;
}
@media (max-width: 720px) {

  .caption-panel {
    margin-top: 24px;
  }

  .caption-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    gap: 8px;
    padding: 0;
    margin-bottom: 16px;
    background: transparent;
  }

  .caption-tabs button {
    width: 100%;
    min-height: 46px;
    border-radius: 10px;
  }

  .caption-box {
    margin-top: 0;
    border-radius: 14px;
    overflow: hidden;
  }

  .caption-top {
    padding: 12px 14px;
  }

  .caption-box textarea {
    min-height: 260px;
    padding: 18px;
    font-size: 1rem;
    line-height: 1.7;
  }

}
/* Shared Definr footer */

.site-footer {
  min-height: 120px;
  padding: 28px clamp(18px, 5vw, 70px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 30px;
  border-top: 1px solid #dedede;
  background: #f7f7f4;
  color: #666;
  font-size: .84rem;
}

.site-footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.site-footer-brand img {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: block;
  border-radius: 9px;
}

.site-footer-brand strong,
.site-footer-brand span {
  display: block;
}

.site-footer-brand strong {
  color: #111;
  font-size: .9rem;
}

.site-footer-brand span {
  margin-top: 2px;
  line-height: 1.4;
}

.site-footer nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer a,
.site-footer button {
  padding: 0;
  border: 0;
  color: #111;
  -webkit-text-fill-color: #111;
  background: transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.site-footer a:hover,
.site-footer button:hover,
.site-footer a:focus-visible,
.site-footer button:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer p {
  margin: 0;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .site-footer-brand,
  .site-footer nav {
    justify-content: center;
  }

  .site-footer p {
    white-space: normal;
  }
}

@media (max-width: 600px) {
  .site-footer {
    padding: 28px 18px;
    gap: 22px;
  }

  .site-footer nav {
    justify-content: center;
    gap: 12px 16px;
  }
}
@media (max-width: 720px) {
  .app-bar .app-actions button[onclick="downloadImage()"] {
    display: none;
  }
}
/* Refined status and validation messages */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 09;

  width: max-content;
  max-width: min(420px, calc(100vw - 32px));
  padding: 13px 18px;

  border: 1px solid #111;
  border-radius: 12px;
  background: #111;
  color: #fff;

  font-family: "DM Sans", Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translate(-50%, 14px);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    visibility 180ms ease;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

@media (max-width: 720px) {
  .toast {
    bottom: 18px;
    width: calc(100vw - 32px);
    max-width: none;
    padding: 14px 16px;
    font-size: 0.88rem;
  }
}
/* Getting started */

.begin-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.begin-actions .button,
.begin-actions .prompt {
  margin: 0;
}

.begin-actions .prompt {
  margin-top: 4px;
}
#inspiration-result {
  margin-top: 4px;
}

#inspiration-result .prompt {
  margin: 0;
}
.desktop-only {
  display: inline;
}

.mobile-only {
  display: none;
}

@media (max-width: 720px) {
  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: inline;
  }
}
/* Branding layout */

.branding-with-username {
  grid-template-columns: 1fr 1fr;
}

.two-col:not(.branding-with-username):has(#watermark-select) {
  grid-template-columns: 1fr;
}
.collab-x {
    display: inline-block;
    font-size: 1.35em;
    font-weight: 600;
    line-height: 1;
    vertical-align: -0.12em;
    margin: 0 .18em;
}
/* =========================================================
   DRAFTS DIALOG
   ========================================================= */

#drafts-dialog {
  width: min(620px, calc(100vw - 28px));
  max-height: min(820px, calc(100dvh - 28px));
  margin: auto;
  padding: 0;

  border: 1px solid #d5d5d2;
  border-radius: 20px;

  background: #f7f7f4;
  color: #111;

  overflow: hidden;

  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.26);
}

#drafts-dialog::backdrop {
  background: rgba(17, 17, 17, 0.6);
  backdrop-filter: blur(4px);
}

/* Header */

#drafts-dialog .dialog-head {
  position: relative;
  z-index: 2;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;

  padding: 22px 24px;

  border-bottom: 1px solid #dededb;
  background: rgba(255, 255, 255, 0.98);
}

#drafts-dialog .dialog-head > div {
  min-width: 0;
}

#drafts-dialog .dialog-head .kicker {
  margin-bottom: 5px;
  color: #777;
}

#drafts-dialog .dialog-head h2 {
  margin: 0;

  font-size: clamp(1.55rem, 4vw, 2.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

#drafts-dialog .round-button {
  flex: 0 0 auto;

  display: grid;
  place-items: center;

  width: 38px;
  height: 38px;
  padding: 0;

  border: 1px solid #cfcfcb;
  border-radius: 50%;

  background: #fff;
  color: #111;

  font-size: 1.2rem;
  line-height: 1;
}

#drafts-dialog .round-button:hover,
#drafts-dialog .round-button:focus-visible {
  border-color: #111;
  background: #111;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* Scrollable list */

#drafts-dialog .drafts-list {
  display: grid;
  gap: 12px;

  max-height: calc(100dvh - 145px);
  padding: 18px;

  overflow-y: auto;
  overflow-x: hidden;

  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;

  scrollbar-width: thin;
  scrollbar-color: #0 transparent;
}

#drafts-dialog .drafts-list::-webkit-scrollbar {
  width: 9px;
}

#drafts-dialog .drafts-list::-webkit-scrollbar-track {
  background: transparent;
}

#drafts-dialog .drafts-list::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 0px;
  background: #0;
  background-clip: padding-box;
}

/* Individual draft */

#drafts-dialog .draft-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;

  margin: 0;
  padding: 17px;

  border: 1px solid #d8d8d5;
  border-radius: 14px;

  background: #fff;

  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

#drafts-dialog .draft-row:hover {
  border-color: #111;
  transform: translateY(-1px);
  box-shadow: 4px 4px 0 #111;
}

/* Draft text */

#drafts-dialog .draft-row > div:first-child {
  min-width: 0;
}

#drafts-dialog .draft-row strong {
  display: block;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  color: #111;

  font-size: 1rem;
  line-height: 1.3;
}

#drafts-dialog .draft-row small,
#drafts-dialog .draft-row span {
  display: block;
  margin-top: 5px;

  color: #777;

  font-size: 0.76rem;
  line-height: 1.45;
}

/* Draft controls */

#drafts-dialog .draft-row > div:last-child {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

#drafts-dialog .draft-row button {
  min-height: 38px;
  padding: 0 13px;

  border: 1px solid #c8c8c5;
  border-radius: 9px;

  background: #fff;
  color: #111;

  font-size: 0.78rem;
  font-weight: 700;

  white-space: nowrap;
}

#drafts-dialog .draft-row button:hover,
#drafts-dialog .draft-row button:focus-visible {
  border-color: #111;
}

/* Treat the first action as the primary action */

#drafts-dialog .draft-row button:first-child {
  border-color: #111;
  background: #111;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* Treat the final action as destructive */

#drafts-dialog .draft-row button:last-child:not(:first-child) {
  color: #9d201a !important;
  -webkit-text-fill-color: #9d201a !important;
}

#drafts-dialog .draft-row button:last-child:not(:first-child):hover,
#drafts-dialog .draft-row button:last-child:not(:first-child):focus-visible {
  border-color: #9d201a;
  background: #fff4f3;
}

/* Empty state, including plain text inserted by JavaScript */

#drafts-dialog .drafts-list:empty::before {
  content: "No saved drafts yet.";

  display: grid;
  place-items: center;

  min-height: 220px;
  padding: 30px;

  border: 1px dashed #c9c9c5;
  border-radius: 14px;

  background: #fff;
  color: #666;

  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
}

/* Mobile bottom-sheet presentation */

@media (max-width: 720px) {
  #drafts-dialog {
    width: 100vw;
    max-width: none;

    height: calc(100dvh - 8px);
    max-height: calc(100dvh - 8px);

    margin: 8px 0 0;

    border-width: 1px 0 0;
    border-radius: 20px 20px 0 0;
  }

  #drafts-dialog .dialog-head {
    padding:
      17px
      17px
      15px;
  }

  #drafts-dialog .dialog-head::before {
    content: "";

    position: absolute;
    top: 7px;
    left: 50%;

    width: 42px;
    height: 4px;

    border-radius: 0px;
    background: #d0d0cd;

    transform: translateX(-50%);
  }

  #drafts-dialog .dialog-head > div {
    padding-top: 6px;
  }

  #drafts-dialog .drafts-list {
    max-height: calc(100dvh - 94px);
    padding:
      14px
      14px
      max(26px, env(safe-area-inset-bottom));
  }

  #drafts-dialog .draft-row {
    grid-template-columns: 1fr;
    gap: 14px;

    padding: 16px;
  }

  #drafts-dialog .draft-row:hover {
    transform: none;
    box-shadow: none;
  }

  #drafts-dialog .draft-row > div:last-child {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  #drafts-dialog .draft-row button {
    width: 100%;
    min-height: 44px;
  }
}

@media (max-width: 390px) {
  #drafts-dialog .dialog-head {
    padding-left: 14px;
    padding-right: 14px;
  }

  #drafts-dialog .drafts-list {
    padding-left: 10px;
    padding-right: 10px;
  }

  #drafts-dialog .draft-row {
    padding: 14px;
  }
}
.mobile-generate-button{
    display:none;
}

@media (max-width:720px){

    .mobile-generate-button{
    display:flex;
    width:100%;
    min-height:64px;
    align-items:center;
    justify-content:center;
    font-size:1.05rem;
    font-weight:700;
}

}
/* =========================================================
   LANGUAGE GUIDE MODAL
   ========================================================= */

.language-guide-dialog {
  width: min(1180px, calc(100vw - 40px));
  height: min(880px, calc(100dvh - 40px));
  max-width: 1180px;
  max-height: 880px;
  margin: auto;
  padding: 0;
  overflow: hidden;

  border: 1px solid #cececa;
  border-radius: 0px;

  background: #f5f5f3;
  color: #111;

  box-shadow:
    0 35px 100px rgba(0, 0, 0, 0.22);
}

.language-guide-dialog::backdrop {
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(5px);
}

.language-guide-shell {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.language-guide-header {
  position: relative;
  z-index: 5;

  flex: 0 0 auto;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;

  padding: 25px 28px;

  border-bottom: 1px solid #dadad6;

  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.language-guide-header h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  letter-spacing: -0.045em;
  line-height: 1;
}

.language-guide-header > div > p:last-child {
  max-width: 660px;
  margin: 10px 0 0;

  color: #666;

  font-size: 0.92rem;
  line-height: 1.55;
}

.language-guide-close {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;

  display: grid;
  place-items: center;

  padding: 0;

  border: 1px solid #cfcfcb;
  border-radius: 50%;

  background: #fff;
  color: #111;

  font-size: 1.45rem;
  line-height: 1;

  transition:
    transform 150ms ease,
    background-color 150ms ease;
}

.language-guide-close:hover {
  background: #111;
  color: #fff;
  transform: rotate(4deg);
}

.language-guide-close:focus-visible {
  outline: 2px solid #111;
  outline-offset: 3px;
}

.language-guide-body {
  min-height: 0;
  flex: 1;

  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);

  overflow: hidden;
}

.language-guide-sidebar {
  min-width: 0;
  padding: 24px 20px;

  overflow-y: auto;
  overscroll-behavior: contain;

  border-right: 1px solid #dadad6;

  background: #efefec;
}

.language-guide-start {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;

  padding: 15px 0;
}

.language-guide-start + .language-guide-start {
  border-top: 1px solid #d4d4d0;
}

.language-guide-number {
  width: 38px;
  height: 38px;

  display: grid;
  place-items: center;

  border: 1px solid #111;
  border-radius: 0px;

  background: #fff;

  font-size: 0.72rem;
  font-weight: 800;
}

.language-guide-start strong {
  display: block;
  margin: 1px 0 5px;

  font-size: 0.86rem;
}

.language-guide-start p {
  margin: 0;

  color: #666;

  font-size: 0.76rem;
  line-height: 1.5;
}

.language-guide-rule {
  margin-top: 18px;
  padding: 17px;

  border: 2px solid #111;
  border-radius: 0px;

  background: #fff;
  box-shadow: 4px 4px 0 #111;
}

.language-guide-rule strong {
  display: block;
  margin-bottom: 7px;

  font-size: 0.85rem;
}

.language-guide-rule p {
  margin: 0;

  color: #555;

  font-size: 0.77rem;
  line-height: 1.55;
}

.language-guide-main {
  min-width: 0;
  padding: 28px;

  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.language-guide-section + .language-guide-section {
  margin-top: 42px;
  padding-top: 38px;

  border-top: 1px solid #d5d5d1;
}

.language-guide-section-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(260px, 1.2fr);
  gap: 28px;
  align-items: end;

  margin-bottom: 18px;
}

.language-guide-section-heading span {
  display: block;
  margin-bottom: 6px;

  color: #777;

  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.language-guide-section-heading h3 {
  margin: 0;

  font-size: clamp(1.45rem, 2.5vw, 2rem);
  letter-spacing: -0.035em;
}

.language-guide-section-heading > p {
  margin: 0;

  color: #666;

  font-size: 0.85rem;
  line-height: 1.55;
}

.language-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.language-guide-card {
  min-width: 0;
  padding: 18px;

  border: 1px solid #d8d8d4;
  border-radius: 0px;

  background: #fff;

  transition:
    transform 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.language-guide-card:hover {
  border-color: #111;

  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.07);

  transform: translateY(-2px);
}

.language-guide-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  margin-bottom: 10px;
}

.language-guide-card-title h4 {
  margin: 0;

  font-size: 1.03rem;
}

.language-guide-card-title span {
  padding: 5px 8px;

  border-radius: 0px;

  background: #efefec;
  color: #666;

  font-size: 0.59rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: right;
}

.language-guide-card > p {
  margin: 0;

  color: #555;

  font-size: 0.82rem;
  line-height: 1.55;
}

.language-guide-examples {
  margin-top: 14px;
  padding: 10px 11px;

  border-radius: 0px;

  background: #f5f5f3;
}

.language-guide-examples small {
  display: block;
  margin-bottom: 4px;

  color: #777;

  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.language-guide-examples span {
  color: #333;

  font-size: 0.75rem;
}

.language-guide-card blockquote {
  margin: 13px 0 0;
  padding: 11px 12px;

  border-left: 3px solid #111;

  background: #fafafa;
  color: #333;

  font-family: Georgia, serif;
  font-size: 0.79rem;
  font-style: italic;
  line-height: 1.5;
}

.language-guide-card mark {
  padding: 1px 3px;

  background: #eaffb8;
  color: inherit;
}

.language-guide-use {
  margin-top: 12px !important;
  padding-top: 11px;

  border-top: 1px solid #e3e3df;

  color: #333 !important;

  font-size: 0.73rem !important;
  font-weight: 600;
}

.language-guide-grid-compact .language-guide-card {
  min-height: 180px;
}

.language-guide-final-tip {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 15px;
  align-items: start;

  margin-top: 34px;
  padding: 19px;

  border: 2px solid #111;
  border-radius: 0px;

  background: #fff;
  box-shadow: 5px 5px 0 #111;
}

.language-guide-final-icon {
  width: 48px;
  height: 48px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background: #111;
  color: #fff;

  font-size: 1.2rem;
  font-weight: 800;
}

.language-guide-final-tip strong {
  display: block;
  margin: 2px 0 6px;

  font-size: 0.95rem;
}

.language-guide-final-tip p {
  margin: 0;

  color: #555;

  font-size: 0.83rem;
  line-height: 1.6;
}

/* Tablet */

@media (max-width: 900px) {
  .language-guide-dialog {
    width: calc(100vw - 24px);
    height: calc(100dvh - 24px);
  }

  .language-guide-body {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .language-guide-grid {
    grid-template-columns: 1fr;
  }

  .language-guide-section-heading {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* Mobile */

@media (max-width: 720px) {
  .language-guide-dialog {
    width: 100vw;
    max-width: none;
    height: calc(100dvh - 8px);
    max-height: none;
    margin: 8px 0 0;

    border-width: 1px 0 0;
    border-radius: 20px 20px 0 0;
  }

  .language-guide-header {
    padding: 17px;
  }

  .language-guide-header h2 {
    font-size: 1.55rem;
  }

  .language-guide-header > div > p:last-child {
    display: none;
  }

  .language-guide-close {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .language-guide-body {
    display: block;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .language-guide-sidebar {
    padding: 14px;

    overflow: visible;

    border-right: 0;
    border-bottom: 1px solid #d4d4d0;
  }

  .language-guide-start {
    padding: 11px 0;
  }

  .language-guide-rule {
    margin: 12px 0 3px;
  }

  .language-guide-main {
    padding: 18px 14px 30px;

    overflow: visible;
  }

  .language-guide-section + .language-guide-section {
    margin-top: 32px;
    padding-top: 28px;
  }

  .language-guide-section-heading {
    margin-bottom: 13px;
  }

  .language-guide-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .language-guide-card {
    padding: 15px;
  }

  .language-guide-card-title {
    align-items: flex-start;
  }

  .language-guide-card-title span {
    max-width: 45%;
  }

  .language-guide-grid-compact .language-guide-card {
    min-height: 0;
  }

  .language-guide-final-tip {
    grid-template-columns: 40px minmax(0, 1fr);

    padding: 16px;

    box-shadow: 4px 4px 0 #111;
  }

  .language-guide-final-icon {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 390px) {
  .language-guide-header {
    padding: 15px 14px;
  }

  .language-guide-sidebar,
  .language-guide-main {
    padding-left: 12px;
    padding-right: 12px;
  }

  .language-guide-card-title {
    display: block;
  }

  .language-guide-card-title span {
    display: inline-block;
    max-width: none;
    margin-top: 6px;
  }
}
/* Creator form: align the editing process with the direct contribution page. */
.app-view .creator-step {
  padding: clamp(24px, 3.2vw, 36px);
  border-radius: 0;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .035);
}

.app-view .creator-step-heading {
  margin-bottom: 26px;
  padding-bottom: 20px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  border-bottom: 1px solid #e2e2dc;
}

.app-view .creator-step-heading.has-action {
  grid-template-columns: 42px minmax(0, 1fr) auto;
}

.app-view .creator-step-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  -webkit-text-fill-color: #fff;
  font-size: .7rem;
  font-weight: 700;
}

.app-view .creator-step-copy h2 {
  margin: 0;
  font-size: clamp(1.55rem, 2.2vw, 2.35rem);
  line-height: 1;
  letter-spacing: -.045em;
}

.app-view .creator-step-copy p {
  margin: 8px 0 0;
  color: #666;
  font-size: .9rem;
  line-height: 1.55;
}

.app-view .creator-step-action {
  align-self: start;
  margin: 0;
}

.app-view .creator-step > label,
.app-view .creator-step .language-label-row label,
.app-view .creator-step .colour-grid label {
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.app-view .creator-step > label span,
.app-view .creator-step .language-label-row label span,
.app-view .creator-step .colour-grid label span {
  letter-spacing: 0;
  text-transform: none;
}

.app-view .creator-step input:not([type="checkbox"]):not([type="color"]),
.app-view .creator-step select,
.app-view .creator-step textarea {
  min-height: 54px;
  padding: 14px 15px;
  border: 1px solid #c9c9c3;
  border-radius: 0;
  background: #fff;
}

.app-view .creator-step textarea {
  min-height: 128px;
  line-height: 1.55;
}

.app-view .creator-step input:not([type="checkbox"]):not([type="color"]):focus,
.app-view .creator-step select:focus,
.app-view .creator-step textarea:focus {
  outline: 2px solid #111;
  outline-offset: 2px;
  border-color: #111;
}

.app-view .creator-step .segmented {
  gap: 8px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.app-view .creator-step .segmented button {
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid #c9c9c3;
  border-radius: 0;
  background: #fff;
}

.app-view .creator-step .segmented button.active {
  border-color: #111;
  background: #111;
}

/* Language labels remain bubbles, matching the tag treatment. */
.app-view .creator-step .tags button {
  border-radius: 0px;
}

.app-view .creator-step .format-grid button,
.app-view .creator-step .preset,
.app-view .creator-step .colour-grid label,
.app-view .creator-step .caption-tabs button,
.app-view .creator-step .caption-box,
.app-view .creator-step .username,
.app-view .creator-step .button {
  border-radius: 0;
}

.app-view .creator-step .username {
  min-height: 54px;
  border-color: #c9c9c3;
}

.app-view .creator-step .username input {
  min-height: 52px;
  border: 0;
}

.app-view .creator-step .colour-grid input[type="color"] {
  min-height: 38px;
  padding: 0;
  border: 0;
}

@media (max-width: 720px) {
  .app-view .creator-step {
    padding: 22px 18px;
  }

  .app-view .creator-step-heading,
  .app-view .creator-step-heading.has-action {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .app-view .creator-step-action {
    grid-column: 2;
    justify-self: start;
  }
}

.app-view .creator-step label:not(.switch) {
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.app-view .creator-step label:not(.switch) span {
  letter-spacing: 0;
  text-transform: none;
}

.app-view .creator-step .word-pronunciation-stack {
  grid-template-columns: 1fr;
}


/* Creator pronunciation assist */
.app-view .pronunciation-field {
  min-width: 0;
}

.app-view .pronunciation-assist-note {
  display: block;
  margin-top: 9px;
  color: #686868;
  font-size: .76rem;
  line-height: 1.5;
}

.app-view .pronunciation-assist {
  margin-top: 12px;
  padding: 15px;
  border: 1px solid #d9d9d4;
  border-radius: 0;
  background: #f8f8f5;
}

.app-view .pronunciation-assist[hidden] {
  display: none !important;
}

.app-view .pronunciation-assist.is-loading {
  opacity: .72;
}

.app-view .pronunciation-assist-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.app-view .pronunciation-assist-heading > div {
  min-width: 0;
}

.app-view .pronunciation-assist-heading span:first-child {
  display: block;
  margin-bottom: 5px;
  color: #686868;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.app-view .pronunciation-assist-heading strong {
  display: block;
  overflow-wrap: anywhere;
  color: #111;
  font-size: 1rem;
  line-height: 1.35;
}

.app-view .pronunciation-confidence {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 0 9px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border: 1px solid #d0d0ca;
  border-radius: 0;
  background: #fff;
  color: #444 !important;
  -webkit-text-fill-color: #444 !important;
  font-size: .62rem !important;
  letter-spacing: .04em !important;
  text-transform: none !important;
  white-space: nowrap;
}

.app-view .pronunciation-confidence[data-level="low"] {
  border-style: dashed;
}

.app-view .pronunciation-assist-status {
  margin: 10px 0 0;
  color: #666;
  font-size: .73rem;
  line-height: 1.5;
}

.app-view .pronunciation-assist-actions {
  margin-top: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.app-view .pronunciation-assist-actions button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #c9c9c3;
  border-radius: 0;
  background: #fff;
  color: #111;
  -webkit-text-fill-color: #111;
  font: 700 .68rem/1 "DM Sans", Arial, sans-serif;
  cursor: pointer;
}

.app-view .pronunciation-assist-actions button:first-child {
  border-color: #111;
  background: #111;
  color: #fff;
  -webkit-text-fill-color: #fff;
}

.app-view .pronunciation-assist-actions button:hover,
.app-view .pronunciation-assist-actions button:focus-visible {
  border-color: #111;
  outline: none;
}

@media (max-width: 620px) {
  .app-view .pronunciation-assist-heading {
    display: block;
  }

  .app-view .pronunciation-confidence {
    margin-top: 9px;
  }

  .app-view .pronunciation-assist-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .app-view .pronunciation-assist-actions button {
    width: 100%;
  }
}

/* Creator Publish dialog — Contribute interface match */
.publish-dialog {
  width: min(980px, calc(100vw - 32px));
  max-width: 980px;
  height: min(92dvh, 980px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid #d8d8d2;
  border-radius: 0;
  background: #f4f4f1;
  color: #111;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0,0,0,.25);
}
.publish-dialog::backdrop { background: rgba(0,0,0,.62); }
.publish-dialog[open] { display: block; }
.publish-dialog-shell { width: 100%; height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.publish-dialog-header {
  flex: 0 0 auto;
  padding: 26px 30px 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  border-top: 6px solid #111;
  border-bottom: 1px solid #d8d8d2;
  background: #fff;
}
.publish-dialog-header .contribute-eyebrow { margin: 0 0 10px; font-size: .71rem; line-height: 1; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.publish-dialog-header h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.25rem); line-height: .95; letter-spacing: -.055em; }
.publish-dialog-header p:last-child { max-width: 680px; margin: 12px 0 0; color: #666; font-size: .92rem; line-height: 1.55; }
.publish-dialog-close {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid #111;
  border-radius: 0;
  background: #fff;
  color: #111;
  font: 700 1.4rem/1 "DM Sans", Arial, sans-serif;
}
.publish-dialog-close:hover { background: #111; color: #fff; -webkit-text-fill-color: #fff; }
.publish-dialog-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 24px;
  display: grid;
  gap: 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.publish-dialog .contribute-section {
  padding: clamp(24px, 3.2vw, 36px);
  border: 1px solid #d8d8d2;
  background: #fff;
  box-shadow: 0 18px 60px rgba(0,0,0,.035);
}
.publish-dialog .contribute-section-heading {
  margin-bottom: 26px;
  padding-bottom: 20px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  border-bottom: 1px solid #e2e2dc;
}
.publish-dialog .contribute-section-heading > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  -webkit-text-fill-color: #fff;
  font-size: .7rem;
  font-weight: 700;
}
.publish-dialog .contribute-section-heading h2 { margin: 0; font-size: clamp(1.55rem, 2.2vw, 2.35rem); line-height: 1; letter-spacing: -.045em; }
.publish-dialog .contribute-section-heading p { margin: 8px 0 0; color: #666; font-size: .9rem; line-height: 1.55; }
.publish-dialog .contribute-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.publish-dialog .contribute-field { min-width: 0; }
.publish-dialog .contribute-field-wide { grid-column: 1 / -1; }
.publish-dialog .contribute-field label,
.publish-dialog .contribute-label-row label {
  display: block;
  margin: 0 0 9px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.publish-dialog .contribute-field label span { color: #777; font-weight: 600; letter-spacing: 0; text-transform: none; }
.publish-dialog .contribute-field input,
.publish-dialog .contribute-field select,
.publish-dialog .contribute-field textarea {
  width: 100%;
  min-height: 54px;
  padding: 14px 15px;
  border: 1px solid #c9c9c3;
  border-radius: 0;
  background: #fff;
  color: #111;
  font: inherit;
}
.publish-dialog .contribute-field textarea { min-height: 128px; resize: vertical; line-height: 1.55; }
.publish-dialog .contribute-field textarea.large { min-height: 166px; }
.publish-dialog .contribute-field input:focus,
.publish-dialog .contribute-field select:focus,
.publish-dialog .contribute-field textarea:focus { outline: 2px solid #111; outline-offset: 2px; border-color: #111; }
.publish-dialog .contribute-field small,
.publish-dialog .contribute-help { display: block; margin-top: 8px; color: #6a6a6a; font-size: .76rem; line-height: 1.5; }
.publish-dialog .entry-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.publish-dialog .entry-switch button {
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid #c9c9c3;
  border-radius: 0;
  background: #fff;
  color: #111;
  font-weight: 700;
}
.publish-dialog .entry-switch button.active { border-color: #111; background: #111; color: #fff; -webkit-text-fill-color: #fff; }
.publish-dialog .pronunciation-assist { margin-top: 10px; padding: 15px; border: 1px solid #d8d8d2; background: #f8f8f5; }
.publish-dialog .pronunciation-assist[hidden] { display: none !important; }
.publish-dialog .pronunciation-assist-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.publish-dialog .pronunciation-assist-heading span:first-child { display: block; margin-bottom: 5px; color: #6c6c6c; font-size: .64rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.publish-dialog .pronunciation-assist-heading strong { display: block; overflow-wrap: anywhere; font-size: 1.05rem; line-height: 1.35; }
.publish-dialog .pronunciation-confidence { flex: 0 0 auto; min-height: 30px; padding: 0 10px; display: inline-flex; align-items: center; border: 1px solid #cfcfc9; border-radius: 0px; background: #fff; color: #444; font-size: .63rem; font-weight: 700; white-space: nowrap; }
.publish-dialog .pronunciation-assist-status { margin: 12px 0 0; color: #626262; font-size: .75rem; line-height: 1.5; }
.publish-dialog .pronunciation-actions { margin-top: 13px; padding-top: 13px; display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid #dfdfda; }
.publish-dialog .pronunciation-actions button { min-height: 38px; padding: 0 13px; border: 1px solid #c9c9c3; border-radius: 0px; background: #fff; color: #111; font-size: .69rem; font-weight: 700; }
.publish-dialog .pronunciation-actions button:first-child { border-color: #111; background: #111; color: #fff; -webkit-text-fill-color: #fff; }
.publish-dialog .contribute-label-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.publish-dialog .contribute-label-row > span { color: #707070; font-size: .7rem; font-weight: 700; }
.publish-dialog .tag-options { max-height: 220px; margin-top: 9px; display: flex; flex-wrap: wrap; gap: 8px; overflow: auto; }
.publish-dialog .tag-option { min-height: 38px; padding: 0 12px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid #d0d0ca; border-radius: 0px; background: #fff; color: #111; font-size: .72rem; font-weight: 700; }
.publish-dialog .tag-option small { margin: 0; color: #777; font-size: .61rem; }
.publish-dialog .tag-option-new { border-style: dashed; background: #f8f8f5; }
.publish-dialog .selected-tags { min-height: 48px; margin-top: 12px; padding: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border: 1px solid #e0e0da; background: #fafaf8; }
.publish-dialog .selected-tag { min-height: 34px; padding: 0 10px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid #111; border-radius: 0px; background: #111; color: #fff; -webkit-text-fill-color: #fff; font-size: .69rem; font-weight: 700; }
.publish-dialog .selected-tag em { padding: 3px 5px; border-radius: 0px; background: #fff; color: #111; -webkit-text-fill-color: #111; font-size: .55rem; font-style: normal; text-transform: uppercase; }
.publish-dialog .selected-tag b { font-size: .9rem; line-height: 1; }
.publish-dialog .tags-empty { margin: 0; color: #777; font-size: .76rem; line-height: 1.45; }
.publish-dialog .confirmation { padding: 17px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 13px; align-items: start; border: 1px solid #d8d8d2; background: #fafaf8; }
.publish-dialog .confirmation + .confirmation { margin-top: 10px; }
.publish-dialog .confirmation input { width: 19px; height: 19px; margin: 2px 0 0; accent-color: #111; }
.publish-dialog .confirmation strong,
.publish-dialog .confirmation small { display: block; }
.publish-dialog .confirmation strong { font-size: .9rem; line-height: 1.4; }
.publish-dialog .confirmation small { margin-top: 5px; color: #676767; font-size: .75rem; line-height: 1.5; }
.publish-dialog .contribute-error { padding: 16px 18px; border: 1px solid #111; border-left-width: 6px; background: #fff; color: #111; font-size: .88rem; line-height: 1.5; }
.publish-dialog .contribute-error[hidden] { display: none !important; }
.publish-dialog .submit-row { padding: 24px; border: 1px solid #111; background: #111; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.publish-dialog .submit-row p { margin: 0; max-width: 620px; color: #cfcfcf; font-size: .82rem; line-height: 1.55; }
.publish-dialog .submit-row button { min-height: 54px; padding: 0 22px; border: 1px solid #fff; border-radius: 0; background: #fff; color: #111; font-weight: 700; white-space: nowrap; }
.publish-dialog .submit-row button:disabled { opacity: .62; cursor: wait; }
body:has(.publish-dialog[open]) { overflow: hidden; }

@media (max-width: 760px) {
  .publish-dialog {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #f4f4f1;
    overflow: hidden;
    box-shadow: none;
  }

  .publish-dialog[open] {
    display: flex;
    flex-direction: column;
  }

  .publish-dialog-shell {
    flex: 1 1 auto;
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    min-height: 0;
    overflow: hidden;
    background: #f4f4f1;
  }

  .publish-dialog-header {
    position: relative;
    z-index: 4;
    flex: 0 0 auto;
    padding: calc(18px + env(safe-area-inset-top)) 17px 18px;
    gap: 14px;
    border-top-width: 5px;
    background: #fff;
  }

  .publish-dialog-header > div {
    min-width: 0;
  }

  .publish-dialog-header h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .publish-dialog-header p:last-child {
    font-size: .84rem;
    line-height: 1.5;
  }

  .publish-dialog-close {
    width: 38px;
    height: 38px;
  }

  .publish-dialog-body {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    padding: 16px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
    display: grid;
    gap: 14px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    background: #f4f4f1;
  }

  .publish-dialog .contribute-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .publish-dialog .contribute-field-wide {
    grid-column: auto;
  }

  .publish-dialog .contribute-section {
    width: 100%;
    min-width: 0;
    padding: 21px 17px;
    background: #fff;
  }

  .publish-dialog .contribute-section-heading {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 22px;
    padding-bottom: 17px;
  }

  .publish-dialog .contribute-section-heading > span {
    width: 36px;
    height: 36px;
  }

  .publish-dialog .contribute-section-heading h2 {
    font-size: clamp(1.45rem, 7vw, 1.9rem);
  }

  .publish-dialog .contribute-field input,
  .publish-dialog .contribute-field select,
  .publish-dialog .contribute-field textarea {
    font-size: 16px;
  }

  .publish-dialog .pronunciation-assist-heading {
    display: block;
  }

  .publish-dialog .pronunciation-confidence {
    margin-top: 9px;
  }

  .publish-dialog .pronunciation-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .publish-dialog .pronunciation-actions button {
    width: 100%;
  }

  .publish-dialog .contribute-label-row {
    align-items: flex-start;
  }

  .publish-dialog .tag-options {
    max-height: 260px;
  }

  .publish-dialog .confirmation {
    padding: 15px;
  }

  .publish-dialog .submit-row {
    padding: 20px 17px;
    flex-direction: column;
    align-items: stretch;
  }

  .publish-dialog .submit-row button {
    width: 100%;
  }
}

@media (max-width: 460px) {
  .publish-dialog .entry-switch { grid-template-columns: 1fr; }
  .publish-dialog .contribute-label-row { align-items: flex-start; }
}

/* =========================================================
   Creator styles v2
   Definr Dictionary house style + expandable secondary styles
   ========================================================= */

.preset-art.definr-dictionary{
  position:relative;
  background:#fff;
  color:#111;
  border:1px solid #111;
  font-family:"DM Sans",Arial,sans-serif;
}
.preset-art.definr-dictionary::before{
  content:"DEFINR DICTIONARY";
  display:block;
  margin-bottom:12px;
  padding-bottom:7px;
  border-bottom:1px solid currentColor;
  font-size:.46rem;
  font-weight:700;
  letter-spacing:.13em;
}
.preset-art.definr-dictionary b{
  font-size:1.22rem;
  font-weight:700;
  letter-spacing:-.055em;
}
.preset-art.definr-dictionary em{
  font-family:"DM Sans",Arial,sans-serif;
  font-size:.61rem;
  font-style:normal;
  opacity:.62;
}
.preset-art.definr-dictionary i,
.preset-art.definr-dictionary u{
  height:3px;
}

.preset-art.receipt{
  background:#fff;
  color:#111;
  border:1px dashed #777;
  font-family:"Roboto Mono",monospace;
}
.preset-art.receipt b{
  font-size:1rem;
  letter-spacing:.04em;
}
.preset-art.receipt em{
  font-style:normal;
  text-transform:uppercase;
}
.preset-art.receipt i,
.preset-art.receipt u{
  height:2px;
}

.preset-art.tabloid{
  background:#f4f0e6;
  color:#171717;
  border:3px solid #171717;
  font-family:Impact,Haettenschweiler,"Arial Narrow Bold",sans-serif;
}
.preset-art.tabloid b{
  font-size:1.38rem;
  line-height:.85;
}
.preset-art.tabloid em{
  color:#b91c1c;
  font-family:"DM Sans",Arial,sans-serif;
  font-style:normal;
  font-weight:700;
}
.preset-art.tabloid i,
.preset-art.tabloid u{
  height:5px;
  opacity:.8;
}

.more-styles{
  margin-top:16px;
  padding-top:14px;
  border-top:1px solid #ddd;
}
.more-styles > summary{
  min-height:44px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  cursor:pointer;
  list-style:none;
  font-weight:700;
}
.more-styles > summary::-webkit-details-marker{display:none}
.more-styles > summary::after{
  content:"+";
  flex:0 0 auto;
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  border:1px solid #cfcfcf;
  background:#fff;
  font-size:1rem;
  line-height:1;
}
.more-styles[open] > summary::after{content:"−"}
.more-styles > summary small{
  margin-left:auto;
  color:#777;
  font-size:.72rem;
  font-weight:500;
}
.more-styles-grid{
  margin-top:12px;
  padding-top:14px;
  border-top:1px solid #e5e5e5;
}

/* Definr's first-party house card. Keep the whole composition balanced
   vertically in Story, Portrait and Square rather than pinning it to the top. */
.layout-definr-dictionary{
  justify-content:center;
  padding:58px 44px;
  background:var(--c-bg);
  color:var(--c-text);
  font-family:"DM Sans",Arial,sans-serif;
}
.layout-definr-dictionary.format-portrait{
  justify-content:center;
  padding:42px 40px;
}
.layout-definr-dictionary.format-square{
  justify-content:center;
  padding:32px 36px;
}

.layout-definr-dictionary .card-top{
  margin-bottom:28px;
  padding-bottom:12px;
  border-bottom:1px solid currentColor;
  opacity:1;
  font-family:"DM Sans",Arial,sans-serif;
  font-size:.65rem;
  font-weight:700;
  letter-spacing:.13em;
}
.layout-definr-dictionary .card-top > span:first-child{
  display:none!important;
}
.layout-definr-dictionary .card-top > span:last-child{
  margin-left:0;
  margin-right:auto;
  opacity:.58;
}

.layout-definr-dictionary .word-block{
  margin-bottom:28px;
}
.layout-definr-dictionary .word-block h2{
  font-family:"DM Sans",Arial,sans-serif;
  font-weight:700;
  line-height:.94;
  letter-spacing:-.065em;
}
.layout-definr-dictionary .pronunciation{
  margin-top:12px;
  font-family:"DM Sans",Arial,sans-serif;
  font-size:.88rem;
  opacity:.58;
}
.layout-definr-dictionary .pos{
  margin-top:6px;
  color:var(--c-text);
  font-family:"DM Sans",Arial,sans-serif;
  font-size:.88rem;
  font-style:normal;
  font-weight:600;
  opacity:.72;
}
.layout-definr-dictionary .definition{
  margin:0 0 28px;
  font-family:"DM Sans",Arial,sans-serif;
  font-size:1.13em;
  line-height:1.52;
  text-align:left;
}
.layout-definr-dictionary .definition::before{
  content:"Definition";
  display:block;
  margin-bottom:10px;
  font-size:.62rem;
  line-height:1;
  font-weight:700;
  letter-spacing:.13em;
  text-transform:uppercase;
  opacity:.5;
}
.layout-definr-dictionary .examples-block{
  padding-top:18px;
  border-top:1px solid currentColor;
}
.layout-definr-dictionary .examples-block > span{
  padding:0;
  border:0;
  font-family:"DM Sans",Arial,sans-serif;
  font-size:.62rem;
  opacity:.5;
}
.layout-definr-dictionary .examples-block ul{
  margin-top:11px;
}
.layout-definr-dictionary .examples-block li{
  padding-left:0;
  margin:8px 0;
  font-family:"DM Sans",Arial,sans-serif;
  font-size:.92rem;
  font-style:normal;
  line-height:1.5;
  color:var(--c-text);
  opacity:.76;
}
.layout-definr-dictionary .examples-block li::before{
  display:none;
}
.layout-definr-dictionary .meta-block{
  margin-top:18px;
  padding-top:13px;
  border-top:1px solid currentColor;
}
.layout-definr-dictionary .meta-block span,
.layout-definr-dictionary .meta-block strong{
  font-family:"DM Sans",Arial,sans-serif;
}
.layout-definr-dictionary .watermark{
  font-family:"DM Sans",Arial,sans-serif;
  font-weight:600;
  letter-spacing:.08em;
  opacity:.42;
}

.layout-definr-dictionary.format-portrait .card-top{
  margin-bottom:20px;
}
.layout-definr-dictionary.format-portrait .word-block{
  margin-bottom:20px;
}
.layout-definr-dictionary.format-portrait .definition{
  margin-bottom:20px;
  font-size:1.03em;
}
.layout-definr-dictionary.format-portrait .examples-block{
  padding-top:14px;
}
.layout-definr-dictionary.format-square .card-top{
  margin-bottom:13px;
  padding-bottom:8px;
}
.layout-definr-dictionary.format-square .word-block{
  margin-bottom:13px;
}
.layout-definr-dictionary.format-square .pronunciation{
  margin-top:7px;
}
.layout-definr-dictionary.format-square .definition{
  margin-bottom:13px;
  font-size:.96em;
  line-height:1.42;
}
.layout-definr-dictionary.format-square .definition::before{
  margin-bottom:6px;
}
.layout-definr-dictionary.format-square .examples-block{
  padding-top:10px;
}
.layout-definr-dictionary.format-square .examples-block ul{
  margin-top:7px;
}
.layout-definr-dictionary.format-square .examples-block li{
  margin:5px 0;
  font-size:.82rem;
}

/* Two additional secondary styles live in More styles. */
.layout-receipt{
  justify-content:center;
  padding:54px 42px;
  background:var(--c-bg);
  color:var(--c-text);
  font-family:"Roboto Mono",monospace;
}
.layout-receipt .card-top{
  padding-bottom:14px;
  border-bottom:2px dashed currentColor;
  font-family:"Roboto Mono",monospace;
}
.layout-receipt .word-block h2,
.layout-receipt .definition,
.layout-receipt .examples-block li,
.layout-receipt .pos{
  font-family:"Roboto Mono",monospace;
  text-align:left;
}
.layout-receipt .word-block h2{
  font-weight:600;
  letter-spacing:-.04em;
}
.layout-receipt .pos{
  color:var(--c-text);
  font-style:normal;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:.78rem;
}
.layout-receipt .definition{
  padding:18px 0;
  border-top:2px dashed currentColor;
  border-bottom:2px dashed currentColor;
  font-size:1em;
}
.layout-receipt .examples-block > span{
  border-bottom-style:dashed;
}
.layout-receipt .examples-block li::before{
  content:">";
  top:0;
  font-size:1em;
  color:inherit;
}
.layout-receipt.format-square{
  justify-content:center;
}

.layout-tabloid{
  justify-content:center;
  padding:48px 38px;
  border:8px solid var(--c-text);
  background:var(--c-bg);
  color:var(--c-text);
  font-family:"DM Sans",Arial,sans-serif;
}
.layout-tabloid .card-top{
  margin-bottom:24px;
  padding-bottom:10px;
  border-bottom:5px solid var(--c-text);
  opacity:1;
  font-weight:700;
}
.layout-tabloid .word-block h2{
  font-family:Impact,Haettenschweiler,"Arial Narrow Bold",sans-serif;
  font-weight:900;
  line-height:.82;
  letter-spacing:-.03em;
  text-transform:uppercase;
}
.layout-tabloid .pronunciation{
  opacity:.7;
}
.layout-tabloid .pos{
  display:inline-block;
  margin-top:8px;
  padding:4px 7px;
  background:var(--c-accent);
  color:var(--c-bg);
  font-family:"DM Sans",Arial,sans-serif;
  font-size:.72rem;
  font-style:normal;
  font-weight:700;
  text-transform:uppercase;
}
.layout-tabloid .definition{
  padding-left:12px;
  border-left:6px solid var(--c-accent);
  font-family:"DM Sans",Arial,sans-serif;
  font-size:1.12em;
  font-weight:700;
  line-height:1.35;
  text-align:left;
}
.layout-tabloid .examples-block li{
  font-family:"DM Sans",Arial,sans-serif;
  font-style:normal;
}
.layout-tabloid.format-square{
  justify-content:center;
  padding:28px;
  border-width:6px;
}

@media(max-width:720px){
  .more-styles > summary{
    min-height:48px;
  }
  .more-styles > summary small{
    display:none;
  }
}
