<?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_e1ef4fa6-5979-41fd-946e-368311e883a7">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-28</startDate>
            <endDate>2026-05-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_e1ef4fa6-5979-41fd-946e-368311e883a7"
      id="F_3a348227-f7a6-4b29-889e-44da42a50707">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_e1ef4fa6-5979-41fd-946e-368311e883a7"
      id="F_c087314f-dbcd-4c24-9b8a-eed65c47f304">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e1ef4fa6-5979-41fd-946e-368311e883a7"
      id="F_ded7600f-c971-4626-892e-28bd60311a7a">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_e1ef4fa6-5979-41fd-946e-368311e883a7"
      id="F_0c102617-8bb7-4f0e-8f73-dcb88d172cc4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_e1ef4fa6-5979-41fd-946e-368311e883a7"
      id="F_4a39da20-3a1d-4c73-8c73-a3a32053fd6e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_e1ef4fa6-5979-41fd-946e-368311e883a7"
      id="F_c4d30ab4-67a6-4a93-a5e1-7b1253971a5a">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_e1ef4fa6-5979-41fd-946e-368311e883a7"
      id="F_5fe29c26-b5ad-4f81-95e3-1ef0a6c92568">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_e1ef4fa6-5979-41fd-946e-368311e883a7"
      id="F_08bc3944-eaa8-41e1-9375-edf39d88d406">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_e1ef4fa6-5979-41fd-946e-368311e883a7"
      id="F_a94e2ed3-d641-40ac-9e21-23c488ae808e">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_e1ef4fa6-5979-41fd-946e-368311e883a7"
      id="F_7ee4eae4-993a-4aa9-a9b3-0cda838aa3df">&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;7,164,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_e1ef4fa6-5979-41fd-946e-368311e883a7"
      decimals="0"
      id="F_21ad7494-6439-476c-b1a5-d536301d28dc"
      unitRef="U_USD">7164000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
