<?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_fac84afa-94fe-40e1-974f-d5bf69100213">
        <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_fac84afa-94fe-40e1-974f-d5bf69100213"
      id="F_47620b44-5824-46aa-9dc7-d76678a0766b">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_fac84afa-94fe-40e1-974f-d5bf69100213"
      id="F_3eb8b324-8c69-4491-a73f-fbb47f760895">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_fac84afa-94fe-40e1-974f-d5bf69100213"
      id="F_4112de55-06a7-4dab-8599-0881419a759e">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_fac84afa-94fe-40e1-974f-d5bf69100213"
      id="F_47972dcb-dc30-4fb5-b61a-f5f2f1e85488">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_fac84afa-94fe-40e1-974f-d5bf69100213"
      id="F_0fc7f32c-b65e-4a55-8d0c-1d44ccd5fbc2">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_fac84afa-94fe-40e1-974f-d5bf69100213"
      id="F_285e0c74-627c-47b4-90cb-607983333848">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_fac84afa-94fe-40e1-974f-d5bf69100213"
      id="F_26109b05-8853-4c74-88c4-1d4efdcb1a7a">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_fac84afa-94fe-40e1-974f-d5bf69100213"
      id="F_e7bf1805-04e3-4a11-9642-6790a0e3ad94">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_fac84afa-94fe-40e1-974f-d5bf69100213"
      id="F_3ece8043-36b8-4dc0-a8d0-a52f0932c533">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_fac84afa-94fe-40e1-974f-d5bf69100213"
      id="F_dcc3628b-a770-4204-bcb9-d19f7f88c446">&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;2,025,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_fac84afa-94fe-40e1-974f-d5bf69100213"
      decimals="0"
      id="F_02b815af-707c-4766-b163-6b1e210efcf9"
      unitRef="U_USD">2025000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
