<?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_a1a2d658-6e86-44d1-9dd4-943f992da398">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-10-20</startDate>
            <endDate>2025-10-20</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_a1a2d658-6e86-44d1-9dd4-943f992da398"
      id="F_22a1d9ba-f05a-49a3-85fe-5ae6a7241fcd">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_a1a2d658-6e86-44d1-9dd4-943f992da398"
      id="F_7c734e34-5346-466f-84f4-ddfac4a412da">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_a1a2d658-6e86-44d1-9dd4-943f992da398"
      id="F_d3369da4-31b9-4f0f-ba77-f0ac3bdd8f95">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_a1a2d658-6e86-44d1-9dd4-943f992da398"
      id="F_bf97e3b1-301a-4adc-952e-8f8640e270cf">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a1a2d658-6e86-44d1-9dd4-943f992da398"
      id="F_c7566835-b26d-4aab-9d76-785493666018">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_a1a2d658-6e86-44d1-9dd4-943f992da398"
      id="F_0bde9599-9ad7-4e51-a447-28ab7076a0ff">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_a1a2d658-6e86-44d1-9dd4-943f992da398"
      id="F_16f97b14-71fe-4410-90db-7602df2c1169">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_a1a2d658-6e86-44d1-9dd4-943f992da398"
      id="F_2096b480-8e76-480b-8136-f0ad6ad3212a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_a1a2d658-6e86-44d1-9dd4-943f992da398"
      id="F_6fc7f65d-5b64-42f8-8a48-2f2b11859524">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_a1a2d658-6e86-44d1-9dd4-943f992da398"
      id="F_6784b116-fb9b-409e-a996-7e1c35ea88e2">&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;5,000,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_a1a2d658-6e86-44d1-9dd4-943f992da398"
      decimals="0"
      id="F_939cef27-cb19-4033-9d45-dbcc3750c356"
      unitRef="U_USD">5000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
