/* WordJumble shared tool-page CSS — 2026-09-23
   Loads the locked site theme first, then adds only tool-page rules. */
@import url('/assets/css/theme.css');

/* Keep every tool page inside the same centred width as the homepage. */
.app{width:min(1080px,calc(100% - 36px));margin-left:auto;margin-right:auto;padding:28px 0 20px}

/* Compact sub-page brand row. */
.subpage-header{display:flex;justify-content:space-between;align-items:center;width:100%;margin:2px 0 24px;padding:0 6px}
.subpage-header .brand-name{display:flex;align-items:center;gap:5px;white-space:nowrap}
.subpage-header .tile{width:30px;height:30px;border-radius:7px;font-size:17px}
.subpage-header .brand-word{font-size:28px;letter-spacing:-1px}
.back-link{display:inline-flex;align-items:center;padding:9px 13px;border:1px solid #bcd7f4;border-radius:9px;background:#f5faff;color:#0b2f63;text-decoration:none;font-size:13px;font-weight:800;white-space:nowrap}
.back-link:hover{background:#eaf4ff}

/* Tool title and short explanation. */
.solver-intro{text-align:center;margin:0 0 16px}
.solver-intro h1{font-size:34px;line-height:1.05;margin:0 0 8px;color:#0b2f63}
.solver-intro p{margin:0;color:#111}

/* Reserved future advertisement positions. */
.ad-reserve{width:50%;height:80px;margin:18px auto 22px;border:3px solid #d7deea;border-radius:10px;background:#fff;position:relative;display:flex;align-items:center;justify-content:center;color:#111;font-size:11px}
.ad-reserve::before{content:'Advt';position:absolute;top:4px;left:7px;font-size:10px;font-weight:700;color:#111}

/* Main tool card. */
#form{width:min(900px,100%);margin:0 auto;background:#fff;border:1px solid #dbe4f0;border-radius:18px;padding:24px;box-shadow:0 14px 40px rgba(30,72,130,.10)}
#form>label{font-size:14px;font-weight:700;color:#111;margin-bottom:9px}
.input-row{display:flex;flex-direction:column;gap:12px;width:100%}
#letters{width:100%;height:54px;border:1px solid #cfd9e8;border-radius:11px;background:#fff;color:#071a35;padding:0 16px;font-size:18px;text-transform:uppercase}
#letters:focus,.dictionary-inline select:focus{outline:none;border-color:#5aa2ff;box-shadow:0 0 0 4px rgba(47,128,237,.12)}

/* Anagram action row. */
.anagram-controls{display:grid;grid-template-columns:1fr 1fr 2fr;gap:12px;align-items:end;width:100%}
.anagram-controls button{width:100%;height:52px;border:0;border-radius:11px;cursor:pointer;font-weight:800;font-size:15px;color:#071a35;box-shadow:0 6px 14px rgba(31,70,130,.10)}
#go{background:linear-gradient(135deg,#388cf7,#2774e8)}
.reset-btn{background:linear-gradient(135deg,#ff7670,#ff5f59)!important}
.dictionary-inline{display:flex;flex-direction:column;min-width:0}
.dictionary-inline label{display:block;font-size:12px;font-weight:700;color:#111;margin-bottom:5px}
.dictionary-inline select{width:100%;height:52px;border:1px solid #cfd9e8;border-radius:11px;background:#fff;color:#071a35;padding:0 12px;font-size:14px}

/* Search status and generated results stay aligned with the solver card. */
#status,#results{width:min(900px,100%);margin-left:auto;margin-right:auto}
#status{margin-top:18px;font-weight:700;color:#111}
#status:empty{margin-top:0;min-height:0}
.words{display:flex;flex-wrap:wrap;gap:8px}
.word{border:1px solid #dce6f2;background:#f7fbff;border-radius:9px;color:#18325d;padding:9px 12px;font-weight:700;text-transform:uppercase}

/* Two-column Anagram information area. */
.anagram-info{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:20px}
.anagram-info .info-section{margin:0;padding:20px;border:1px solid #dbe4f0;border-radius:16px;box-shadow:0 7px 22px rgba(30,72,130,.055);color:#111}
.anagram-info .info-section:nth-child(1){background:#f3edff}
.anagram-info .info-section:nth-child(2){background:#eaf4ff}
.anagram-info .info-section:nth-child(3){background:#eaf8ed}
.anagram-info .info-section:nth-child(4){background:#ffeceb}
.anagram-info .info-section:nth-child(5){background:#f3edff}
.anagram-info .info-section:nth-child(6){background:#fff5d9}
.anagram-info .info-section:nth-child(7){background:#e7f7f8}
.anagram-info .info-section:nth-child(8){background:#eaf4ff}
.anagram-info h2{margin:0 0 10px;font-size:21px;color:#0b2f63}
.anagram-info p{margin:0;color:#111;line-height:1.65}
.fact-number{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;font-weight:900;background:#fff;border:1px solid rgba(11,47,99,.12);margin-bottom:12px;color:#0b2f63}
.fact-example{margin-top:12px;background:rgba(255,255,255,.72);border:1px solid rgba(11,47,99,.10);border-radius:10px;padding:11px 12px;color:#111;font-size:14px;line-height:1.5}

/* Word Meanings helper remains the first information card. */
.dictionary-first-card{display:flex;flex-direction:column;gap:8px}
.dictionary-first-card .dictionary-tool-card{display:flex;flex-direction:column;gap:8px;height:100%;margin:0}
.dictionary-first-card .tool-icon{width:38px;height:38px;display:grid;place-items:center;background:#fff;border:1px solid rgba(11,47,99,.10);border-radius:8px;font-size:21px;line-height:1}
.dictionary-first-card strong{font-size:17px;line-height:1.15;color:#0b2f63}
.dictionary-first-card small{font-size:13px;line-height:1.4;color:#111;font-weight:500}
.dictionary-first-card input{width:100%;height:42px;border:1px solid #cbd8e8;border-radius:9px;background:#fff;color:#071a35;padding:0 11px;font-size:13px}
.dictionary-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:auto}
.dictionary-actions button{width:100%;height:42px;border:0;border-radius:9px;font-weight:800;cursor:pointer;font-size:12px;padding:0 4px;color:#071a35}
.dictionary-actions button:nth-child(1){background:#2f80ed}
.dictionary-actions button:nth-child(2){background:#59c96f}
.dictionary-actions button:nth-child(3){background:#ff6863}

/* Links to the other WordJumble tools. */
.subpage-nav{display:flex;flex-wrap:wrap;justify-content:center;gap:14px;margin:20px 0 0;padding:14px 0;border-top:1px solid #dfe7f1}
.subpage-nav a{color:#0b2f63;text-decoration:none;font-weight:700;font-size:13px}
.subpage-nav a:hover{text-decoration:underline}

@media(max-width:720px){
  .anagram-info{grid-template-columns:1fr}
}

@media(max-width:600px){
  .app{width:100%;padding:12px}
  .subpage-header{margin-bottom:18px;padding:0;gap:10px}
  .subpage-header .tile{width:25px;height:25px;font-size:14px}
  .subpage-header .brand-word{font-size:23px}
  .back-link{font-size:12px;padding:8px 9px}
  .solver-intro h1{font-size:29px}
  .solver-intro p{font-size:14px}
  .ad-reserve{width:90%;height:90px;margin:14px auto 18px}
  #form{padding:17px 14px;border-radius:15px}
  .anagram-controls{grid-template-columns:1fr 1fr;gap:8px}
  .dictionary-inline{grid-column:1/-1}
  .anagram-controls button{height:47px;font-size:13px}
  .dictionary-inline select{height:47px}
  .anagram-info{gap:10px}
  .anagram-info .info-section{padding:17px}
}

/* =========================================================
   SHARED TOOL FAQ
   The accordion component below uses the exact same rules
   as the locked WordJumble homepage accordion.
   ========================================================= */

/* Creates one full-width outer card around the FAQ group. */
.anagram-faq{
  width:100%;
  margin:24px 0;
  padding:22px;
  border:1px solid #e1e8f1;
  border-radius:16px;
  background:#fff;
  box-shadow:0 7px 18px rgba(50,60,80,.05);
}

/* Positions the FAQ heading like the homepage section heading. */
.anagram-faq>h2{
  margin:0 0 14px;
}

/* Exact accordion card rule from the locked homepage. */
.info-accordion,.faq-accordion{
  border:1px solid #e1e8f1;
  border-radius:10px;
  background:#fff;
  margin:10px 0;
  overflow:hidden;
}

/* Exact question-row rule from the locked homepage. */
.info-accordion summary,.faq-accordion summary{
  list-style:none;
  cursor:pointer;
  position:relative;
  padding:14px 42px 14px 16px;
  color:#0b2f63;
  font-weight:800;
}

/* Exact homepage question sizes. */
.info-accordion summary{font-size:18px}
.faq-accordion summary{font-size:15px}

/* Removes the browser disclosure marker. */
.info-accordion summary::-webkit-details-marker,
.faq-accordion summary::-webkit-details-marker{
  display:none;
}

/* Exact blue homepage chevron. */
.info-accordion summary::after,
.faq-accordion summary::after{
  content:'›';
  position:absolute;
  right:16px;
  top:50%;
  transform:translateY(-50%) rotate(90deg);
  font-size:22px;
  color:#1769e8;
  transition:transform .2s ease;
}

/* Rotates the chevron when the answer is open. */
.info-accordion[open] summary::after,
.faq-accordion[open] summary::after{
  transform:translateY(-50%) rotate(-90deg);
}

/* Exact expanded-answer spacing from the locked homepage. */
.accordion-body{
  padding:0 16px 15px;
  color:#000;
}

/* Exact homepage paragraph spacing inside answers. */
.accordion-body p{
  margin:0 0 8px;
  line-height:1.65;
}

/* Exact homepage list spacing inside answers. */
.accordion-body ul{
  margin:4px 0 0;
  padding-left:20px;
  line-height:1.8;
}

/* Keeps the full-width FAQ card comfortable on phones. */
@media(max-width:600px){
  .anagram-faq{
    padding:14px;
    border-radius:14px;
  }
}

