<?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_1b4704b5-1e13-48ce-8a5f-271ddad776c5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-01</startDate>
            <endDate>2026-05-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_1b4704b5-1e13-48ce-8a5f-271ddad776c5"
      id="F_7cdcbfc3-4efa-4f82-b76a-4fdfb4ba8c5a">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_1b4704b5-1e13-48ce-8a5f-271ddad776c5"
      id="F_5eaad3fc-cd8c-4b4e-ae1b-416c5ddb2f48">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_1b4704b5-1e13-48ce-8a5f-271ddad776c5"
      id="F_6b9c1dc4-d954-4156-abe8-9e0dfab281e0">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_1b4704b5-1e13-48ce-8a5f-271ddad776c5"
      id="F_249959c7-670c-438b-bbc6-9b8cef1fdbc0">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1b4704b5-1e13-48ce-8a5f-271ddad776c5"
      id="F_f7529b8e-53c8-4294-927b-7ca626fbe107">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_1b4704b5-1e13-48ce-8a5f-271ddad776c5"
      id="F_b9767ef7-8794-4400-a512-3057f8e1d894">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_1b4704b5-1e13-48ce-8a5f-271ddad776c5"
      id="F_843cc59e-5e7a-432b-bc5c-518dfdb3249a">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_1b4704b5-1e13-48ce-8a5f-271ddad776c5"
      id="F_d3043aae-971b-4e80-8be7-8ed5a3dcb523">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_1b4704b5-1e13-48ce-8a5f-271ddad776c5"
      id="F_e1e87b6b-5c9c-435b-80f6-3fd74987d87b">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_1b4704b5-1e13-48ce-8a5f-271ddad776c5"
      id="F_71245289-6f94-4425-bda8-e2b7e21ad677">&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,339,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_1b4704b5-1e13-48ce-8a5f-271ddad776c5"
      decimals="0"
      id="F_e6257874-5b97-48a2-8016-70c205e51dc4"
      unitRef="U_USD">3339000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
