<?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_3e517f8b-3829-4fc8-be96-c337da0c4105">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-12-11</startDate>
            <endDate>2025-12-11</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_3e517f8b-3829-4fc8-be96-c337da0c4105"
      id="F_eea8dac1-63bd-4fd6-bfd6-fea4b56f9b4c">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_3e517f8b-3829-4fc8-be96-c337da0c4105"
      id="F_43937687-95a3-4923-b4e1-c42671157926">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_3e517f8b-3829-4fc8-be96-c337da0c4105"
      id="F_5116a002-5307-46fb-8ac6-6d2ce2a4d21c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_3e517f8b-3829-4fc8-be96-c337da0c4105"
      id="F_787e7bd9-91e0-456d-a4cc-dff5e72470fb">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_3e517f8b-3829-4fc8-be96-c337da0c4105"
      id="F_13044e61-2f6d-42f5-bbf8-82d1518b69cb">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_3e517f8b-3829-4fc8-be96-c337da0c4105"
      id="F_417e9b09-7945-424c-bc09-f91c08739728">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_3e517f8b-3829-4fc8-be96-c337da0c4105"
      id="F_ace48953-5616-4fb4-ac90-81bf6e1df53e">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_3e517f8b-3829-4fc8-be96-c337da0c4105"
      id="F_090480dd-0ee6-47a5-b5fc-78edcfecad99">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3e517f8b-3829-4fc8-be96-c337da0c4105"
      id="F_e7f6b1fd-0e4c-4068-b139-0f68e43235ae">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_3e517f8b-3829-4fc8-be96-c337da0c4105"
      id="F_05b25cc9-451c-4e80-a0f1-6ea5c5c63350">&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;750,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_3e517f8b-3829-4fc8-be96-c337da0c4105"
      decimals="0"
      id="F_8def2a5b-aee2-4052-b209-370565c21c20"
      unitRef="U_USD">750000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
