<?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_fa44242d-a5cb-4c17-adaa-17bee0b19e7d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-06-10</startDate>
            <endDate>2025-06-10</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_fa44242d-a5cb-4c17-adaa-17bee0b19e7d"
      id="F_424d97a3-c4b8-4c4c-b746-0cfc93d844df">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_fa44242d-a5cb-4c17-adaa-17bee0b19e7d"
      id="F_e42e8994-3863-4153-88bf-49c831c6228d">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_fa44242d-a5cb-4c17-adaa-17bee0b19e7d"
      id="F_20c30dd9-5b95-41ef-b361-2f088a71f27a">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_fa44242d-a5cb-4c17-adaa-17bee0b19e7d"
      id="F_ccbadd0e-3eb6-4a2b-a395-31aa1fea7781">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_fa44242d-a5cb-4c17-adaa-17bee0b19e7d"
      id="F_50153f05-4d6f-4f0f-93a2-139fca6357a1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_fa44242d-a5cb-4c17-adaa-17bee0b19e7d"
      id="F_2da6a781-e157-45bf-a831-aab534f61431">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_fa44242d-a5cb-4c17-adaa-17bee0b19e7d"
      id="F_1922f17e-a76a-43a1-a73e-ef4d1b68ec8b">&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;3,260,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_fa44242d-a5cb-4c17-adaa-17bee0b19e7d"
      decimals="0"
      id="F_9532d433-6363-4bd5-afa9-57658eb38242"
      unitRef="U_USD">3260000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
