<?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_b86a038c-2f75-4ee9-bb2d-87dd3ffe9dd5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-11-25</startDate>
            <endDate>2025-11-25</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_b86a038c-2f75-4ee9-bb2d-87dd3ffe9dd5"
      id="F_9fb10391-aaa5-4e57-8fb9-7e482c40a2ca">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_b86a038c-2f75-4ee9-bb2d-87dd3ffe9dd5"
      id="F_ae9911f1-68c8-49d4-bda9-5f7b022a3403">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_b86a038c-2f75-4ee9-bb2d-87dd3ffe9dd5"
      id="F_439f6728-8a36-4b11-a4c5-a7476760a0a7">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b86a038c-2f75-4ee9-bb2d-87dd3ffe9dd5"
      id="F_8e29ab4d-5276-4a1f-901f-5cbf372e5e64">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_b86a038c-2f75-4ee9-bb2d-87dd3ffe9dd5"
      id="F_865d4649-b26e-4f15-bcdc-e2ee31fcae1e">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_b86a038c-2f75-4ee9-bb2d-87dd3ffe9dd5"
      id="F_3c235332-8720-4eb4-ab0c-c395991f667a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_b86a038c-2f75-4ee9-bb2d-87dd3ffe9dd5"
      id="F_c094698c-3e1d-499b-ad27-16209490d2ff">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_b86a038c-2f75-4ee9-bb2d-87dd3ffe9dd5"
      id="F_bd7868d0-2a16-4a7a-8890-ca6ec4d1f147">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_b86a038c-2f75-4ee9-bb2d-87dd3ffe9dd5"
      id="F_3fdaeeb2-73fc-4b13-9b33-6b9a147e31c0">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_b86a038c-2f75-4ee9-bb2d-87dd3ffe9dd5"
      id="F_1fc62729-7caa-483e-b831-b9380a33151b">&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,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_b86a038c-2f75-4ee9-bb2d-87dd3ffe9dd5"
      decimals="0"
      id="F_ceaa2eae-4b30-440f-ae0e-01f1a2df1169"
      unitRef="U_USD">2000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
