<?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_09ab76e2-01c0-496a-bd0c-5dcea0afa6cb">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-01</startDate>
            <endDate>2026-04-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_09ab76e2-01c0-496a-bd0c-5dcea0afa6cb"
      id="F_d9c7aeaf-cc82-479d-9fe3-0aa5b0443985">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_09ab76e2-01c0-496a-bd0c-5dcea0afa6cb"
      id="F_c5c8450d-1ef0-42a6-977f-3c3b57e4796d">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_09ab76e2-01c0-496a-bd0c-5dcea0afa6cb"
      id="F_6bf7c0e7-2de3-4588-966b-c5e41b79e3e0">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_09ab76e2-01c0-496a-bd0c-5dcea0afa6cb"
      id="F_396e0c4e-a9ec-4ee1-98ee-e38d0cba0b84">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_09ab76e2-01c0-496a-bd0c-5dcea0afa6cb"
      id="F_e22d087a-fd9a-4a4a-abe0-fd398bba0d9b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_09ab76e2-01c0-496a-bd0c-5dcea0afa6cb"
      id="F_b6f3021f-3ab4-42cf-b084-be7b35889046">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_09ab76e2-01c0-496a-bd0c-5dcea0afa6cb"
      id="F_d2eb88d7-2ba3-446a-b417-c624c7cc90db">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_09ab76e2-01c0-496a-bd0c-5dcea0afa6cb"
      id="F_9628c186-a75d-4808-9ec3-53ad83a1b61b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_09ab76e2-01c0-496a-bd0c-5dcea0afa6cb"
      id="F_8f9eba1a-d0a6-45b3-a75a-389c51e5e0b3">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_09ab76e2-01c0-496a-bd0c-5dcea0afa6cb"
      id="F_695ebe04-51e5-4399-8862-d349d940cfab">&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;10,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_09ab76e2-01c0-496a-bd0c-5dcea0afa6cb"
      decimals="0"
      id="F_2595af02-b77d-4d71-9b04-972747537ce3"
      unitRef="U_USD">10000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
