<?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_5c4f8298-1cde-4811-800b-0885c3bf2a6a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-02</startDate>
            <endDate>2026-07-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_5c4f8298-1cde-4811-800b-0885c3bf2a6a"
      id="F_ed02718b-69ef-4d7e-ab32-4f62770d7c91">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_5c4f8298-1cde-4811-800b-0885c3bf2a6a"
      id="F_2cf00d73-a60c-4d67-a879-bc59bb9d3269">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_5c4f8298-1cde-4811-800b-0885c3bf2a6a"
      id="F_aa436dda-920b-49bf-b2a3-fe7c617e7e44">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_5c4f8298-1cde-4811-800b-0885c3bf2a6a"
      id="F_1beacedd-8891-49d4-b5b8-9276272787d0">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_5c4f8298-1cde-4811-800b-0885c3bf2a6a"
      id="F_76d43b36-9524-4e6c-bc32-22130c62c33c">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_5c4f8298-1cde-4811-800b-0885c3bf2a6a"
      id="F_2384adde-edea-4ab0-ae3b-f11617cbd6c6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_5c4f8298-1cde-4811-800b-0885c3bf2a6a"
      id="F_3fdd626d-d1ee-4a69-8139-8ec8bbaaaf3a">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_5c4f8298-1cde-4811-800b-0885c3bf2a6a"
      id="F_71a43c56-3227-41ce-b8bf-e702622a8ac3">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5c4f8298-1cde-4811-800b-0885c3bf2a6a"
      id="F_b7e3df1f-9ffa-405d-a086-3e8fd7cf462a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_5c4f8298-1cde-4811-800b-0885c3bf2a6a"
      id="F_9f60d3c3-892c-42e1-845e-3e9e024ca673">&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,769,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_5c4f8298-1cde-4811-800b-0885c3bf2a6a"
      decimals="-3"
      id="F_8875e952-dd73-4211-8eef-ae164cbde12e"
      unitRef="U_USD">1769000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
