<?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_09f079e8-f4d3-475d-8ffe-75625f3cb166">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-05</startDate>
            <endDate>2026-06-05</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_09f079e8-f4d3-475d-8ffe-75625f3cb166"
      id="F_81e76bcf-436f-40e7-bea2-554f18f7680b">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_09f079e8-f4d3-475d-8ffe-75625f3cb166"
      id="F_4b3bf7fe-1b98-46f1-a7e2-be662915da3a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_09f079e8-f4d3-475d-8ffe-75625f3cb166"
      id="F_9a025ea4-c138-433a-82a5-e554bb95b73a">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_09f079e8-f4d3-475d-8ffe-75625f3cb166"
      id="F_a333b814-f0b2-4ac6-8155-5182a0bfeb33">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_09f079e8-f4d3-475d-8ffe-75625f3cb166"
      id="F_391d8fab-c459-4bb9-bdcd-363a84f5f7ed">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_09f079e8-f4d3-475d-8ffe-75625f3cb166"
      id="F_83694d8a-42c9-445c-bcd7-031ccad0419a">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_09f079e8-f4d3-475d-8ffe-75625f3cb166"
      id="F_bd20e90b-6f45-444d-8b17-2f095d7549ad">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_09f079e8-f4d3-475d-8ffe-75625f3cb166"
      id="F_a82292c5-9c74-4891-8bc6-bd2ff5aac500">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_09f079e8-f4d3-475d-8ffe-75625f3cb166"
      id="F_cf7cbd47-95ed-41c4-95c5-502a85fcaffa">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_09f079e8-f4d3-475d-8ffe-75625f3cb166"
      id="F_931e6223-bf4a-48c8-adb7-4cebd4b6a0f8">&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;13,909,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_09f079e8-f4d3-475d-8ffe-75625f3cb166"
      decimals="-3"
      id="F_2a8a4201-7a1c-488e-9192-24b85694b342"
      unitRef="U_USD">13909000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
