<?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_55da1055-c3aa-44cf-a1bf-297e33c3d0e5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-02</startDate>
            <endDate>2026-06-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_55da1055-c3aa-44cf-a1bf-297e33c3d0e5"
      id="F_fd74f444-fe57-4794-bd95-79f5804a06d0">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_55da1055-c3aa-44cf-a1bf-297e33c3d0e5"
      id="F_6db910ee-a4a8-44a7-a2e3-4c446a3b4c98">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_55da1055-c3aa-44cf-a1bf-297e33c3d0e5"
      id="F_607c4ea5-e8e2-4dea-b395-07586de4277a">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_55da1055-c3aa-44cf-a1bf-297e33c3d0e5"
      id="F_08680200-5ed8-463a-9483-7d01f3894616">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_55da1055-c3aa-44cf-a1bf-297e33c3d0e5"
      id="F_10030e0f-c8fd-4e1d-9e10-089ca0a19a95">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_55da1055-c3aa-44cf-a1bf-297e33c3d0e5"
      id="F_3de2819a-6924-498d-a48a-25a82f10dfa6">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_55da1055-c3aa-44cf-a1bf-297e33c3d0e5"
      id="F_dbdc3975-4db0-4998-adab-4ffdaf38e29d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_55da1055-c3aa-44cf-a1bf-297e33c3d0e5"
      id="F_8609b230-1fb4-434c-b1a6-e46a47bcdb9a">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_55da1055-c3aa-44cf-a1bf-297e33c3d0e5"
      id="F_3011538f-2e31-4bb9-9fb9-94e2e59766c2">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_55da1055-c3aa-44cf-a1bf-297e33c3d0e5"
      id="F_ee7d350e-888a-49b7-9a68-40e42e84fb64">&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;17,156,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_55da1055-c3aa-44cf-a1bf-297e33c3d0e5"
      decimals="-3"
      id="F_cdf0f554-500a-4398-958c-85b2dde9ecc7"
      unitRef="U_USD">17156000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
