<?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_342ed4da-66ee-425e-8df2-10dd06daa19c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-11-03</startDate>
            <endDate>2025-11-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_342ed4da-66ee-425e-8df2-10dd06daa19c"
      id="F_fe2a54f6-f1d2-4f33-aa9a-e08e13665272">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_342ed4da-66ee-425e-8df2-10dd06daa19c"
      id="F_acbac500-ad60-42d9-a5fa-72798b000a6f">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_342ed4da-66ee-425e-8df2-10dd06daa19c"
      id="F_2f9ed420-04ff-4fd6-ba03-705cefb604bd">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_342ed4da-66ee-425e-8df2-10dd06daa19c"
      id="F_ee7e313b-b2aa-4147-916a-97f82a44f884">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_342ed4da-66ee-425e-8df2-10dd06daa19c"
      id="F_94b2cc6f-17ba-4de2-96c0-6242b3e47c6e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_342ed4da-66ee-425e-8df2-10dd06daa19c"
      id="F_e42d86e5-429a-4770-8448-b7b381821013">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_342ed4da-66ee-425e-8df2-10dd06daa19c"
      id="F_a63cb876-a0d7-4765-b1dd-9caa6cf1e7f2">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_342ed4da-66ee-425e-8df2-10dd06daa19c"
      id="F_0cebdab7-32b1-4620-9186-f85096669cc5">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_342ed4da-66ee-425e-8df2-10dd06daa19c"
      id="F_3dda68aa-bdaf-4866-9554-6a0ef036c8aa">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_342ed4da-66ee-425e-8df2-10dd06daa19c"
      id="F_fa5b7abd-f4d2-4748-96ac-428e4e827db1">&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;934,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_342ed4da-66ee-425e-8df2-10dd06daa19c"
      decimals="0"
      id="F_5d44b88c-73b1-4287-b72c-bffb650f6647"
      unitRef="U_USD">934000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
