/* yourminiapps.com — reproduces the Divi 5 design with plain CSS.
   Colours and fonts come from content/site.json (CSS variables in <head>). */

@font-face { font-family: "Roboto"; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/roboto-latin-wght-normal.woff2) format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--c-text); font: 500 18px/1.7 var(--f-body); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; color: var(--c-heading); font-family: var(--f-heading); font-weight: 500; }
p { margin: 0; }
a { color: var(--c-heading); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; }

.container { width: 90%; max-width: 1300px; margin: 0 auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 100; background: #fff; padding: .5em 1em; }
.skip-link:focus { left: 1em; }
:focus-visible { outline: 3px solid #000; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 10; background: #fff; box-shadow: 0 10px 12px -6px rgba(0,0,0,.12); }
.header-inner { display: flex; align-items: center; gap: 30px; min-height: 84px; }
.logo img { height: 60px; width: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.site-nav a { display: block; padding: 10px 0; font-size: 16px; font-weight: 500; color: #000; }
.menu-toggle { display: none; }

/* ---------- Tool section ---------- */
.section--tool { background: var(--c-band); padding: 39px 0; }
.tool-card { background: #fff; padding: 48px; border-radius: var(--r-card); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.tool-heading { font-size: 28px; line-height: 36px; padding-bottom: 10px; }
.tool-intro { font-size: 16px; line-height: 1.4; color: #000; }

.text-case { margin-top: 21px; }
.tc-field label { display: block; font-size: 13.6px; font-weight: 400; color: var(--c-muted); padding-left: 2px; margin-bottom: 0; }
.tc-field textarea { margin-top: -6px;
  display: block; width: 100%; min-height: 31px; resize: none; overflow: hidden;
  font: 400 16px/30px var(--f-body); color: #333; background: transparent;
  border: 0; border-bottom: 1px solid #999; border-radius: 0; padding: 0 2px 1px;
}
.tc-field textarea:focus { outline: none; border-bottom: 2px solid #000; padding-bottom: 0; }

.tc-copy {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; min-height: 42px;
  padding: 10px; border: 0; border-radius: 5px; background: var(--c-button); color: #000;
  font-size: 13.6px; font-weight: 400; cursor: pointer;
  box-shadow: 0 2px 2px 0 rgba(0,0,0,.14), 0 3px 1px -2px rgba(0,0,0,.2), 0 1px 5px 0 rgba(0,0,0,.12);
}
.tc-copy[hidden] { display: inline-flex; visibility: hidden; }
.tc-copy.is-copied { background: #d7ecd9; }

.tc-actions { display: flex; gap: 10px; margin-top: 16px; }
.tc-action {
  flex: 1 1 0; min-height: 48px; margin: 8px 0; padding: 12px 24px;
  font-size: 17.6px; font-weight: 400; color: #000; background: var(--c-button);
  border: 1px solid var(--c-button); border-radius: var(--r-button); cursor: pointer;
  box-shadow: 0 2px 2px 0 rgba(0,0,0,.14), 0 3px 1px -2px rgba(0,0,0,.2), 0 1px 5px 0 rgba(0,0,0,.12);
  transition: background-color .15s;
}
.tc-action:hover { background: #d4d4d4; }
.tc-action:active { box-shadow: 0 1px 2px rgba(0,0,0,.2); }

/* ---------- Footer ---------- */
.footer-bottom { background: #fff; padding: 15px 0; }
.footer-bottom p { font-size: 12px; line-height: 22px; color: var(--c-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .tc-actions { flex-direction: column; gap: 0; }
  .tc-action { flex: none; }
}
@media (max-width: 767px) {
  .header-inner { min-height: 50px; justify-content: space-between; }
  .logo img { height: 50px; }
  .section--tool { padding: 50px 0; }
  .footer-bottom p { text-align: center; }
}
@media (max-width: 480px) {
  .container { width: auto; margin: 0 20px; }
  .tool-card { padding: 48px 24px; }
}
