<?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_283fa085-252d-4df6-a317-b2c4f6fcf75b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-12-29</startDate>
            <endDate>2025-12-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_283fa085-252d-4df6-a317-b2c4f6fcf75b"
      id="F_896f0c57-c1c7-40a2-8e07-1c10f6df94cd">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_283fa085-252d-4df6-a317-b2c4f6fcf75b"
      id="F_e3d2ebef-bc35-48ab-b238-5e48e12dd087">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_283fa085-252d-4df6-a317-b2c4f6fcf75b"
      id="F_4f6e4265-1365-4577-8110-50b719aab5d3">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_283fa085-252d-4df6-a317-b2c4f6fcf75b"
      id="F_4cb1c1a6-9514-4022-8b54-861e3c714b17">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_283fa085-252d-4df6-a317-b2c4f6fcf75b"
      id="F_2009fdaf-9f92-47b5-b2b6-5d42e1d14886">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_283fa085-252d-4df6-a317-b2c4f6fcf75b"
      id="F_580f9917-0fc4-483e-abaa-5eccb7528e94">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_283fa085-252d-4df6-a317-b2c4f6fcf75b"
      id="F_696413d4-9ff3-4b54-b0a9-74ada74f8570">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_283fa085-252d-4df6-a317-b2c4f6fcf75b"
      id="F_a680192f-5fc1-4f69-9487-d863756a5950">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_283fa085-252d-4df6-a317-b2c4f6fcf75b"
      id="F_1fb86dd1-f8b7-434a-9dcb-19e77bf783e1">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_283fa085-252d-4df6-a317-b2c4f6fcf75b"
      id="F_4cb907bd-b465-4dc1-8dda-662cce6c47da">&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,656,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_283fa085-252d-4df6-a317-b2c4f6fcf75b"
      decimals="0"
      id="F_c7db885e-06bc-4d27-9f62-17b6fe8730c5"
      unitRef="U_USD">1656000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
