<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_89fdfa50-bed2-4aa4-b27a-91a8f9de99e2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-25</startDate>
            <endDate>2026-08-25</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_89fdfa50-bed2-4aa4-b27a-91a8f9de99e2"
      id="F_c1b2bfae-b53e-40d3-992b-7cefe6137f28">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_89fdfa50-bed2-4aa4-b27a-91a8f9de99e2"
      id="F_13fef3f4-01b2-45ad-9eba-c9246a6ecbd2">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_89fdfa50-bed2-4aa4-b27a-91a8f9de99e2"
      id="F_b5440138-89fa-4579-b968-e35420ce88e1">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_89fdfa50-bed2-4aa4-b27a-91a8f9de99e2"
      id="F_86a67421-2a81-46af-a44b-01c4c94520f8">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_89fdfa50-bed2-4aa4-b27a-91a8f9de99e2"
      id="F_ccb611e8-bb47-4940-ad98-172172872ccf">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_89fdfa50-bed2-4aa4-b27a-91a8f9de99e2"
      id="F_ec7a4881-471b-4b81-b398-73835eec0214">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_89fdfa50-bed2-4aa4-b27a-91a8f9de99e2"
      id="F_497c027b-c504-491d-adc1-acc70ab76152">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_89fdfa50-bed2-4aa4-b27a-91a8f9de99e2"
      id="F_0f98f0cb-d998-4010-8524-36c049b4a8aa">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_89fdfa50-bed2-4aa4-b27a-91a8f9de99e2"
      id="F_ae876676-810e-45ed-9caa-edf4382925a8">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_89fdfa50-bed2-4aa4-b27a-91a8f9de99e2"
      id="F_cf1d372e-514c-4d2e-ac76-b9c2f77bcaca">&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,240,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_89fdfa50-bed2-4aa4-b27a-91a8f9de99e2"
      decimals="-3"
      id="F_e1eb6957-8193-4024-ac50-abd5d30e0d61"
      unitRef="U_USD">1240000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
