<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_86fde394-15b3-417e-b37a-64174c9bd8c5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-10-02</startDate>
            <endDate>2025-10-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_86fde394-15b3-417e-b37a-64174c9bd8c5"
      id="F_c5c50166-38fa-489f-b96c-29a8a90fa8f9">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_86fde394-15b3-417e-b37a-64174c9bd8c5"
      id="F_53c11210-0a05-4642-8a7e-c22ffab414bb">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_86fde394-15b3-417e-b37a-64174c9bd8c5"
      id="F_72e1e00e-07a6-49c9-b477-4e544d278c6e">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_86fde394-15b3-417e-b37a-64174c9bd8c5"
      id="F_e40a70bc-d1d3-4ddc-a3f2-a8dbbeb4b63d">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_86fde394-15b3-417e-b37a-64174c9bd8c5"
      id="F_106b26a2-dfb2-41e2-825e-039e7f242ccd">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_86fde394-15b3-417e-b37a-64174c9bd8c5"
      id="F_6d509e8d-92a3-49dd-a21a-773b8d48f297">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_86fde394-15b3-417e-b37a-64174c9bd8c5"
      id="F_c354a757-4ca6-4ac2-bb28-767420e08c34">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_86fde394-15b3-417e-b37a-64174c9bd8c5"
      id="F_9f881fe2-95a3-4cce-b0d2-d8e966ec0133">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_86fde394-15b3-417e-b37a-64174c9bd8c5"
      id="F_70222b59-64d5-4943-96a3-cdeee53257cd">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_86fde394-15b3-417e-b37a-64174c9bd8c5"
      id="F_f0719b95-7bc2-4dc5-b3d0-0f9069bd4ef7">&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:12pt;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;The prospectus to which this Exhibit is attached is a final prospectus for the related offering.  The maximum aggregate offering price for such offering is $&lt;/span&gt;&lt;span style="font-size:12pt;font-family:Times New Roman;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;1,249,000&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;.&lt;/span&gt;&lt;/p&gt;</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="C_86fde394-15b3-417e-b37a-64174c9bd8c5"
      decimals="0"
      id="F_42514150-349d-40ca-ad77-c8f959fad463"
      unitRef="U_USD">1249000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
