<?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_dc3f75a8-9e8d-4291-898e-e1f4de932547">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-05</startDate>
            <endDate>2026-05-05</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_dc3f75a8-9e8d-4291-898e-e1f4de932547"
      id="F_8730c0b8-6602-4df7-aff5-5f2c076015e9">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_dc3f75a8-9e8d-4291-898e-e1f4de932547"
      id="F_e0e73f32-d3ea-4de4-a87c-d6231999d13f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_dc3f75a8-9e8d-4291-898e-e1f4de932547"
      id="F_21f08167-5ac9-4b14-a847-997ea935c7c9">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_dc3f75a8-9e8d-4291-898e-e1f4de932547"
      id="F_439fe107-8678-4bb9-95b8-1723b2035007">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_dc3f75a8-9e8d-4291-898e-e1f4de932547"
      id="F_bf0c4fd1-eaa4-49d2-8b27-3b47bbfafbec">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_dc3f75a8-9e8d-4291-898e-e1f4de932547"
      id="F_bce477fd-4c0f-4f32-97c7-fe26c974c1ef">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_dc3f75a8-9e8d-4291-898e-e1f4de932547"
      id="F_ab8fbd6a-c692-4dfd-9001-c03b1ce76d9f">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_dc3f75a8-9e8d-4291-898e-e1f4de932547"
      id="F_5d35c9db-2d51-4b7b-bf7e-764c4584e892">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_dc3f75a8-9e8d-4291-898e-e1f4de932547"
      id="F_1425ba31-e8bc-4117-ba04-3244e1505aa8">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_dc3f75a8-9e8d-4291-898e-e1f4de932547"
      id="F_79f2f706-db0d-45b2-8ce8-f3c97de50fa4">&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;256,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_dc3f75a8-9e8d-4291-898e-e1f4de932547"
      decimals="0"
      id="F_a0210358-ed94-4c15-8f5f-0fbed413f486"
      unitRef="U_USD">256000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
