/* Shared converter, birthday, and Zakat calculator layout. */

body.pro-site.unified-tool-shell {
  --tool-english-dark:#075743;
  --tool-english-deeper:#064436;
  --tool-english-gold:#eac170;
  --tool-english-paper:var(--pro-card,#fff);
  --tool-english-line:var(--pro-border,#dce9e1);
}

body.pro-site.unified-tool-shell .unified-tool-main {
  width:min(1200px, calc(100% - 36px));
  max-width:1200px;
  margin:clamp(16px,2vw,24px) auto 44px;
  padding:clamp(18px,2.4vw,34px);
  background:var(--tool-english-paper);
  border:1px solid var(--tool-english-line);
  border-radius:26px;
  box-shadow:0 20px 55px rgba(8,72,52,.085);
  color:var(--pro-ink,#18382f);
}
body.pro-site.unified-tool-shell .v11-crumb {margin-block-end:0;}
body.pro-site.unified-tool-shell .unified-tool-hero {
  margin:clamp(14px,2vw,24px) 0 22px;
  padding-block-end:18px;
  max-width:100%;
  border-bottom:1px solid var(--tool-english-line);
  text-align:start;
}
body.pro-site.unified-tool-shell .unified-tool-hero h1 {
  font-size:clamp(1.65rem,3vw,2.45rem);
  line-height:1.24;
  margin:0 0 8px;
  overflow-wrap:break-word;
}
body.pro-site.unified-tool-shell .unified-tool-hero > p {
  max-inline-size:70ch;
  margin:0;
  font-size:.98rem;
  line-height:1.65;
}

/* The form comes first in the reading direction in both LTR and RTL. */
body.pro-site.unified-tool-shell .v11-layout,
body.pro-site.unified-tool-shell .uzp-layout {
  display:grid;
  grid-template-columns:minmax(0,1.07fr) minmax(0,1fr);
  gap:clamp(16px,2vw,22px);
  align-items:start;
}
body.pro-site.unified-tool-shell .v11-layout > .v11-card,
body.pro-site.unified-tool-shell .uzp-layout > .uzp-panel {
  min-width:0;
  min-height:0;
  border-radius:20px;
  padding:clamp(17px,2.15vw,26px);
}
body.pro-site.unified-tool-shell .v11-card-heading {margin-block-end:15px;}
body.pro-site.unified-tool-shell .v11-card-icon {width:42px;height:42px;}
body.pro-site.unified-tool-shell .v11-form {gap:14px;}

/* Primary / input card: same premium dark green as original English tool. */
body.pro-site.unified-tool-shell .v11-layout > .v11-card:first-child,
body.pro-site.unified-tool-shell .uzp-layout > .uzp-form {
  background:linear-gradient(155deg,var(--tool-english-dark),var(--tool-english-deeper));
  border:1px solid #226b58;
  box-shadow:0 16px 38px rgba(2,62,45,.13);
  color:#fff;
}
body.pro-site.unified-tool-shell .v11-layout > .v11-card:first-child h2,
body.pro-site.unified-tool-shell .v11-layout > .v11-card:first-child :is(.v11-field>span,.v11-fieldset legend),
body.pro-site.unified-tool-shell .uzp-form :is(.uzp-panel-title h2,.uzp-field>span,.uzp-asset-label,.uzp-hawl legend) {
  color:#fff;
}
body.pro-site.unified-tool-shell .v11-privacy,
body.pro-site.unified-tool-shell .uzp-form :is(.uzp-privacy,.uzp-hint,.uzp-rates) {
  color:#e1f0e9;
  opacity:1;
}
body.pro-site.unified-tool-shell .v11-layout > .v11-card:first-child .v11-card-icon,
body.pro-site.unified-tool-shell .uzp-form .uzp-round {
  background:rgba(255,255,255,.13);
  color:#f8da8a;
}
body.pro-site.unified-tool-shell .v11-layout > .v11-card:first-child :is(input[type="date"],input[type="number"],select),
body.pro-site.unified-tool-shell .uzp-form :is(input[type="number"],select) {
  background:#fff;
  border:1px solid #d5e6df;
  color:#153d33;
  border-radius:13px;
  min-height:53px;
  color-scheme:light;
}
body.pro-site.dark-mode.unified-tool-shell .v11-layout > .v11-card:first-child :is(input[type="date"],input[type="number"],select),
body.pro-site.dark-mode.unified-tool-shell .uzp-form :is(input[type="number"],select) {
  background:var(--site-canvas);
  border-color:var(--site-line);
  color:var(--site-text);
  color-scheme:dark;
}
body.pro-site.unified-tool-shell :is(.v11-direction,.uzp-hawl) input {accent-color:var(--tool-english-gold);}
body.pro-site.unified-tool-shell .v11-layout > .v11-card:first-child .v11-direction label,
body.pro-site.unified-tool-shell .uzp-form .uzp-hawl label {
  border:1px solid rgba(255,255,255,.28);
  color:#fff;
  background:rgba(255,255,255,.045);
}
body.pro-site.unified-tool-shell .v11-layout > .v11-card:first-child .v11-direction label:has(input:checked),
body.pro-site.unified-tool-shell .uzp-form .uzp-hawl label:has(input:checked) {
  background:rgba(234,193,112,.17);
  border-color:var(--tool-english-gold);
}
body.pro-site.unified-tool-shell .v11-layout .v11-submit,
body.pro-site.unified-tool-shell .uzp-form .uzp-primary-button {
  background:linear-gradient(105deg,#f7db9c,#e5b96c);
  color:#114638;
  border:0;
  font-weight:800;
  min-height:54px;
  box-shadow:none;
}
body.pro-site.unified-tool-shell .v11-layout .v11-submit:hover,
body.pro-site.unified-tool-shell .uzp-form .uzp-primary-button:hover {
  filter:brightness(1.03);
}

body.pro-site.unified-tool-shell .v11-layout > .v11-result,
body.pro-site.unified-tool-shell .uzp-layout > .uzp-result {
  background:var(--pro-card,#fff);
  border:1px solid var(--tool-english-line);
  color:var(--pro-ink,#173a30);
  box-shadow:0 10px 25px rgba(3,66,49,.045);
}
body.pro-site.unified-tool-shell .v11-result .v11-card-heading h2,
body.pro-site.unified-tool-shell .uzp-result .uzp-panel-title h2 {
  color:var(--pro-forest,#075743);
}
body.pro-site.unified-tool-shell .uzp-result .uzp-round {
  background:var(--pro-mint,#e6f3eb);
  color:var(--pro-emerald,#09664f);
}
body.pro-site.unified-tool-shell .v11-result .v11-primary,
body.pro-site.unified-tool-shell .uzp-result .uzp-total {
  border-radius:17px;
}
body.pro-site.unified-tool-shell .v11-result .v11-empty {
  min-height:0;
  margin:0;
  padding:15px;
  background:var(--pro-mint);
  color:var(--pro-ink);
  border-radius:13px;
  text-align:start;
  place-items:start;
}
body.pro-site.unified-tool-shell .v11-result .v11-copy {
  background:var(--pro-mint);
  border-color:var(--pro-border);
  color:var(--pro-forest);
  width:auto;
}

body.pro-site.unified-tool-shell .uzp {
  max-width:none;
  margin:0 auto 18px;
}
body.pro-site.unified-tool-shell .uzp-result .uzp-before {
  min-height:0;
  margin-block-end:14px;
  padding:15px;
  background:var(--pro-mint);
  border-radius:13px;
  color:var(--pro-ink);
  opacity:1;
  text-align:start;
  align-items:start;
}

/* Original long-form English article and guide remain below the calculator. */
body.pro-site.unified-tool-shell .v12-guide,
body.pro-site.unified-tool-shell .uzp-guide,
body.pro-site.unified-tool-shell .uzp-faq,
body.pro-site.unified-tool-shell .v11-related {max-width:100%;}

/* Dark theme is supported without turning light input fields unreadable. */
body.pro-site.dark-mode.unified-tool-shell .unified-tool-main {
  background:var(--pro-card,#17382f);
  box-shadow:none;
}
body.pro-site.dark-mode.unified-tool-shell .uzp-layout > .uzp-result,
body.pro-site.dark-mode.unified-tool-shell .v11-layout > .v11-result {
  background:var(--pro-card,#17382f);
  color:var(--pro-ink,#e4f4ed);
}

@media (max-width:850px) {
  body.pro-site.unified-tool-shell .v11-layout,
  body.pro-site.unified-tool-shell .uzp-layout {grid-template-columns:minmax(0,1fr);gap:17px;}
}
@media (max-width:520px) {
  body.pro-site.unified-tool-shell .unified-tool-main {width:calc(100% - 20px);margin:14px auto 24px;padding:15px;border-radius:19px;}
  body.pro-site.unified-tool-shell .unified-tool-hero {margin:14px 0 16px;padding-block-end:13px;}
  body.pro-site.unified-tool-shell .v11-layout > .v11-card,
  body.pro-site.unified-tool-shell .uzp-layout > .uzp-panel {padding:17px;border-radius:17px;}
}
