<?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_505084fc-f7cd-4256-9ef1-468cf5acef07">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-12-16</startDate>
            <endDate>2025-12-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_505084fc-f7cd-4256-9ef1-468cf5acef07"
      id="F_189dfa21-841a-4cae-a852-44b8edefe980">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_505084fc-f7cd-4256-9ef1-468cf5acef07"
      id="F_942f3b81-9bf9-45df-b23d-57ce7ed2fdc7">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_505084fc-f7cd-4256-9ef1-468cf5acef07"
      id="F_7405df9c-c55e-45a6-ada1-f0733060da11">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_505084fc-f7cd-4256-9ef1-468cf5acef07"
      id="F_504fd8e8-c46a-4648-bd7c-58826e994026">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_505084fc-f7cd-4256-9ef1-468cf5acef07"
      id="F_59b5bbee-f0c2-4d47-bd2a-73eb9c014f0a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_505084fc-f7cd-4256-9ef1-468cf5acef07"
      id="F_61f79e31-558f-4573-8960-be406a0a98ab">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_505084fc-f7cd-4256-9ef1-468cf5acef07"
      id="F_7248e477-1f8c-4644-bb03-ca66423e1a2b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_505084fc-f7cd-4256-9ef1-468cf5acef07"
      id="F_aafdf227-66ce-4f7f-9230-80d694b6f622">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_505084fc-f7cd-4256-9ef1-468cf5acef07"
      id="F_308e5afc-690c-49e2-9c22-3f65d0d9b15b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_505084fc-f7cd-4256-9ef1-468cf5acef07"
      id="F_08cefdbe-48bf-407a-80a1-0565e6642cca">&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;740,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_505084fc-f7cd-4256-9ef1-468cf5acef07"
      decimals="0"
      id="F_ca287b8e-e241-48c4-ac55-70c7b83ef478"
      unitRef="U_USD">740000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
