<?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_d3506d19-5e69-44c0-8d49-8eca4d65beae">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-11-03</startDate>
            <endDate>2026-11-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_d3506d19-5e69-44c0-8d49-8eca4d65beae"
      id="F_22435ab1-bcd1-400a-99c0-89f84942e596">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d3506d19-5e69-44c0-8d49-8eca4d65beae"
      id="F_23e4289c-0146-4e16-bf6c-be91c6ef51eb">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_d3506d19-5e69-44c0-8d49-8eca4d65beae"
      id="F_624914e4-06e0-406a-bbc1-781e615b4b11">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_d3506d19-5e69-44c0-8d49-8eca4d65beae"
      id="F_6c02d603-98aa-4839-9d91-8c7c83788525">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_d3506d19-5e69-44c0-8d49-8eca4d65beae"
      id="F_6a5bd936-bd7a-46b1-b09c-106477dcde2f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_d3506d19-5e69-44c0-8d49-8eca4d65beae"
      id="F_952f9ed0-47e3-4b0a-993d-cd631fc41f09">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_d3506d19-5e69-44c0-8d49-8eca4d65beae"
      id="F_32b68e72-aac8-4ef5-8bf7-0a07e5cb7f46">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_d3506d19-5e69-44c0-8d49-8eca4d65beae"
      id="F_97b92127-02f5-4232-9bbf-a916e3ace455">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_d3506d19-5e69-44c0-8d49-8eca4d65beae"
      id="F_aac6b7b7-1cb3-4ac6-8c2e-2232bda143d6">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_d3506d19-5e69-44c0-8d49-8eca4d65beae"
      id="F_5e21109c-3704-49e3-b569-07f3a537bf2e">&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;463,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_d3506d19-5e69-44c0-8d49-8eca4d65beae"
      decimals="-3"
      id="F_5f3b9a04-b663-4e56-970c-dfd33d6a3012"
      unitRef="U_USD">463000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
