<?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_f39dac9e-701b-4597-beef-4a0f102f4851">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-02</startDate>
            <endDate>2026-10-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_f39dac9e-701b-4597-beef-4a0f102f4851"
      id="F_d6167535-b4a8-472a-81fa-3b1251ac1f3c">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_f39dac9e-701b-4597-beef-4a0f102f4851"
      id="F_2ecd45c8-fcfb-4c21-b503-0edc0c2d984d">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f39dac9e-701b-4597-beef-4a0f102f4851"
      id="F_57faf93e-63a0-444a-a32f-5ab71710b098">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_f39dac9e-701b-4597-beef-4a0f102f4851"
      id="F_a2a3c828-206c-4e48-99d3-6fb40ea029ba">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_f39dac9e-701b-4597-beef-4a0f102f4851"
      id="F_1101ba55-b6ed-4a08-8783-7ae600cce59c">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_f39dac9e-701b-4597-beef-4a0f102f4851"
      id="F_b1b273d7-2877-47db-bfe7-ce623bc976f3">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_f39dac9e-701b-4597-beef-4a0f102f4851"
      id="F_465bb881-96c0-494b-8712-8878a5f9a6e7">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_f39dac9e-701b-4597-beef-4a0f102f4851"
      id="F_d991485b-80b3-4cb3-bd22-9de03558b281">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_f39dac9e-701b-4597-beef-4a0f102f4851"
      id="F_3667d574-76a5-40f7-bdf0-aeed7c409de7">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_f39dac9e-701b-4597-beef-4a0f102f4851"
      id="F_be28fdd1-d528-43f3-b4fd-2f2f4ddfd72f">&lt;p style="tab-size:26.66px;font-size:12pt;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;569,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_f39dac9e-701b-4597-beef-4a0f102f4851"
      decimals="-3"
      id="F_04c7b028-10ea-4f93-88ce-1dea3ffd6a51"
      unitRef="U_USD">569000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
